| 1 | # $FreeBSD: src/gnu/usr.bin/cc/cc1plus/Makefile,v 1.33 2003/07/11 05:37:23 kan Exp $ |
| 2 | # $DragonFly: src/gnu/usr.bin/cc3/cc1plus/Attic/Makefile,v 1.3 2004/02/02 05:43:12 dillon Exp $ |
| 3 | |
| 4 | .include "../Makefile.inc" |
| 5 | |
| 6 | .PATH: ${GCCDIR}/cp ${GCCDIR} |
| 7 | |
| 8 | PROG= cc1plus |
| 9 | SRCS= parse+%DIKED.c parse.h cfns.h |
| 10 | SRCS+= main.c cp-lang.c c-opts.c \ |
| 11 | call.c class.c cvt.c decl.c decl2.c error.c except.c expr.c friend.c \ |
| 12 | init.c lex.c mangle.c method.c pt.c ptree.c repo.c rtti.c search.c \ |
| 13 | semantics.c spew.c tree.c typeck.c typeck2.c dump.c optimize.c |
| 14 | |
| 15 | NOMAN= 1 |
| 16 | NOSHARED?=yes |
| 17 | |
| 18 | CFLAGS+= -I${GCCDIR}/cp -I. |
| 19 | |
| 20 | DPADD+= ${LIBCC_INT} |
| 21 | LDADD+= ${LIBCC_INT} |
| 22 | |
| 23 | #----------------------------------------------------------------------- |
| 24 | # C++ parser |
| 25 | |
| 26 | parse+%DIKED.c y.tab.h: parse.c |
| 27 | sed -e "s/malloc/xmalloc/g" \ |
| 28 | -e "s/realloc/xrealloc/g" \ |
| 29 | ${.ALLSRC:M*c} > ${.TARGET} |
| 30 | |
| 31 | parse.h: y.tab.h |
| 32 | cp -pf y.tab.h ${.TARGET} |
| 33 | grep '^#define[ ]*YYEMPTY' ${.TARGET:S/h$/c/} >>${.TARGET} |
| 34 | |
| 35 | cfns.h: cfns.gperf |
| 36 | gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' \ |
| 37 | ${.ALLSRC} > ${.TARGET} |
| 38 | |
| 39 | CLEANFILES= parse+%DIKED.c parse.c parse.h y.tab.h cfns.h |
| 40 | |
| 41 | .include <bsd.prog.mk> |