2002-04-05 03:01:38 +04:00
|
|
|
# $NetBSD: Makefile,v 1.7 2002/04/04 23:01:38 lukem Exp $
|
2002-04-03 09:21:16 +04:00
|
|
|
#
|
|
|
|
|
|
|
|
PROG= installboot
|
|
|
|
SRCS= installboot.c sum.c machines.c
|
|
|
|
MAN= installboot.8
|
|
|
|
|
|
|
|
WARNS?= 3
|
|
|
|
|
2002-04-03 13:09:01 +04:00
|
|
|
CPPFLAGS+= -I${.CURDIR}
|
|
|
|
.PATH: ${.CURDIR}/arch
|
|
|
|
|
2002-04-05 03:01:38 +04:00
|
|
|
# list of MACHINEs to enable MD back-ends for
|
2002-04-03 09:21:16 +04:00
|
|
|
#
|
2002-04-04 17:45:25 +04:00
|
|
|
IB_MACHINES?= alpha pmax sparc64 vax
|
2002-04-03 09:21:16 +04:00
|
|
|
|
|
|
|
SRCS+= ${IB_MACHINES:S/$/.c/}
|
|
|
|
|
|
|
|
|
2002-04-05 03:01:38 +04:00
|
|
|
# list of MACHINEs to enable the compat symlink /usr/mdec/installboot
|
|
|
|
# XXX: eventually this should be done for all machines in ${IB_MACHINES}
|
|
|
|
#
|
|
|
|
COMPATLINKS?= pmax
|
|
|
|
afterinstall:
|
|
|
|
.for l in ${COMPATLINKS}
|
|
|
|
.if (${MACHINE} == ${l})
|
|
|
|
${INSTALL_SYMLINK} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
|
|
|
${BINDIR}/${PROG} /usr/mdec/${PROG}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
|
2002-04-03 09:58:44 +04:00
|
|
|
regenmachines: mkmachines.awk Makefile
|
|
|
|
-mv -f ${.CURDIR}/machines.c ${.CURDIR}/machines.c.bak
|
2002-04-03 09:21:16 +04:00
|
|
|
awk -f ${.CURDIR}/mkmachines.awk ${IB_MACHINES} > ${.TARGET}
|
2002-04-03 09:58:44 +04:00
|
|
|
mv ${.TARGET} ${.CURDIR}/machines.c
|
2002-04-03 09:21:16 +04:00
|
|
|
|
|
|
|
|
|
|
|
.ifndef HOSTPROG
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.endif
|