1# @(#)Makefile 8.1 (Berkeley) 6/6/93 2# $FreeBSD$ 3 4.include <src.opts.mk> 5 6.PATH: ${.CURDIR}/../ktrace 7 8PROG= kdump 9SRCS= kdump_subr.c kdump_subr.h kdump.c subr.c 10CFLAGS+= -I${.CURDIR}/../ktrace -I${.CURDIR} -I${.CURDIR}/../.. -I. 11 12LIBADD= sysdecode 13.if ${MK_CASPER} != "no" 14LIBADD+= casper 15LIBADD+= cap_grp 16LIBADD+= cap_pwd 17CFLAGS+=-DHAVE_LIBCASPER 18.endif 19 20NO_WERROR?= YES 21 22CLEANFILES= kdump_subr.c kdump_subr.h 23 24kdump_subr.h: mksubr 25 sh ${.CURDIR}/mksubr ${DESTDIR}${INCLUDEDIR} | \ 26 sed -n 's/^\([a-z].*)\)$$/void \1;/p' >${.TARGET} 27 28kdump_subr.c: mksubr kdump_subr.h 29 sh ${.CURDIR}/mksubr ${DESTDIR}${INCLUDEDIR} >${.TARGET} 30 31.include <bsd.prog.mk> 32