1 # $NetBSD: Makefile,v 1.12 2002/04/22 17:17:35 lukem Exp $ 2 # 3 4 PROG= installboot 5 SRCS= installboot.c sum.c machines.c fstypes.c \ 6 ffs.c ffs_bswap.c \ 7 alpha.c pmax.c sparc64.c sun68k.c vax.c 8 MAN= installboot.8 9 10 WARNS?= 3 11 12 UFSSRC= ${_SRC_TOP_}/sys/ufs 13 CPPFLAGS+= -I${.CURDIR} -I. 14 .PATH: ${.CURDIR}/arch ${UFSSRC}/ffs 15 16 17 sun68k.c: sun68k_bbinfo.h 18 19 sun68k_bbinfo.h: ${_SRC_TOP_}/sys/arch/sun68k/stand/libsa/bbinfo.h 20 @echo "Copying ${.ALLSRC} to ${.TARGET}" 21 @cp ${.ALLSRC} ${.TARGET} 22 23 CLEANFILES+= sun68k_bbinfo.h 24 25 26 .ifndef HOSTPROG 27 # list of MACHINEs to enable the compat symlink /usr/mdec/installboot 28 # XXX: eventually this should be done for all machines. 29 # XXX: or /usr/mdec/installboot is replaced with a shell script that 30 # XXX: tells the user to use /usr/sbin/installboot instead 31 # 32 COMPATLINKS?= pmax 33 afterinstall: 34 .for l in ${COMPATLINKS} 35 .if (${MACHINE} == ${l}) 36 ${INSTALL_SYMLINK} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 37 ${BINDIR}/${PROG} ${DESTDIR}/usr/mdec/${PROG} 38 .endif 39 .endfor 40 41 .include <bsd.prog.mk> 42 .endif 43