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