Home | History | Annotate | Line # | Download | only in installboot
Makefile revision 1.7
      1 #	$NetBSD: Makefile,v 1.7 2002/04/04 23:01:38 lukem 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 # 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 #
     23 COMPATLINKS?=	pmax
     24 afterinstall:
     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 
     33 regenmachines: 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