summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cc/cc1obj/Makefile
blob: c0257438a74eef7ce9925b4ea6a2e9971966f3d2 (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
34
35
# $FreeBSD$

.include "../Makefile.inc"

.PATH: ${GCCDIR}/objc ${GCCDIR}

PROG=	cc1obj
SRCS=	main.c objc-parse+DIKED.c objc-act.c objc-lang.c c-decl.c
BINDIR=	/usr/libexec
NOMAN=	1
NOSHARED?=yes

CFLAGS+= -I${GCCDIR}/objc -I.

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

#-----------------------------------------------------------------------
# objc parser
objc-parse+DIKED.c: objc-parse.c
	sed -e "s/malloc/xmalloc/g" \
	    -e "s/realloc/xrealloc/g" \
	    ${.ALLSRC} > ${.TARGET}

objc-parse.y: c-parse.in
	sed -e "/^@@ifc.*/,/^@@end_ifc.*/d" \
	    -e "/^@@ifobjc.*/d" -e "/^@@end_ifobjc.*/d" \
	    ${.ALLSRC} > ${.TARGET}

CLEANFILES=	objc-parse+DIKED.c objc-parse.c objc-parse.y
CLEANFILES+=	y.tab.h # we don't use it, but the system YACC rules are naive

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

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