xref: /freebsd/usr.sbin/blacklistctl/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1*5f4c09ddSEd MasteBLOCKLIST_DIR=${SRCTOP}/contrib/blocklist
2*5f4c09ddSEd Maste.PATH: ${BLOCKLIST_DIR}/bin ${BLOCKLIST_DIR}/port
395856e14SKurt Lidl
40983e80aSEmmanuel VadotPACKAGE=	blocklist
50983e80aSEmmanuel Vadot
695856e14SKurt LidlPROG=	blacklistctl
795856e14SKurt LidlSRCS=	blacklistctl.c conf.c state.c support.c internal.c \
895856e14SKurt Lidl	sockaddr_snprintf.c pidfile.c strtoi.c popenve.c
995856e14SKurt LidlMAN=	blacklistctl.8
1095856e14SKurt Lidl
1195856e14SKurt LidlLDFLAGS+=-L${LIBBLACKLISTDIR}
1295856e14SKurt LidlLIBADD+= blacklist util
1395856e14SKurt Lidl
14*5f4c09ddSEd MasteCFLAGS+=-I${BLOCKLIST_DIR}/include -I${BLOCKLIST_DIR}/port \
1595856e14SKurt Lidl	-D_PATH_BLCONTROL=\"/usr/libexec/blacklistd-helper\" \
1695856e14SKurt Lidl	-DHAVE_CONFIG_H -DHAVE_DB_H -DHAVE_LIBUTIL_H \
1795856e14SKurt Lidl	-DHAVE_CLOCK_GETTIME -DHAVE_FGETLN -DHAVE_FPARSELN \
1895856e14SKurt Lidl	-DHAVE_GETPROGNAME -DHAVE_STRLCAT -DHAVE_STRLCPY \
1995856e14SKurt Lidl	-DHAVE_STRUCT_SOCKADDR_SA_LEN
2095856e14SKurt Lidl# CFLAGS+= -D_REENTRANT
2195856e14SKurt Lidl
2295856e14SKurt Lidl.include <bsd.prog.mk>
23