2001-12-18 03:20:31 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
|
|
|
|
.PATH: ${GCCDIR}
|
|
|
|
|
|
|
|
PROG= cpp0
|
2002-04-06 23:18:01 +00:00
|
|
|
SRCS= cppmain.c c-parse.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
|
|
|
|
.ORDER: c-parse.c
|
|
|
|
c-parse.c: c-parse.in
|
|
|
|
sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
|
|
|
|
-e "/^ifc$$/d" \
|
|
|
|
-e "/^end ifc$$/d" \
|
|
|
|
${GCCDIR}/c-parse.in > c-parse.y
|
|
|
|
${YACC} -o c-parse.c.in c-parse.y
|
|
|
|
sed -e "s/malloc/xmalloc/g" \
|
|
|
|
-e "s/realloc/xrealloc/g" \
|
|
|
|
c-parse.c.in >c-parse.c
|
|
|
|
|
2002-05-12 12:06:19 +00:00
|
|
|
CLEANFILES= c-parse.c c-parse.y
|
2002-04-06 23:18:01 +00:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
|
2001-12-18 03:20:31 +00:00
|
|
|
.include <bsd.prog.mk>
|