Initial import from FreeBSD RELENG_4:
[games.git] / gnu / usr.bin / cc / c++filt / Makefile
1 # $FreeBSD: src/gnu/usr.bin/cc/c++filt/Makefile,v 1.11 1999/11/04 04:45:59 obrien Exp $
2
3 .include "../Makefile.inc"
4
5 .PATH: ${GCCDIR}
6
7 PROG=   c++filt
8 SRCS=   cplus-dem.c getopt.c getopt1.c underscore.c
9 BINDIR= /usr/libexec/${OBJFORMAT}
10 NOMAN=  1
11
12 CFLAGS+= -DMAIN -DIN_GCC -DVERSION=\"$(version)\"
13
14 CLEANFILES= tmp-dum.c tmp-dum.s underscore.c
15
16 underscore.c:
17         echo "int xxy_us_dummy;" >tmp-dum.c
18         ${CC} -S tmp-dum.c
19         echo '/*WARNING: This file is automatically generated!*/' >underscore.c
20         if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \
21           echo "int prepends_underscore = 1;" >>underscore.c; \
22         else \
23           echo "int prepends_underscore = 0;" >>underscore.c; \
24         fi
25         rm -f tmp-dum.c tmp-dum.s
26
27 .include <bsd.prog.mk>