2001-12-18 03:11:35 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
|
2002-05-13 03:27:03 +00:00
|
|
|
.PATH: ${GCCDIR}/objc ${GCCDIR}
|
2001-12-18 03:11:35 +00:00
|
|
|
|
|
|
|
PROG= cc1obj
|
2002-05-13 03:27:03 +00:00
|
|
|
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
|
2002-05-13 03:27:03 +00:00
|
|
|
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" \
|
2002-05-13 03:27:03 +00:00
|
|
|
${.ALLSRC} > ${.TARGET}
|
2001-12-18 03:11:35 +00:00
|
|
|
|
2002-05-13 03:27:03 +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>
|