freebsd-dev/gnu/usr.bin/cc/cccp/Makefile

35 lines
713 B
Makefile
Raw Normal View History

# $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
BINDIR= /usr/libexec
NOMAN= 1
2002-04-06 23:18:01 +00:00
NOSHARED?=yes
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
#-----------------------------------------------------------------------
.include <bsd.prog.mk>