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

37 lines
799 B
Makefile
Raw Normal View History

2001-12-18 03:12:24 +00:00
# $FreeBSD$
.include "../Makefile.inc"
.PATH: ${GCCDIR}/cp ${GCCDIR}
PROG= cc1plus
2002-04-06 23:18:01 +00:00
SRCS= parse.c cfns.h
SRCS+= main.c cp-lang.c
SRCS+= call.c class.c cvt.c decl.c decl2.c error.c except.c expr.c \
2001-12-18 03:12:24 +00:00
friend.c init.c lex.c mangle.c method.c pt.c ptree.c repo.c rtti.c \
2002-04-06 23:18:01 +00:00
search.c semantics.c spew.c tree.c typeck.c typeck2.c dump.c optimize.c
2001-12-18 03:12:24 +00:00
BINDIR= /usr/libexec
NOMAN= 1
2002-04-06 23:18:01 +00:00
NOSHARED?=yes
2001-12-18 03:12:24 +00:00
CFLAGS+= -I${GCCDIR}/cp -I.
DPADD+= ${LIBCC_INT}
LDADD+= ${LIBCC_INT}
2002-04-06 23:18:01 +00:00
.ORDER: parse.c
parse.c: parse.y
${YACC} -o parse.c.in ${.ALLSRC}
sed -e "s/malloc/xmalloc/g" \
-e "s/realloc/xrealloc/g" \
parse.c.in >parse.c
2001-12-18 03:12:24 +00:00
2002-04-06 23:18:01 +00:00
CLEANFILES+= parse.c cfns.h
2001-12-18 03:12:24 +00:00
cfns.h:
gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' \
${GCCDIR}/cp/cfns.gperf > ${.TARGET}
.include <bsd.prog.mk>