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