1 # $NetBSD: Makefile,v 1.10 2002/04/11 07:56:13 lukem Exp $ 2 # 3 4 PROG= installboot 5 SRCS= installboot.c sum.c machines.c \ 6 alpha.c pmax.c sparc64.c vax.c 7 MAN= installboot.8 8 9 WARNS?= 3 10 11 CPPFLAGS+= -I${.CURDIR} 12 .PATH: ${.CURDIR}/arch 13 14 .ifndef HOSTPROG 15 # list of MACHINEs to enable the compat symlink /usr/mdec/installboot 16 # XXX: eventually this should be done for all machines. 17 # XXX: or /usr/mdec/installboot is replaced with a shell script that 18 # XXX: tells the user to use /usr/sbin/installboot instead 19 # 20 COMPATLINKS?= pmax 21 afterinstall: 22 .for l in ${COMPATLINKS} 23 .if (${MACHINE} == ${l}) 24 ${INSTALL_SYMLINK} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 25 ${BINDIR}/${PROG} ${DESTDIR}/usr/mdec/${PROG} 26 .endif 27 .endfor 28 29 .include <bsd.prog.mk> 30 .endif 31