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
6PROG=	installboot
7SRCS=	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
10MAN=	installboot.8
11
12WARNS?=	3
13
14UFSSRC=		${_SRC_TOP_}/sys/ufs
15CPPFLAGS+=	-I${.CURDIR} -I.
16.PATH:		${.CURDIR}/arch ${UFSSRC}/ffs
17
18
19sun68k.c:	sun68k_bbinfo.h
20
21sun68k_bbinfo.h: ${_SRC_TOP_}/sys/arch/sun68k/stand/libsa/bbinfo.h
22	@echo "Copying ${.ALLSRC} to ${.TARGET}"
23	@cp ${.ALLSRC} ${.TARGET}
24
25CLEANFILES+=	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#
34COMPATLINKS?=	pmax sun2
35afterinstall:
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