1# $FreeBSD: head/gnu/usr.bin/cc/cc1/Makefile 132751 2004-07-28 05:27:21Z kan $
2
3.include "../Makefile.inc"
4
5.PATH: ${GCCDIR}
6
7PROG= cc1
8SRCS= main.c c-parse+%DIKED.c c-lang.c stub-objc.c
9BINDIR= /usr/libexec
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" -e "/^@@end_ifc.*/d" \
28 ${.ALLSRC} > ${.TARGET}
29
30CLEANFILES= c-parse+%DIKED.c c-parse.c c-parse.y
31CLEANFILES+= y.tab.h # we don't use it, but the system YACC rules are naive
32
33.include <bsd.prog.mk>
2
3.include "../Makefile.inc"
4
5.PATH: ${GCCDIR}
6
7PROG= cc1
8SRCS= main.c c-parse+%DIKED.c c-lang.c stub-objc.c
9BINDIR= /usr/libexec
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" -e "/^@@end_ifc.*/d" \
28 ${.ALLSRC} > ${.TARGET}
29
30CLEANFILES= c-parse+%DIKED.c c-parse.c c-parse.y
31CLEANFILES+= y.tab.h # we don't use it, but the system YACC rules are naive
32
33.include <bsd.prog.mk>