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