aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/savecore/Makefile
blob: bcc59a01b79504d443d3c1e20406ac3203225565 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# $FreeBSD$

PACKAGE=runtime
CONFS=	minfree
VAR_CRASH=	/var/crash
VAR_CRASH_MODE=	0750
CONFSDIR=	VAR_CRASH
PROG=	savecore
LIBADD=	xo z zstd
MAN=	savecore.8

CFLAGS+=	-I${SRCTOP}/sys/contrib/zstd/lib

.include <src.opts.mk>

.if ${MK_DYNAMICROOT} == "no"
.warning ${PROG} built without libcasper support
.elif ${MK_CASPER} != "no" && !defined(RESCUE)
CFLAGS+=	-DWITH_CASPER
LIBADD+=	casper cap_fileargs cap_syslog
.endif

.include <bsd.prog.mk>