Home | History | Annotate | Line # | Download | only in installboot
Makefile revision 1.14
      1 #	$NetBSD: Makefile,v 1.14 2002/04/22 23:23:05 bjh21 Exp $
      2 #
      3 
      4 .include <bsd.own.mk>
      5 
      6 PROG=	installboot
      7 SRCS=	installboot.c sum.c machines.c fstypes.c \
      8 	ffs.c ffs_bswap.c \
      9 	alpha.c pmax.c sparc64.c sun68k.c vax.c
     10 MAN=	installboot.8
     11 
     12 WARNS?=	3
     13 
     14 UFSSRC=		${_SRC_TOP_}/sys/ufs
     15 CPPFLAGS+=	-I${.CURDIR} -I.
     16 .PATH:		${.CURDIR}/arch ${UFSSRC}/ffs
     17 
     18 
     19 sun68k.c:	sun68k_bbinfo.h
     20 
     21 sun68k_bbinfo.h: ${_SRC_TOP_}/sys/arch/sun68k/stand/libsa/bbinfo.h
     22 	@echo "Copying ${.ALLSRC} to ${.TARGET}"
     23 	@cp ${.ALLSRC} ${.TARGET}
     24 
     25 CLEANFILES+=	sun68k_bbinfo.h
     26 
     27 
     28 .ifndef HOSTPROG
     29 # list of MACHINEs to enable the compat symlink /usr/mdec/installboot
     30 # XXX: eventually this should be done for all machines.
     31 # XXX: or /usr/mdec/installboot is replaced with a shell script that
     32 # XXX: tells the user to use /usr/sbin/installboot instead
     33 #
     34 COMPATLINKS?=	pmax sun2
     35 afterinstall:
     36 .for l in ${COMPATLINKS}
     37 .if (${MACHINE} == ${l})
     38 	${INSTALL_SYMLINK} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
     39 	    ${BINDIR}/${PROG} ${DESTDIR}/usr/mdec/${PROG}
     40 .endif
     41 .endfor
     42 
     43 .include <bsd.prog.mk>
     44 .endif
     45