Makefile revision 1.7
11.7Slukem#	$NetBSD: Makefile,v 1.7 2002/02/09 09:36:00 lukem Exp $
21.1Sthorpej
31.1SthorpejPROGAOUT=	uboot
41.1SthorpejPROGSOURCE=	uboot.c tgets.c
51.1SthorpejNEWVERSWHAT=	"Primary Boot"
61.2Sthorpej
71.2SthorpejCPPFLAGS+=	-DSUPPORT_ETHERNET -DSUPPORT_TAPE -DSUPPORT_DISK
81.1Sthorpej
91.6Sgmcgarry.include "../Makefile.buildboot"
101.6Sgmcgarry
111.1Sthorpejinstall:
121.7Slukem	${INSTALL_DIR} -o ${BINOWN} -g ${BINGRP} -m 755 \
131.1Sthorpej	    ${DESTDIR}${BINDIR}/rbootd
141.7Slukem	${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 444 \
151.5Sgmcgarry	    uboot.lif ${DESTDIR}${BINDIR}/uboot.lif
161.1Sthorpej	rm -f ${DESTDIR}${BINDIR}/rdboot
171.1Sthorpej	ln ${DESTDIR}${BINDIR}/uboot.lif ${DESTDIR}${BINDIR}/rdboot
181.1Sthorpej	rm -f ${DESTDIR}${BINDIR}/bootrd
191.1Sthorpej	ln ${DESTDIR}${BINDIR}/uboot.lif ${DESTDIR}${BINDIR}/bootrd
201.1Sthorpej	rm -f ${DESTDIR}${BINDIR}/sdboot
211.1Sthorpej	ln ${DESTDIR}${BINDIR}/uboot.lif ${DESTDIR}${BINDIR}/sdboot
221.1Sthorpej	rm -f ${DESTDIR}${BINDIR}/bootsd
231.1Sthorpej	ln ${DESTDIR}${BINDIR}/uboot.lif ${DESTDIR}${BINDIR}/bootsd
241.1Sthorpej	rm -f ${DESTDIR}${BINDIR}/ctboot
251.1Sthorpej	ln ${DESTDIR}${BINDIR}/uboot.lif ${DESTDIR}${BINDIR}/ctboot
261.1Sthorpej	rm -f ${DESTDIR}${BINDIR}/bootct
271.1Sthorpej	ln ${DESTDIR}${BINDIR}/uboot.lif ${DESTDIR}${BINDIR}/bootct
281.1Sthorpej	rm -f ${DESTDIR}${BINDIR}/rbootd/SYS_UBOOT
291.1Sthorpej	ln ${DESTDIR}${BINDIR}/uboot.lif ${DESTDIR}${BINDIR}/rbootd/SYS_UBOOT
301.3She
311.3She.ifndef RELEASEDIR
321.3Sherelease:
331.3She	@echo setenv RELEASEDIR first
341.3She	@false
351.3She.else
361.3Sherelease: uboot.lif
371.4Ssimonb	mkdir -p ${RELEASEDIR}/installation/misc
381.4Ssimonb	rm -f ${RELEASEDIR}/installation/misc/SYS_UBOOT
391.4Ssimonb	${INSTALL} ${COPY} -m 444 uboot.lif \
401.4Ssimonb	    ${RELEASEDIR}/installation/misc/SYS_UBOOT
411.3She.endif # RELEASEDIR check
42