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
|
5.PATH: ${GCCDIR}
|
5.PATH: ../cc_tools ${GCCDIR} |
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 |
9BINDIR= /usr/libexec 10NOMAN= 1
|
13NOSHARED=yes
|
11NOSHARED?=yes |
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 |
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 |
30
|
28CLEANFILES+= c-parse.y
29#-----------------------------------------------------------------------
|
31CLEANFILES+= c-parse.c c-parse.y # insurance |
32 33.include <bsd.prog.mk>
|