Module Name:    src
Committed By:   phx
Date:           Thu Jan 27 16:13:51 UTC 2011

Modified Files:
        src/sys/arch/sandpoint/stand/altboot: Makefile

Log Message:
Some cleanup. No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/sandpoint/stand/altboot/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sandpoint/stand/altboot/Makefile
diff -u src/sys/arch/sandpoint/stand/altboot/Makefile:1.5 src/sys/arch/sandpoint/stand/altboot/Makefile:1.6
--- src/sys/arch/sandpoint/stand/altboot/Makefile:1.5	Thu Jan 27 04:54:40 2011
+++ src/sys/arch/sandpoint/stand/altboot/Makefile	Thu Jan 27 16:13:51 2011
@@ -1,12 +1,13 @@
-#	$NetBSD: Makefile,v 1.5 2011/01/27 04:54:40 nisimura Exp $
+#	$NetBSD: Makefile,v 1.6 2011/01/27 16:13:51 phx Exp $
 
 S=		${.CURDIR}/../../../..
 
 PROG=		altboot
 NOMAN=		# defined
-SRCS=		entry.S main.c brdsetup.c pci.c devopen.c dev_net.c nif.c \
-		fxp.c tlp.c rge.c skg.c dsk.c pciide.c siisata.c printf.c
-CLEANFILES+=	vers.c vers.o ${PROG} ${PROG}.bin
+SRCS=		entry.S main.c brdsetup.c pci.c devopen.c dev_net.c nif.c
+SRCS+=		fxp.c tlp.c rge.c skg.c dsk.c pciide.c siisata.c printf.c
+SRCS+=		vers.c
+CLEANFILES+=	vers.c ${PROG} ${PROG}.bin
 CFLAGS+=	-Wall -Wno-main -ffreestanding -msoft-float -mmultiple
 CFLAGS+=	-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
 CPPFLAGS+=	-D_STANDALONE -DSUPPORT_DHCP
@@ -53,17 +54,14 @@
 .include "${S}/lib/libsa/Makefile.inc"
 LIBSA=		${SALIB}
 
-${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
+.PHONY: vers.c
+vers.c: version
 	${HOST_SH} ${S}/conf/newvers_stand.sh -K \
-	    ${${MKREPRO} == "yes" :?:-D} ${.CURDIR}/version sandpoint
-	${CC} -c vers.c
+	    ${${MKREPRO} == "yes" :?:-D} ${.CURDIR}/version "sandpoint"
+
+${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
 	${LD} -N -Ttext ${RELOC} -Bstatic -e ${ENTRY} -o ${PROG} \
-	    ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBKERN}
+	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
 	${OBJCOPY} -S -O binary ${.TARGET} ${.TARGET}.bin
 
 .include <bsd.prog.mk>
-
-cleandir distclean: .WAIT cleanlibdir
-
-cleanlibdir:
-	-rm -rf lib

Reply via email to