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