summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/usr.bin/cc/tradcpp0/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/gnu/usr.bin/cc/tradcpp0/Makefile b/gnu/usr.bin/cc/tradcpp0/Makefile
index e8c0da7a1d7e..9a6b085ad6a6 100644
--- a/gnu/usr.bin/cc/tradcpp0/Makefile
+++ b/gnu/usr.bin/cc/tradcpp0/Makefile
@@ -1 +1,22 @@
# $FreeBSD$
+
+.include "../Makefile.inc"
+
+.PATH: ${GCCDIR}
+
+PROG= tradcpp0
+SRCS= tradcpp.c tradcif.c
+BINDIR= /usr/libexec
+NOMAN= 1
+
+DPADD+= ${LIBCC_INT}
+LDADD+= ${LIBCC_INT}
+
+# ${YACC} ${GCCDIR}/tradcif.y
+tradcif.c: tradcif.y
+ ${YACC} ${.ALLSRC}
+ sed -e "s/malloc/xmalloc/g" \
+ -e "s/realloc/xrealloc/g" \
+ y.tab.c >${.TARGET}
+
+.include <bsd.prog.mk>