binutils214 stage 2/4.
[dragonfly.git] / gnu / usr.bin / cc3 / cc1 / Makefile
CommitLineData
74fbd2f0 1# $FreeBSD: src/gnu/usr.bin/cc/cc1/Makefile,v 1.29 2003/07/11 05:37:23 kan Exp $
17030342 2# $DragonFly: src/gnu/usr.bin/cc3/cc1/Attic/Makefile,v 1.3 2004/02/02 05:43:12 dillon Exp $
74fbd2f0
DR
3
4.include "../Makefile.inc"
5
6.PATH: ${GCCDIR}
7
8PROG= cc1
9SRCS= main.c c-parse+%DIKED.c c-lang.c c-decl.c c-opts.c
74fbd2f0
DR
10NOMAN= 1
11NOSHARED?=yes
12
13CFLAGS+= -I.
14
15DPADD+= ${LIBCC_INT}
16LDADD+= ${LIBCC_INT}
17
18#-----------------------------------------------------------------------
19# C parser
20c-parse+%DIKED.c: c-parse.c
21 sed -e "s/malloc/xmalloc/g" \
22 -e "s/realloc/xrealloc/g" \
23 ${.ALLSRC} > ${.TARGET}
24
25c-parse.y: c-parse.in
26 sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
27 -e "/^ifc$$/d" \
28 -e "/^end ifc$$/d" \
29 ${.ALLSRC} > ${.TARGET}
30
31CLEANFILES= c-parse+%DIKED.c c-parse.c c-parse.y
32CLEANFILES+= y.tab.h # we don't use it, but the system YACC rules are naive
33
34.include <bsd.prog.mk>