summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cc/cc1/Makefile
blob: 3f25fbb960bdc5dd3e5b3ed7092b6dc651aa7eab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $FreeBSD$

.include "../Makefile.inc"

.PATH: ../cc_tools ${GCCDIR}
 
PROG=	cc1
SRCS=	c-parse.c c-parse.h c-lang.c
# Ugh, compiled twice...
SRCS+=	c-decl.c c-lex.c
BINDIR=	/usr/libexec
NOMAN=	1
NOSHARED?=yes

CFLAGS+= -I.

DPADD+=	${LIBCC_INT} 
LDADD+=	${LIBCC_INT}

#-----------------------------------------------------------------------
# C parser
.ORDER: c-parse.c c-parse.h
c-parse.c c-parse.h: c-parse.in
	sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
	    -e "/^ifc$$/d" -e "/^end ifc$$/d" \
	    ${.ALLSRC} > c-parse.y
	${YACC} -d -o c-parse.c c-parse.y

CLEANFILES+=	c-parse.c c-parse.h c-parse.y 		# insurance

#-----------------------------------------------------------------------

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud