Makefile revision 1.9
1# $NetBSD: Makefile,v 1.9 2002/04/06 15:27:55 bjh21 Exp $ 2# 3 4PROG= installboot 5SRCS= installboot.c sum.c machines.c 6MAN= installboot.8 7 8WARNS?= 3 9 10CPPFLAGS+= -I${.CURDIR} 11.PATH: ${.CURDIR}/arch 12 13# list of MACHINEs to enable MD back-ends for 14# 15IB_MACHINES?= alpha pmax sparc64 vax 16 17SRCS+= ${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# 24COMPATLINKS?= pmax 25afterinstall: 26.for l in ${COMPATLINKS} 27.if (${MACHINE} == ${l}) 28 ${INSTALL_SYMLINK} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 29 ${BINDIR}/${PROG} ${DESTDIR}/usr/mdec/${PROG} 30.endif 31.endfor 32 33 34regenmachines: 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