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+= capsicum 15CFLAGS+=-DHAVE_LIBCAPSICUM 16.endif 17 18NO_WERROR?= YES 19 20CLEANFILES= kdump_subr.c kdump_subr.h 21 22kdump_subr.h: mksubr 23 sh ${.CURDIR}/mksubr ${DESTDIR}${INCLUDEDIR} | \ 24 sed -n 's/^\([a-z].*)\)$$/void \1;/p' >${.TARGET} 25 26kdump_subr.c: mksubr kdump_subr.h 27 sh ${.CURDIR}/mksubr ${DESTDIR}${INCLUDEDIR} >${.TARGET} 28 29.include <bsd.prog.mk> 30