From d0bc9228afb1ce3bb74e78d2e39db16930ea5f6f Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Thu, 15 Oct 2009 20:50:22 +0000 Subject: 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. --- gnu/usr.bin/cc/cc1/Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 gnu/usr.bin/cc/cc1/Makefile (limited to 'gnu/usr.bin/cc/cc1') 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 + +.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 -- cgit v1.2.3