2001-12-18 03:20:31 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
|
|
|
|
.PATH: ${GCCDIR}
|
|
|
|
|
|
|
|
PROG= cpp0
|
2002-05-13 03:27:03 +00:00
|
|
|
SRCS= cppmain.c c-parse+%DIKED.c c-lang.c c-decl.c
|
2001-12-18 03:20:31 +00:00
|
|
|
|
|
|
|
BINDIR= /usr/libexec
|
|
|
|
NOMAN= 1
|
2002-04-06 23:18:01 +00:00
|
|
|
NOSHARED?=yes
|
2001-12-18 03:20:31 +00:00
|
|
|
|
|
|
|
DPADD+= ${LIBCC_INT}
|
|
|
|
LDADD+= ${LIBCC_INT}
|
|
|
|
|
2002-04-06 23:18:01 +00:00
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
# C parser
|
2002-05-13 03:27:03 +00:00
|
|
|
|
|
|
|
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
|
2002-04-06 23:18:01 +00:00
|
|
|
sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
|
|
|
|
-e "/^ifc$$/d" \
|
|
|
|
-e "/^end ifc$$/d" \
|
2002-05-13 03:27:03 +00:00
|
|
|
${.ALLSRC} > ${.TARGET}
|
2002-04-06 23:18:01 +00:00
|
|
|
|
2002-05-13 03:27:03 +00:00
|
|
|
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
|
2002-04-06 23:18:01 +00:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
|
2001-12-18 03:20:31 +00:00
|
|
|
.include <bsd.prog.mk>
|