1#	$NetBSD: Makefile,v 1.15 2005/12/11 12:18:19 christos Exp $
2
3NOMAN=	# defined
4
5.include <bsd.own.mk>
6
7PROG=	installboot
8BINDIR=/usr/mdec
9LIBSA=${.CURDIR}/../../../../lib/libsa
10COPTS+= -Wall -Wstrict-prototypes -Wmissing-prototypes
11CPPFLAGS+= -I${LIBSA} -I. -D__daddr_t=int32_t
12# Need this to work in the miniroot
13LDSTATIC= -static
14
15.if !make(obj) && !make(clean) && !make(cleandir)
16.BEGIN: machine
17.NOPATH: machine
18
19machine::
20	-rm -f $@
21	ln -s ${.CURDIR}/../../include $@
22.endif
23
24CLEANFILES+= machine
25
26.PATH.c: ${LIBSA}
27
28SRCS=	installboot.c byteorder.c loadfile.c loadfile_aout.c loadfile_elf32.c
29
30.include <bsd.prog.mk>
31