diff options
| author | Alexander Kabaev <kan@FreeBSD.org> | 2007-05-19 04:25:59 +0000 |
|---|---|---|
| committer | Alexander Kabaev <kan@FreeBSD.org> | 2007-05-19 04:25:59 +0000 |
| commit | afb57df680a4b620d54eac30728eca95e51fc0e3 (patch) | |
| tree | c672216e954c97dc45e1ed2b7fc903556dfde7b5 /gnu/usr.bin/cc/cc1 | |
| parent | 25a362d725586cc4e90a63cea065de53c14230ae (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/cc/cc1')
| -rw-r--r-- | gnu/usr.bin/cc/cc1/Makefile | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/gnu/usr.bin/cc/cc1/Makefile b/gnu/usr.bin/cc/cc1/Makefile index b05ad1ef9337..c65acd28ecec 100644 --- a/gnu/usr.bin/cc/cc1/Makefile +++ b/gnu/usr.bin/cc/cc1/Makefile @@ -3,31 +3,24 @@ .include "../Makefile.inc" .PATH: ${GCCDIR} - + PROG= cc1 -SRCS= main.c c-parse+%DIKED.c c-lang.c stub-objc.c +SRCS= main.c c-parser.c c-lang.c BINDIR= /usr/libexec NO_MAN= NO_SHARED?=yes -CFLAGS+= -I. - -DPADD= ${LIBCC_INT} -LDADD= ${LIBCC_INT} - -#----------------------------------------------------------------------- -# C parser -c-parse+%DIKED.c: c-parse.c - sed -e "s/malloc/xmalloc/g" \ - -e "s/realloc/xrealloc/g" \ - ${.ALLSRC} > ${.TARGET} +OBJS+= ${PROG}-checksum.o +DPADD= ${LIBBACKEND} ${LIBCPP} ${LIBDECNUMBER} ${LIBIBERTY} +LDADD= ${LIBBACKEND} ${LIBCPP} ${LIBDECNUMBER} ${LIBIBERTY} -c-parse.y: c-parse.in - sed -e "/^@@ifobjc.*/,/^@@end_ifobjc.*/d" \ - -e "/^@@ifc.*/d" -e "/^@@end_ifc.*/d" \ - ${.ALLSRC} > ${.TARGET} +DOBJS+= ${SRCS:N*.h:R:S/$/.o/g} +${PROG}-dummy: ${DOBJS} + ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${DOBJS} ${LDADD} +CLEANFILES+= ${PROG}-dummy -CLEANFILES= c-parse+%DIKED.c c-parse.c c-parse.y -CLEANFILES+= y.tab.h # we don't use it, but the system YACC rules are naive +${PROG}-checksum.c: ${PROG}-dummy + ../cc_tools/genchecksum ${PROG}-dummy > ${.TARGET} +CLEANFILES+= ${PROG}-checksum.c .include <bsd.prog.mk> |
