Makefile revision 1.13
11.13Sfredette#	$NetBSD: Makefile,v 1.13 2002/04/22 21:11:45 fredette Exp $
21.1Slukem#
31.1Slukem
41.1SlukemPROG=	installboot
51.11SlukemSRCS=	installboot.c sum.c machines.c fstypes.c \
61.11Slukem	ffs.c ffs_bswap.c \
71.12Slukem	alpha.c pmax.c sparc64.c sun68k.c vax.c
81.1SlukemMAN=	installboot.8
91.1Slukem
101.1SlukemWARNS?=	3
111.4Slukem
121.11SlukemUFSSRC=		${_SRC_TOP_}/sys/ufs
131.12SlukemCPPFLAGS+=	-I${.CURDIR} -I.
141.11Slukem.PATH:		${.CURDIR}/arch ${UFSSRC}/ffs
151.12Slukem
161.12Slukem
171.12Slukemsun68k.c:	sun68k_bbinfo.h
181.12Slukem
191.12Slukemsun68k_bbinfo.h: ${_SRC_TOP_}/sys/arch/sun68k/stand/libsa/bbinfo.h
201.12Slukem	@echo "Copying ${.ALLSRC} to ${.TARGET}"
211.12Slukem	@cp ${.ALLSRC} ${.TARGET}
221.12Slukem
231.12SlukemCLEANFILES+=	sun68k_bbinfo.h
241.12Slukem
251.1Slukem
261.8Sbjh21.ifndef HOSTPROG
271.7Slukem# list of MACHINEs to enable the compat symlink /usr/mdec/installboot
281.10Slukem# XXX: eventually this should be done for all machines.
291.10Slukem# XXX: or /usr/mdec/installboot is replaced with a shell script that
301.10Slukem# XXX: tells the user to use /usr/sbin/installboot instead
311.7Slukem#
321.13SfredetteCOMPATLINKS?=	pmax sun2
331.7Slukemafterinstall:
341.7Slukem.for l in ${COMPATLINKS}
351.7Slukem.if (${MACHINE} == ${l})
361.7Slukem	${INSTALL_SYMLINK} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
371.9Sbjh21	    ${BINDIR}/${PROG} ${DESTDIR}/usr/mdec/${PROG}
381.7Slukem.endif
391.7Slukem.endfor
401.1Slukem
411.1Slukem.include <bsd.prog.mk>
421.1Slukem.endif
43