Deleted Added
full compact
Makefile (94328) Makefile (96340)
1# $FreeBSD: head/gnu/usr.bin/cc/cc1/Makefile 94328 2002-04-10 01:48:47Z obrien $
1# $FreeBSD: head/gnu/usr.bin/cc/cc1/Makefile 96340 2002-05-10 08:54:50Z obrien $
2
3.include "../Makefile.inc"
4
2
3.include "../Makefile.inc"
4
5.PATH: ${GCCDIR}
5.PATH: ../cc_tools ${GCCDIR}
6
7PROG= cc1
6
7PROG= cc1
8SRCS= c-parse.y c-lang.c
9# Ugh, compiled twice...
10SRCS+= c-decl.c c-lex.c
8SRCS= main.c c-parse.c c-lang.c c-decl.c
11BINDIR= /usr/libexec
12NOMAN= 1
9BINDIR= /usr/libexec
10NOMAN= 1
13NOSHARED=yes
11NOSHARED?=yes
14
15CFLAGS+= -I.
16
17DPADD+= ${LIBCC_INT}
18LDADD+= ${LIBCC_INT}
19
20#-----------------------------------------------------------------------
21# C parser
12
13CFLAGS+= -I.
14
15DPADD+= ${LIBCC_INT}
16LDADD+= ${LIBCC_INT}
17
18#-----------------------------------------------------------------------
19# C parser
22c-parse.y: c-parse.in
20.ORDER: c-parse.c
21c-parse.c: c-parse.in
23 sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
24 -e "/^ifc$$/d" \
25 -e "/^end ifc$$/d" \
22 sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
23 -e "/^ifc$$/d" \
24 -e "/^end ifc$$/d" \
26 ${.ALLSRC} > ${.TARGET}
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
27
30
28CLEANFILES+= c-parse.y
29#-----------------------------------------------------------------------
31CLEANFILES+= c-parse.c c-parse.y # insurance
30
31.include <bsd.prog.mk>
32
33.include <bsd.prog.mk>