Home | History | Annotate | Line # | Download | only in setnetimage
Makefile revision 1.3.2.2
      1  1.3.2.2  nathanw # $NetBSD: Makefile,v 1.3.2.2 2002/01/08 00:27:08 nathanw Exp $
      2  1.3.2.2  nathanw 
      3  1.3.2.2  nathanw PROG=	setnetimage
      4  1.3.2.2  nathanw NOMAN=	# defined
      5  1.3.2.2  nathanw WARNS?=	1
      6  1.3.2.2  nathanw 
      7  1.3.2.2  nathanw MDSIDIR=${.CURDIR}/../../../../../../usr.sbin/mdsetimage
      8  1.3.2.2  nathanw 
      9  1.3.2.2  nathanw SRCS=	setnetimage.c exec_elf32.c
     10  1.3.2.2  nathanw CPPFLAGS+=-I${MDSIDIR}
     11  1.3.2.2  nathanw LDADD+=	-lz
     12  1.3.2.2  nathanw DPADD+=	${LIBZ}
     13  1.3.2.2  nathanw 
     14  1.3.2.2  nathanw .PATH:	${MDSIDIR}
     15  1.3.2.2  nathanw 
     16  1.3.2.2  nathanw .if !defined(KERNEL)
     17  1.3.2.2  nathanw kernel:
     18  1.3.2.2  nathanw 	@echo set KERNEL first!
     19  1.3.2.2  nathanw 	@false
     20  1.3.2.2  nathanw .else
     21  1.3.2.2  nathanw .include <bsd.own.mk>
     22  1.3.2.2  nathanw 
     23  1.3.2.2  nathanw SNDIR!=	cd ${.CURDIR}/.. && ${PRINTOBJDIR}
     24  1.3.2.2  nathanw 
     25  1.3.2.2  nathanw smallnet.elf: ${SNDIR}/smallnet
     26  1.3.2.2  nathanw 	cp -p ${.ALLSRC} ${.TARGET}
     27  1.3.2.2  nathanw 
     28  1.3.2.2  nathanw kernel: smallnet.elf
     29  1.3.2.2  nathanw 	./${PROG} ${KERNEL} ${.ALLSRC}
     30  1.3.2.2  nathanw 	elf2ecoff smallnet.elf smallnet
     31  1.3.2.2  nathanw .endif
     32  1.3.2.2  nathanw 
     33  1.3.2.2  nathanw .include <bsd.prog.mk>
     34