diff --git a/sys/arch/evbarm/stand/gzboot/Makefile.gzboot b/sys/arch/evbarm/stand/gzboot/Makefile.gzboot index 1b78e5756e74..2b302f716b1e 100644 --- a/sys/arch/evbarm/stand/gzboot/Makefile.gzboot +++ b/sys/arch/evbarm/stand/gzboot/Makefile.gzboot @@ -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 @@ COPTS+= -ffreestanding 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 @@ vers.c: ${VERSIONFILE} ${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 ${PROGSYM}: ${STARTFILE} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}