summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cc/c++filt
diff options
context:
space:
mode:
authorRobert Nagy <robert@cvs.openbsd.org>2009-10-15 20:50:22 +0000
committerRobert Nagy <robert@cvs.openbsd.org>2009-10-15 20:50:22 +0000
commitd0bc9228afb1ce3bb74e78d2e39db16930ea5f6f (patch)
treeb633906d94eb8441667927901b304880088884fd /gnu/usr.bin/cc/c++filt
parent6c6d27ead70914301fa8256977ca53019ac9add3 (diff)
Import a BSD make based infrastructure for building gcc, based on the
same solution from FreeBSD. Don't even try to build it at the moment. This is commited so people can work on it in tree.
Diffstat (limited to 'gnu/usr.bin/cc/c++filt')
-rw-r--r--gnu/usr.bin/cc/c++filt/Makefile24
1 files changed, 24 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 00000000000..a5e1ec49b50
--- /dev/null
+++ b/gnu/usr.bin/cc/c++filt/Makefile
@@ -0,0 +1,24 @@
+# $FreeBSD: src/gnu/usr.bin/cc/c++filt/Makefile,v 1.22.8.1 2009/04/15 03:14:26 kensmith Exp $
+# $OpenBSD: Makefile,v 1.1 2009/10/15 20:50:19 robert Exp $
+
+.include <bsd.own.mk>
+
+.include "${.CURDIR}/../Makefile.inc"
+.include "${.CURDIR}/../Makefile.fe"
+
+.PATH: ${BSDSRCDIR}/gnu/lib/libiberty/src
+
+PROG= c++filt
+SRCS= cp-demangle.c
+NOMAN= Yes
+
+CFLAGS+= -DSTANDALONE_DEMANGLER -DVERSION=\"$(GCC_VERSION)\"
+
+DPADD= ${LIBIBERTY}
+LDADD= ${LIBIBERTY}
+
+beforeinstall:
+ ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${DIRMODE} \
+ ${DESTDIR}${BINDIR}
+
+.include <bsd.prog.mk>