diff options
author | bde <bde@FreeBSD.org> | 1998-12-27 15:24:21 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-12-27 15:24:21 +0000 |
commit | f13120ec87db95e5368b6f1866508b7e8c8414d5 (patch) | |
tree | 7ece257b001020627322f4900d08fbebcf43f97c /lib/csu | |
parent | 9b7e972a2c86ac93c799798f92a602f066a1ca7e (diff) | |
download | FreeBSD-src-f13120ec87db95e5368b6f1866508b7e8c8414d5.zip FreeBSD-src-f13120ec87db95e5368b6f1866508b7e8c8414d5.tar.gz |
Avoid using ld -O (as in bsd.lib.mk).
Fixed `make cleandepend'. The default is null because SRCS is null.
Diffstat (limited to 'lib/csu')
-rw-r--r-- | lib/csu/i386/Makefile | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/lib/csu/i386/Makefile b/lib/csu/i386/Makefile index 9cd822c..d58be68 100644 --- a/lib/csu/i386/Makefile +++ b/lib/csu/i386/Makefile @@ -1,19 +1,22 @@ # from: @(#)Makefile 5.6 (Berkeley) 5/22/91 -# $Id: Makefile,v 1.37 1998/05/26 20:12:52 sos Exp $ +# $Id: Makefile,v 1.38 1998/05/31 11:32:37 bde Exp $ CFLAGS+= -DLIBC_SCCS -fno-omit-frame-pointer OBJS= crt0.o c++rt0.o gcrt0.o scrt0.o sgcrt0.o -CLEANFILES+= a.out +CLEANFILES= a.out crt0.o.tmp c++rt0.o.tmp gcrt0.o.tmp scrt0.o.tmp \ + sgcrt0.o.tmp all: ${OBJS} crt0.o: crt0.c ${CC} ${CFLAGS} -c -DCRT0 -DDYNAMIC ${.CURDIR}/crt0.c -o ${.TARGET} - ${LD} -O ${.TARGET} -x -r ${.TARGET} + ${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} c++rt0.o: c++rt0.c ${CC} ${CFLAGS} -fpic -c ${.CURDIR}/c++rt0.c - @${LD} -O ${.TARGET} -x -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} # # gcrt0.o doesn't really depend on crt0.o, but this is the easiest way @@ -21,17 +24,20 @@ c++rt0.o: c++rt0.c # gcrt0.o: crt0.o ${CC} ${CFLAGS} -c -DMCRT0 -DDYNAMIC ${.CURDIR}/crt0.c -o ${.TARGET} - ${LD} -O ${.TARGET} -x -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} # dependencies fudged as for gcrt0.o scrt0.o: crt0.o ${CC} ${CFLAGS} -c -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET} - ${LD} -O ${.TARGET} -x -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} # dependencies fudged as for gcrt0.o sgcrt0.o: scrt0.o ${CC} ${CFLAGS} -c -DMCRT0 ${.CURDIR}/crt0.c -o ${.TARGET} - ${LD} -O ${.TARGET} -x -r ${.TARGET} + @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} + @mv ${.TARGET}.tmp ${.TARGET} realinstall: ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \ @@ -44,6 +50,9 @@ depend: .depend mkdep ${CFLAGS} -DCRT0 -DDYNAMIC ${.CURDIR}/crt0.c mkdep -a ${CFLAGS} ${.CURDIR}/c++rt0.c +cleandepend: + rm -f .depend + lint tags: .include <bsd.prog.mk> |