diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2001-12-18 03:09:26 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2001-12-18 03:09:26 +0000 |
| commit | 2c8b5b12919cede726220e3093f4d570d0056615 (patch) | |
| tree | 16949bacd4a6a5f0486f25b43eefaa7e62ce314c /gnu/usr.bin | |
| parent | 0d4ffb0f07910833279d9e922c82f9968af3e30f (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin')
| -rw-r--r-- | gnu/usr.bin/cc/c++filt/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/usr.bin/cc/c++filt/Makefile b/gnu/usr.bin/cc/c++filt/Makefile new file mode 100644 index 000000000000..30ed4fe22a3f --- /dev/null +++ b/gnu/usr.bin/cc/c++filt/Makefile @@ -0,0 +1,36 @@ +# $FreeBSD$ + +.include "../Makefile.inc" + +.PATH: ${GCCDIR} + +PROG= c++filt +SRCS= cp-demangle.c cplus-dem+%DIKED.c getopt.c getopt1.c underscore.c +BINDIR= /usr/libexec/${OBJFORMAT} +NOMAN= 1 + +CFLAGS+= -DMAIN -DIN_GCC -DVERSION=\"$(version)\" + +DPADD+= ${LIBCC_INT} +LDADD+= ${LIBCC_INT} + +CLEANFILES= tmp-dum.c tmp-dum.s underscore.c + +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> |
