1# $NetBSD: Makefile,v 1.4 2001/12/12 01:49:49 tv Exp $ 2 3PROG= setnetimage 4NOMAN= # defined 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 21.include <bsd.own.mk> 22 23SNDIR!= cd ${.CURDIR}/.. && ${PRINTOBJDIR} 24 25smallnet.elf: ${SNDIR}/smallnet 26 cp -p ${.ALLSRC} ${.TARGET} 27 28kernel: smallnet.elf 29 ./${PROG} ${KERNEL} ${.ALLSRC} 30 ${ELF2ECOFF} smallnet.elf smallnet 31.endif 32 33.include <bsd.prog.mk> 34