1 # $NetBSD: Makefile,v 1.8 2002/04/06 13:59:12 bjh21 Exp $ 2 # 3 4 PROG= installboot 5 SRCS= installboot.c sum.c machines.c 6 MAN= installboot.8 7 8 WARNS?= 3 9 10 CPPFLAGS+= -I${.CURDIR} 11 .PATH: ${.CURDIR}/arch 12 13 # list of MACHINEs to enable MD back-ends for 14 # 15 IB_MACHINES?= alpha pmax sparc64 vax 16 17 SRCS+= ${IB_MACHINES:S/$/.c/} 18 19 20 .ifndef HOSTPROG 21 # list of MACHINEs to enable the compat symlink /usr/mdec/installboot 22 # XXX: eventually this should be done for all machines in ${IB_MACHINES} 23 # 24 COMPATLINKS?= pmax 25 afterinstall: 26 .for l in ${COMPATLINKS} 27 .if (${MACHINE} == ${l}) 28 ${INSTALL_SYMLINK} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 29 ${BINDIR}/${PROG} /usr/mdec/${PROG} 30 .endif 31 .endfor 32 33 34 regenmachines: mkmachines.awk Makefile 35 -mv -f ${.CURDIR}/machines.c ${.CURDIR}/machines.c.bak 36 awk -f ${.CURDIR}/mkmachines.awk ${IB_MACHINES} > ${.TARGET} 37 mv ${.TARGET} ${.CURDIR}/machines.c 38 39 40 .include <bsd.prog.mk> 41 .endif 42