Makefile revision 1.7
1# $NetBSD: Makefile,v 1.7 2002/04/04 23:01:38 lukem 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# list of MACHINEs to enable the compat symlink /usr/mdec/installboot 21# XXX: eventually this should be done for all machines in ${IB_MACHINES} 22# 23COMPATLINKS?= pmax 24afterinstall: 25.for l in ${COMPATLINKS} 26.if (${MACHINE} == ${l}) 27 ${INSTALL_SYMLINK} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 28 ${BINDIR}/${PROG} /usr/mdec/${PROG} 29.endif 30.endfor 31 32 33regenmachines: mkmachines.awk Makefile 34 -mv -f ${.CURDIR}/machines.c ${.CURDIR}/machines.c.bak 35 awk -f ${.CURDIR}/mkmachines.awk ${IB_MACHINES} > ${.TARGET} 36 mv ${.TARGET} ${.CURDIR}/machines.c 37 38 39.ifndef HOSTPROG 40.include <bsd.prog.mk> 41.endif 42