Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/stand/gzboot * Add ${PROGSYM} to CLEANFILES.
details: https://anonhg.NetBSD.org/src/rev/852281693efb
branches: trunk
changeset: 546430:852281693efb
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Apr 29 05:32:41 2003 +0000
description:
* Add ${PROGSYM} to CLEANFILES.
* Instsall either the .bin or the .sym, based on whether or not
the resulting gzboot needs to be mdsetimage'd.
diffstat:
sys/arch/evbarm/stand/gzboot/Makefile.gzboot | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (35 lines):
diff -r 764c08a9af20 -r 852281693efb sys/arch/evbarm/stand/gzboot/Makefile.gzboot
--- a/sys/arch/evbarm/stand/gzboot/Makefile.gzboot Tue Apr 29 05:15:14 2003 +0000
+++ b/sys/arch/evbarm/stand/gzboot/Makefile.gzboot Tue Apr 29 05:32:41 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.gzboot,v 1.7 2003/04/29 05:15:14 thorpej Exp $
+# $NetBSD: Makefile.gzboot,v 1.8 2003/04/29 05:32:41 thorpej Exp $
NOMAN= # defined
@@ -50,6 +50,7 @@
CWARNFLAGS+= -Wno-main
CLEANFILES+= ${STARTFILE} vers.c ${BASE}.list
+CLEANFILES+= ${PROGSYM}
SRCS+= vers.c
.if !make(obj) && !make(clean) && !make(cleandir)
@@ -99,6 +100,17 @@
${PROG}: ${PROGSYM}
${OBJCOPY} -O binary ${PROGSYM} ${.TARGET}
+# Prevent the normal install target from doing anything.
+proginstall::
+
+# Install the raw binary or the symbol version, based on whether or
+# not the resulting gzboot needs to be mdsetimage'd.
+.if ${MAXIMAGESIZE} == "0"
+FILES= ${PROG}
+.else
+FILES= ${PROGSYM}
+.endif
+
.include <bsd.prog.mk>
${PROGSYM}: ${STARTFILE} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
Home |
Main Index |
Thread Index |
Old Index