diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2003-11-24 17:01:48 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2003-11-24 17:01:48 +0000 |
commit | 2c0f1a5d43f3639dbb6816c5f83979140e73e183 (patch) | |
tree | db764e2a91f0444c44fed58262c2fbe75071e137 /gnu/usr.bin | |
parent | 96e6e38c2b8b22aa660b7a47cd30e59401245c90 (diff) |
pieces to grab c++filt directly off libiberty
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/cxxfilt/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/usr.bin/cxxfilt/Makefile b/gnu/usr.bin/cxxfilt/Makefile new file mode 100644 index 00000000000..1cb0a41a419 --- /dev/null +++ b/gnu/usr.bin/cxxfilt/Makefile @@ -0,0 +1,26 @@ +NOMAN=1 +PROG=c++filt + +SRCS= cxxmain.c underscore.c +LIBIBERTY_SRCDIR=${.CURDIR}/../../lib/libiberty/src +LIBIBERTY_INCDIR=${.CURDIR}/../../lib/libiberty/include + +CFLAGS+=-I${LIBIBERTY_INCDIR} -DMAIN -DVERSION=\"${VERSION}\" +VERSION=2.95.3 + +LDADD= -liberty + +underscore.c: + @case ${ELF_TOOLCHAIN:L} in \ + "yes") v=0;; \ + *) v=1;; \ + esac; \ + c="int prepends_underscore=$$v;"; \ + echo "echo \"$$c\" >$@"; \ + echo $$c >$@ + +cxxmain.c: + ln -s ${LIBIBERTY_SRCDIR}/cplus-dem.c $@ + +CLEANFILES+=${SRCS} +.include <bsd.prog.mk> |