diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2009-10-15 20:50:22 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2009-10-15 20:50:22 +0000 |
commit | d0bc9228afb1ce3bb74e78d2e39db16930ea5f6f (patch) | |
tree | b633906d94eb8441667927901b304880088884fd /gnu/usr.bin/cc/cc1 | |
parent | 6c6d27ead70914301fa8256977ca53019ac9add3 (diff) |
Import a BSD make based infrastructure for building gcc, based on the
same solution from FreeBSD.
Don't even try to build it at the moment. This is commited so people can
work on it in tree.
Diffstat (limited to 'gnu/usr.bin/cc/cc1')
-rw-r--r-- | gnu/usr.bin/cc/cc1/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/usr.bin/cc/cc1/Makefile b/gnu/usr.bin/cc/cc1/Makefile new file mode 100644 index 00000000000..8da1d55f6c3 --- /dev/null +++ b/gnu/usr.bin/cc/cc1/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD: src/gnu/usr.bin/cc/cc1/Makefile,v 1.35.8.1 2009/04/15 03:14:26 kensmith Exp $ +# $OpenBSD: Makefile,v 1.1.1.1 2009/10/15 20:50:20 robert Exp $ + +.include <bsd.own.mk> + +.include "${.CURDIR}/../Makefile.inc" +.include "${.CURDIR}/../Makefile.ver" + +.PATH: ${GCCDIR} + +PROG= cc1 +SRCS= main.c c-parser.c c-lang.c +BINDIR= /usr/lib/gcc-lib/${GCC_TARGET}/${BASEVER} +NOMAN= Yes + +OBJS+= ${PROG}-checksum.o +DPADD= ${LIBBACKEND} ${LIBCPP} ${LIBDECNUMBER} ${LIBIBERTY} +LDADD= ${LIBBACKEND} ${LIBCPP} ${LIBDECNUMBER} ${LIBIBERTY} + +DOBJS+= ${SRCS:N*.h:R:S/$/.o/g} +${PROG}-dummy: ${DOBJS} + ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${DOBJS} ${LDADD} +CLEANFILES+= ${PROG}-dummy + +${PROG}-checksum.c: ${PROG}-dummy + ../cc_tools/genchecksum ${PROG}-dummy > ${.TARGET} +CLEANFILES+= ${PROG}-checksum.c + +.include <bsd.prog.mk> |