1999-08-27 19:37:10 -04:00
|
|
|
# $FreeBSD$
|
1999-04-04 12:36:35 -04:00
|
|
|
|
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
|
|
2002-05-12 23:27:03 -04:00
|
|
|
.PATH: ${GCCDIR}
|
1996-09-19 11:53:53 -04:00
|
|
|
|
1999-08-16 00:10:48 -04:00
|
|
|
PROG= cc1
|
2003-07-11 01:37:23 -04:00
|
|
|
SRCS= main.c c-parse+%DIKED.c c-lang.c c-decl.c c-opts.c
|
1994-08-02 16:15:59 -04:00
|
|
|
BINDIR= /usr/libexec
|
|
|
|
|
NOMAN= 1
|
2002-04-06 18:18:01 -05:00
|
|
|
NOSHARED?=yes
|
1999-11-03 23:46:04 -05:00
|
|
|
|
2000-01-24 04:17:09 -05:00
|
|
|
CFLAGS+= -I.
|
|
|
|
|
|
2004-02-05 17:44:25 -05:00
|
|
|
DPADD= ${LIBCC_INT}
|
|
|
|
|
LDADD= ${LIBCC_INT}
|
1994-08-02 16:15:59 -04:00
|
|
|
|
2000-01-24 04:17:09 -05:00
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
|
# C parser
|
2002-05-12 23:27:03 -04: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
|
2000-01-24 04:17:09 -05:00
|
|
|
sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
|
2002-04-03 20:25:26 -05:00
|
|
|
-e "/^ifc$$/d" \
|
|
|
|
|
-e "/^end ifc$$/d" \
|
2002-05-12 23:27:03 -04:00
|
|
|
${.ALLSRC} > ${.TARGET}
|
2000-01-24 04:17:09 -05:00
|
|
|
|
2002-05-12 23:27:03 -04: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
|
2000-01-24 04:17:09 -05:00
|
|
|
|
1994-08-02 16:15:59 -04:00
|
|
|
.include <bsd.prog.mk>
|