summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cxxfilt/Makefile
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2003-11-25 21:29:43 +0000
committerMarc Espie <espie@cvs.openbsd.org>2003-11-25 21:29:43 +0000
commita42d1790787d306d0e929cdcd715fc332da0e5a5 (patch)
tree446b8d5f586543519b5a8ac171730bf2b58e4421 /gnu/usr.bin/cxxfilt/Makefile
parent0e84a8d9401e593ce3eb01c0e1473ca2b55d4f96 (diff)
Let cxxfilt compile without any external binutils stuff.
Diffstat (limited to 'gnu/usr.bin/cxxfilt/Makefile')
-rw-r--r--gnu/usr.bin/cxxfilt/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/gnu/usr.bin/cxxfilt/Makefile b/gnu/usr.bin/cxxfilt/Makefile
index 1cb0a41a419..9ce23b85752 100644
--- a/gnu/usr.bin/cxxfilt/Makefile
+++ b/gnu/usr.bin/cxxfilt/Makefile
@@ -1,14 +1,11 @@
NOMAN=1
PROG=c++filt
-SRCS= cxxmain.c underscore.c
-LIBIBERTY_SRCDIR=${.CURDIR}/../../lib/libiberty/src
+SRCS= cxxfilt.c
LIBIBERTY_INCDIR=${.CURDIR}/../../lib/libiberty/include
-CFLAGS+=-I${LIBIBERTY_INCDIR} -DMAIN -DVERSION=\"${VERSION}\"
-VERSION=2.95.3
-
-LDADD= -liberty
+CFLAGS+=-I${LIBIBERTY_INCDIR}
+LDADD=-liberty
underscore.c:
@case ${ELF_TOOLCHAIN:L} in \
@@ -22,5 +19,10 @@ underscore.c:
cxxmain.c:
ln -s ${LIBIBERTY_SRCDIR}/cplus-dem.c $@
-CLEANFILES+=${SRCS}
.include <bsd.prog.mk>
+
+.if ${ELF_TOOLCHAIN:L} == "yes"
+CFLAGS+=-DTARGET_PREPENDS_UNDERSCORE=0
+.else
+CFLAGS+=-DTARGET_PREPENDS_UNDERSCORE=1
+.endif