diff options
author | obrien <obrien@FreeBSD.org> | 2002-05-10 08:54:50 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-05-10 08:54:50 +0000 |
commit | dfe16a29faf2eed114d592e51438cf098a82caba (patch) | |
tree | 4267ea6c3a5e7816a537d642d12e65f950b34542 /gnu/usr.bin/cc/c++filt | |
parent | 92c7caae40522c9b713128ad465b033c2e16ce8b (diff) | |
download | FreeBSD-src-dfe16a29faf2eed114d592e51438cf098a82caba.zip FreeBSD-src-dfe16a29faf2eed114d592e51438cf098a82caba.tar.gz |
Bmake bits for Gcc 3.1.
Partially made possible by: Wilko.Bulte@compaq.com
Diffstat (limited to 'gnu/usr.bin/cc/c++filt')
-rw-r--r-- | gnu/usr.bin/cc/c++filt/Makefile | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/gnu/usr.bin/cc/c++filt/Makefile b/gnu/usr.bin/cc/c++filt/Makefile index 8e188f1..49a9254 100644 --- a/gnu/usr.bin/cc/c++filt/Makefile +++ b/gnu/usr.bin/cc/c++filt/Makefile @@ -2,26 +2,22 @@ .include "../Makefile.inc" -.PATH: ${GCCDIR} +.PATH: ${GCCDIR} ${GCCDIR}/../libiberty PROG= c++filt -SRCS= cplus-dem.c getopt.c getopt1.c underscore.c +SRCS= cp-demangle.c cplus-dem+%DIKED.c BINDIR= /usr/libexec/${OBJFORMAT} NOMAN= 1 CFLAGS+= -DMAIN -DIN_GCC -DVERSION=\"$(version)\" -CLEANFILES= tmp-dum.c tmp-dum.s underscore.c +DPADD+= ${LIBCC_INT} +LDADD+= ${LIBCC_INT} -underscore.c: - echo "int xxy_us_dummy;" >tmp-dum.c - ${CC} -S tmp-dum.c - echo '/*WARNING: This file is automatically generated!*/' >underscore.c - if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \ - echo "int prepends_underscore = 1;" >>underscore.c; \ - else \ - echo "int prepends_underscore = 0;" >>underscore.c; \ - fi - rm -f tmp-dum.c tmp-dum.s +cplus-dem+%DIKED.c: cplus-dem.c + sed \ + -e 's/^xmalloc[ ]/_DONT_xmalloc /g' \ + -e 's/^xrealloc[ ]/_DONT_xrealloc /g' \ + ${.ALLSRC} > ${.TARGET} .include <bsd.prog.mk> |