* Starting using GCCVER when needed and other things
[dragonfly.git] / gnu / usr.bin / cc3 / c++filt / Makefile
1 # $FreeBSD: src/gnu/usr.bin/cc/c++filt/Makefile,v 1.16 2003/07/11 05:37:23 kan Exp $
2 # $DragonFly: src/gnu/usr.bin/cc3/c++filt/Attic/Makefile,v 1.2 2004/01/17 23:05:19 drhodus Exp $
3
4 .include "../Makefile.inc"
5
6 .PATH: ${GCCDIR}
7
8 PROG=   c++filt
9 SRCS=   cp-demangle.c cplus-dem+%DIKED.c
10 BINDIR= /usr/libexec/gcc3/${OBJFORMAT}
11 NOMAN=  1
12
13 CFLAGS+= -DSTANDALONE_DEMANGLER -DIN_GCC -DVERSION=\"$(version)\"
14
15 DPADD+= ${LIBCC_INT}
16 LDADD+= ${LIBCC_INT}
17
18 cplus-dem+%DIKED.c: cplus-dem.c
19         sed -e 's/^xmalloc[     ]/_DONT_xmalloc /g' \
20             -e 's/^xrealloc[    ]/_DONT_xrealloc /g' \
21             ${.ALLSRC} > ${.TARGET}
22
23 CLEANFILES=     cplus-dem+%DIKED.c
24
25 .include <bsd.prog.mk>