Makefile revision 1.2
1# $NetBSD: Makefile,v 1.2 2000/08/30 23:51:54 jhawk Exp $
2
3PROG=	setnetimage
4MKMAN=	no
5WARNS?=	1
6
7MDSIDIR=${.CURDIR}/../../../../../../usr.sbin/mdsetimage
8
9SRCS=	setnetimage.c exec_elf32.c
10CPPFLAGS+=-I${MDSIDIR}
11LDADD+=	-lz
12DPADD+=	${LIBZ}
13
14.PATH:	${MDSIDIR}
15
16.if !defined(KERNEL)
17kernel:
18	@echo set KERNEL first!
19	@false
20.else
21SNDIR!=	cd ${.CURDIR}/.. ; ${MAKE} print-objdir
22
23smallnet.elf: ${SNDIR}/smallnet
24	cp -p ${.ALLSRC} ${.TARGET}
25
26kernel: smallnet.elf
27	./${PROG} ${KERNEL} ${.ALLSRC}
28	elf2ecoff smallnet.elf smallnet
29.endif
30
31.include <bsd.prog.mk>
32