xref: /freebsd/usr.bin/kdump/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1c6063d0dSWarner Losh.include <src.opts.mk>
268cfe726SPawel Jakub Dawidek
3a35f04fbSWarner Losh.PATH: ${SRCTOP}/usr.bin/ktrace
44c2fb883SMark Murray
59b50d902SRodney W. GrimesPROG=		kdump
69289f547SJohn BaldwinSRCS=		kdump.c subr.c
7a35f04fbSWarner LoshCFLAGS+=	-I${SRCTOP}/usr.bin/ktrace
809b904c8SMark Murray
9d6fb4894SJohn BaldwinLIBADD=		sysdecode
104622f0e1SPawel Jakub Dawidek.if ${MK_CASPER} != "no"
11c501d73cSMariusz ZaborskiLIBADD+=	casper
12c501d73cSMariusz ZaborskiLIBADD+=	cap_grp
13c501d73cSMariusz ZaborskiLIBADD+=	cap_pwd
142560d181SMariusz ZaborskiCFLAGS+=-DWITH_CASPER
154622f0e1SPawel Jakub Dawidek.endif
164622f0e1SPawel Jakub Dawidek
17*8a0f6d8cSDmitry Chagin.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
18*8a0f6d8cSDmitry Chagin	    ${MACHINE_CPUARCH} == "i386"
19*8a0f6d8cSDmitry ChaginSRCS+=		linux.c
20*8a0f6d8cSDmitry Chagin.endif
21*8a0f6d8cSDmitry Chagin
22*8a0f6d8cSDmitry ChaginCFLAGS.linux.c+= -I${SRCTOP}/sys
23*8a0f6d8cSDmitry Chagin
249b50d902SRodney W. Grimes.include <bsd.prog.mk>
25