Home | History | Annotate | Line # | Download | only in ktruss
Makefile revision 1.17
      1 #	$NetBSD: Makefile,v 1.17 2003/10/21 10:01:22 lukem Exp $
      2 
      3 NOMAN=		# defined
      4 
      5 .include <bsd.own.mk>		# for MKDYNAMICROOT & NETBSDSRCDIR
      6 
      7 PROG=		ktruss
      8 SRCS=		ktrace.c dump.c subr.c ioctl.c misc.c setemul.c
      9 CPPFLAGS+=	-I. -I${NETBSDSRCDIR}/usr.bin/ktrace -I${NETBSDSRCDIR}/sys \
     10 		-I${NETBSDSRCDIR}/usr.bin/kdump -DKTRUSS
     11 CLEANFILES+=	misc.c misc.h ioctl.c
     12 WFORMAT=1
     13 
     14 .if (${MKDYNAMICROOT} == "no")
     15 LDSTATIC?=-static
     16 .endif
     17 
     18 dump.c misc.c: misc.h
     19 misc.h: ${DESTDIR}/usr/include/sys/errno.h \
     20 	       ${DESTDIR}/usr/include/sys/signal.h
     21 	${_MKTARGET_CREATE}
     22 	CPP=${CPP:Q} CPPFLAGS=${CPPFLAGS:Q} \
     23 	    ${HOST_SH} ${.CURDIR}/makeerrnos.sh \
     24 	    ${DESTDIR}/usr/include/sys/errno.h \
     25 	    ${DESTDIR}/usr/include/sys/signal.h misc
     26 
     27 # XXX It looks like .NOTPARALLEL doesn't work.
     28 .NOTPARALLEL:
     29 
     30 .include "${NETBSDSRCDIR}/usr.bin/kdump/Makefile.ioctl-c"
     31 .include <bsd.prog.mk>
     32 
     33 .PATH: ${NETBSDSRCDIR}/usr.bin/ktrace ${NETBSDSRCDIR}/usr.bin/kdump
     34