Major GCC surgery. Move most compiler-specific files into named
[dragonfly.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 # $DragonFly: src/gnu/usr.bin/cc/c++filt/Attic/Makefile,v 1.3 2004/01/16 07:45:21 dillon Exp $
3
4 .include "../Makefile.inc"
5
6 .PATH: ${GCCDIR}
7
8 PROG=   c++filt
9 SRCS=   cplus-dem.c getopt.c getopt1.c underscore.c
10 BINDIR= /usr/libexec/gcc2/${OBJFORMAT}
11 NOMAN=  1
12
13 CFLAGS+= -DMAIN -DIN_GCC -DVERSION=\"$(version)\"
14
15 CLEANFILES= tmp-dum.c tmp-dum.s underscore.c
16
17 underscore.c:
18         echo "int xxy_us_dummy;" >tmp-dum.c
19         ${CC} -S tmp-dum.c
20         echo '/*WARNING: This file is automatically generated!*/' >underscore.c
21         if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \
22           echo "int prepends_underscore = 1;" >>underscore.c; \
23         else \
24           echo "int prepends_underscore = 0;" >>underscore.c; \
25         fi
26         rm -f tmp-dum.c tmp-dum.s
27
28 .include <bsd.prog.mk>