Makefile revision 96448
1# $FreeBSD: head/gnu/usr.bin/cc/cc1/Makefile 96448 2002-05-12 12:06:19Z obrien $
2
3.include "../Makefile.inc"
4
5.PATH: ../cc_tools ${GCCDIR}
6 
7PROG=	cc1
8SRCS=	main.c c-parse.c c-lang.c c-decl.c
9BINDIR=	/usr/libexec
10NOMAN=	1
11NOSHARED?=yes
12
13CFLAGS+= -I.
14
15DPADD+=	${LIBCC_INT} 
16LDADD+=	${LIBCC_INT}
17
18#-----------------------------------------------------------------------
19# C parser
20.ORDER: c-parse.c
21c-parse.c: c-parse.in
22	sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
23	    -e "/^ifc$$/d" \
24	    -e "/^end ifc$$/d" \
25	    ${GCCDIR}/c-parse.in > c-parse.y
26	${YACC} -o c-parse.c.in c-parse.y
27	sed -e "s/malloc/xmalloc/g" \
28	    -e "s/realloc/xrealloc/g" \
29	    c-parse.c.in >c-parse.c
30
31CLEANFILES=	c-parse.c c-parse.y
32
33.include <bsd.prog.mk>
34