binutils214 stage 2/4.
[dragonfly.git] / gnu / usr.bin / cc3 / cc1obj / Makefile
CommitLineData
74fbd2f0 1# $FreeBSD: src/gnu/usr.bin/cc/cc1obj/Makefile,v 1.22 2002/05/13 03:27:02 obrien Exp $
17030342 2# $DragonFly: src/gnu/usr.bin/cc3/cc1obj/Attic/Makefile,v 1.3 2004/02/02 05:43:12 dillon Exp $
74fbd2f0
DR
3
4.include "../Makefile.inc"
5
6.PATH: ${GCCDIR}/objc ${GCCDIR}
7
8PROG= cc1obj
9SRCS= objc-parse+DIKED.c objc-act.c objc-lang.c main.c c-decl.c
74fbd2f0
DR
10NOMAN= 1
11NOSHARED?=yes
12
13CFLAGS+= -I${GCCDIR}/objc -I.
14
15DPADD+= ${LIBCC_INT}
16LDADD+= ${LIBCC_INT}
17
18#-----------------------------------------------------------------------
19# objc parser
20objc-parse+DIKED.c: objc-parse.c
21 sed -e "s/malloc/xmalloc/g" \
22 -e "s/realloc/xrealloc/g" \
23 ${.ALLSRC} > ${.TARGET}
24
25objc-parse.y: c-parse.in
26 sed -e "/^ifc$$/,/^end ifc$$/d" \
27 -e "/^ifobjc$$/d" \
28 -e "/^end ifobjc$$/d" \
29 ${.ALLSRC} > ${.TARGET}
30
31CLEANFILES= objc-parse+DIKED.c objc-parse.c objc-parse.y
32CLEANFILES+= y.tab.h # we don't use it, but the system YACC rules are naive
33
34#-----------------------------------------------------------------------
35
36.include <bsd.prog.mk>