freebsd-dev/gnu/usr.bin/cc/cc1obj/Makefile

37 lines
860 B
Makefile
Raw Normal View History

2001-12-18 03:11:35 +00:00
# $FreeBSD$
.include "../Makefile.inc"
.PATH: ${GCCDIR}/objc ${GCCDIR}
2001-12-18 03:11:35 +00:00
PROG= cc1obj
SRCS= objc-parse+DIKED.c objc-act.c objc-lang.c main.c c-decl.c
2001-12-18 03:11:35 +00:00
BINDIR= /usr/libexec
NOMAN= 1
2002-04-06 23:18:01 +00:00
NOSHARED?=yes
2001-12-18 03:11:35 +00:00
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
2001-12-18 03:11:35 +00:00
sed -e "/^ifc$$/,/^end ifc$$/d" \
2002-04-04 19:44:34 +00:00
-e "/^ifobjc$$/d" \
-e "/^end ifobjc$$/d" \
${.ALLSRC} > ${.TARGET}
2001-12-18 03:11:35 +00:00
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
2001-12-18 03:11:35 +00:00
#-----------------------------------------------------------------------
.include <bsd.prog.mk>