summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cxxfilt/Makefile
diff options
context:
space:
mode:
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