6677f3e022
In the end, I can do things more like the previous Bmake bits than was apparent in the middle of the gcc31 WIP.
37 lines
860 B
Makefile
37 lines
860 B
Makefile
# $FreeBSD$
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
.PATH: ${GCCDIR}/objc ${GCCDIR}
|
|
|
|
PROG= cc1obj
|
|
SRCS= objc-parse+DIKED.c objc-act.c objc-lang.c main.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>
|