From 3349737cd7487ec09250821873b7f3810971f7ad Mon Sep 17 00:00:00 2001 From: bde Date: Tue, 7 Jul 1998 02:43:26 +0000 Subject: Added a `build-tools' target for internal tools. Honor LDFLAGS for building internal tools. --- sys/i386/boot/netboot/Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'sys/i386') diff --git a/sys/i386/boot/netboot/Makefile b/sys/i386/boot/netboot/Makefile index 2352b2c..ec81713 100644 --- a/sys/i386/boot/netboot/Makefile +++ b/sys/i386/boot/netboot/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.17 1998/06/29 18:52:33 bde Exp $ +# $Id: Makefile,v 1.18 1998/06/30 11:10:24 phk Exp $ # # Makefile for NETBOOT # @@ -41,7 +41,7 @@ NS8390= -DINCLUDE_NE #NS8390+= -DINCLUDE_3COM -D_3COM_BASE=0x300 CLEANFILES+= netboot.com CLEANFILES+= makerom start2.ro 3c509.o ns8390.o -LDFLAGS+= -N -T ${RELOCADDR} -e _start -nostdlib +ROMLDFLAGS= ${LDFLAGS} -N -T ${RELOCADDR} -e _start -nostdlib NOSHARED= YES MAN8= netboot.8 STRIP= @@ -54,33 +54,36 @@ RELOCADDR=0x90000 .S.ro: ${CC} ${CFLAGS} -DBOOTROM -o ${.TARGET} -c ${.IMPSRC} +build-tools: makerom + ns8390.o: ns8390.c ${CC} ${CFLAGS} $(NS8390) -o ${.TARGET} -c $< makerom: makerom.c - ${CC} ${CFLAGS} -o ${.TARGET} -DROMSIZE=${ROMSIZE} ${.CURDIR}/makerom.c + ${CC} ${CFLAGS} -DROMSIZE=${ROMSIZE} ${LDFLAGS} -o ${.TARGET} \ + ${.CURDIR}/makerom.c nb8390.rom: makerom start2.ro ${SRCS:N*.h:R:S/$/.o/g} ns8390.o - ${LD} ${LDFLAGS} -o ${.TARGET} ${OBJS:S/start2.o/start2.ro/} ns8390.o + ${LD} ${ROMLDFLAGS} -o ${.TARGET} ${OBJS:S/start2.o/start2.ro/} ns8390.o strip ${.TARGET} size ${.TARGET} ${.OBJDIR}/makerom ${.TARGET} nb3c509.rom: makerom start2.ro ${SRCS:N*.h:R:S/$/.o/g} 3c509.o - ${LD} ${LDFLAGS} -o ${.TARGET} ${OBJS:S/start2.o/start2.ro/} 3c509.o + ${LD} ${ROMLDFLAGS} -o ${.TARGET} ${OBJS:S/start2.o/start2.ro/} 3c509.o strip ${.TARGET} size ${.TARGET} ${.OBJDIR}/makerom ${.TARGET} nb8390.com: makerom start2.ro ${SRCS:N*.h:R:S/$/.o/g} ns8390.o - ${LD} ${LDFLAGS} -o ${.TARGET}.tmp ${OBJS} ns8390.o + ${LD} ${ROMLDFLAGS} -o ${.TARGET}.tmp ${OBJS} ns8390.o strip ${.TARGET}.tmp size ${.TARGET}.tmp dd ibs=32 skip=1 if=${.TARGET}.tmp of=${.TARGET} rm -f ${.TARGET}.tmp nb3c509.com: start2.o ${SRCS:N*.h:R:S/$/.o/g} 3c509.o - ${LD} ${LDFLAGS} -o ${.TARGET}.tmp ${OBJS} 3c509.o + ${LD} ${ROMLDFLAGS} -o ${.TARGET}.tmp ${OBJS} 3c509.o strip ${.TARGET}.tmp size ${.TARGET}.tmp dd ibs=32 skip=1 if=${.TARGET}.tmp of=${.TARGET} -- cgit v1.1