dc33169c5b
ioctl names. This makes sure that each program is built with its own copy even if object directories are not used. This avoids build failures when two or more make jobs are used in parallel.
31 lines
861 B
Makefile
31 lines
861 B
Makefile
# $NetBSD: Makefile,v 1.18 2004/07/10 12:12:49 tron Exp $
|
|
|
|
NOMAN= # defined
|
|
|
|
.include <bsd.own.mk> # for MKDYNAMICROOT & NETBSDSRCDIR
|
|
|
|
PROG= ktruss
|
|
SRCS= ktrace.c dump.c subr.c misc.c setemul.c
|
|
CPPFLAGS+= -I. -I${NETBSDSRCDIR}/usr.bin/ktrace -I${NETBSDSRCDIR}/sys \
|
|
-I${NETBSDSRCDIR}/usr.bin/kdump -DKTRUSS
|
|
CLEANFILES+= misc.c misc.h
|
|
WFORMAT=1
|
|
|
|
.if (${MKDYNAMICROOT} == "no")
|
|
LDSTATIC?=-static
|
|
.endif
|
|
|
|
dump.c misc.c: misc.h
|
|
misc.h: ${DESTDIR}/usr/include/sys/errno.h \
|
|
${DESTDIR}/usr/include/sys/signal.h
|
|
${_MKTARGET_CREATE}
|
|
CPP=${CPP:Q} CPPFLAGS=${CPPFLAGS:Q} \
|
|
${HOST_SH} ${.CURDIR}/makeerrnos.sh \
|
|
${DESTDIR}/usr/include/sys/errno.h \
|
|
${DESTDIR}/usr/include/sys/signal.h misc
|
|
|
|
.include "${NETBSDSRCDIR}/usr.bin/kdump/Makefile.ioctl-c"
|
|
.include <bsd.prog.mk>
|
|
|
|
.PATH: ${NETBSDSRCDIR}/usr.bin/ktrace ${NETBSDSRCDIR}/usr.bin/kdump
|