Update the GCC3 infrastructure Stage 1/2. This commit generates the basic
[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.4 2004/02/02 23:35:10 dillon Exp $
3
4 .include "../Makefile.inc"
5
6 CFLAGS+=        -I${.CURDIR}/../config
7
8 .PATH: ${GCCDIR}/gcc ${GCCDIR}/libiberty
9
10 PROG=   c++filt
11 SRCS=   cp-demangle.c cplus-dem+%DIKED.c
12 SRCS+=  make-relative-prefix.c lrealpath.c
13 NOMAN=  1
14
15 CFLAGS+= -DSTANDALONE_DEMANGLER -DIN_GCC -DVERSION=\"$(version)\"
16
17 DPADD+= ${LIBCC_INT}
18 LDADD+= ${LIBCC_INT}
19
20 cplus-dem+%DIKED.c: cplus-dem.c
21         sed -e 's/^xmalloc[     ]/_DONT_xmalloc /g' \
22             -e 's/^xrealloc[    ]/_DONT_xrealloc /g' \
23             ${.ALLSRC} > ${.TARGET}
24
25 CLEANFILES=     cplus-dem+%DIKED.c
26
27 .include <bsd.prog.mk>