From f3553d97f6e2b94d0e5395758028f315e937f386 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 3 Feb 2004 19:06:06 +0000 Subject: [PATCH] This should fix the dependancy loop for sure. --- gnu/usr.bin/cc3/f771/Makefile | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/gnu/usr.bin/cc3/f771/Makefile b/gnu/usr.bin/cc3/f771/Makefile index 703e4c33a3..64f2a0698e 100644 --- a/gnu/usr.bin/cc3/f771/Makefile +++ b/gnu/usr.bin/cc3/f771/Makefile @@ -1,5 +1,5 @@ # $FreeBSD: src/gnu/usr.bin/cc/f771/Makefile,v 1.10 2004/01/11 20:45:46 ru Exp $ -# $DragonFly: src/gnu/usr.bin/cc3/f771/Attic/Makefile,v 1.6 2004/02/03 18:06:06 dillon Exp $ +# $DragonFly: src/gnu/usr.bin/cc3/f771/Attic/Makefile,v 1.7 2004/02/03 19:06:06 dillon Exp $ .include "${.CURDIR}/../Makefile.inc" @@ -16,15 +16,24 @@ SRCS= bad.c bit.c bld.c com.c data.c equiv.c expr.c global.c implic.c info.c \ NOMAN= CFLAGS+= -I${GCCDIR}/gcc/f -I. +CFLAGS+= -DMALLOC_RENAME DPADD= ${LIBCC_INT} LDADD= ${LIBCC_INT} -DKFLAGS= -Dxmalloc=malloc -Dxrealloc=realloc - +# This is a mess. PROG generates an objects-depend-on-all-headers +# dependancy prior to building the depends, so we have to specify +# files not in SRCS +# build-tools: fini -fini: fini.o - ${CC} -static ${CFLAGS} ${DKFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} +fini: fini.o xmalloc_local.o xexit_local.o + ${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} + +xmalloc_local.o : xmalloc.c + ${CC} ${CFLAGS} -c -o ${.TARGET} ${.ALLSRC} + +xexit_local.o : xexit.c + ${CC} ${CFLAGS} -c -o ${.TARGET} ${.ALLSRC} CLEANFILES= fini fini.o -- 2.41.0