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