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