freebsd-dev/gnu/usr.bin/cc/cccp/Makefile
David E. O'Brien 6677f3e022 Restore some of the implementation from the Bmake gcc 2.95 bits.
In the end, I can do things more like the previous Bmake bits than was
apparent in the middle of the gcc31 WIP.
2002-05-13 03:27:03 +00:00

37 lines
781 B
Makefile

# $FreeBSD$
.include "../Makefile.inc"
.PATH: ${GCCDIR}
PROG= cpp0
SRCS= cppmain.c c-parse+%DIKED.c c-lang.c c-decl.c
BINDIR= /usr/libexec
NOMAN= 1
NOSHARED?=yes
DPADD+= ${LIBCC_INT}
LDADD+= ${LIBCC_INT}
#-----------------------------------------------------------------------
# C parser
c-parse+%DIKED.c: c-parse.c
sed -e "s/malloc/xmalloc/g" \
-e "s/realloc/xrealloc/g" \
${.ALLSRC} > ${.TARGET}
c-parse.y: c-parse.in
sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
-e "/^ifc$$/d" \
-e "/^end ifc$$/d" \
${.ALLSRC} > ${.TARGET}
CLEANFILES= c-parse+%DIKED.c c-parse.c c-parse.y
CLEANFILES+= y.tab.h # we don't use it, but the system YACC rules are naive
#-----------------------------------------------------------------------
.include <bsd.prog.mk>