2022-10-11 21:27:51 +02:00
|
|
|
BLOCKLIST_DIR=${SRCTOP}/contrib/blocklist
|
2016-06-02 21:06:04 +02:00
|
|
|
|
2022-10-11 21:27:51 +02:00
|
|
|
.PATH: ${BLOCKLIST_DIR}/lib ${BLOCKLIST_DIR}/include
|
2016-06-02 21:06:04 +02:00
|
|
|
|
2023-10-10 16:41:52 +02:00
|
|
|
PACKAGE= blocklist
|
2016-06-02 21:06:04 +02:00
|
|
|
LIB= blacklist
|
|
|
|
SHLIB_MAJOR= 0
|
|
|
|
|
|
|
|
LIBADD+= pthread
|
|
|
|
|
|
|
|
CFLAGS.clang+=-Wno-thread-safety-analysis
|
|
|
|
|
2022-10-11 21:27:51 +02:00
|
|
|
CFLAGS+=-I${BLOCKLIST_DIR}/include -I${BLOCKLIST_DIR}/port \
|
2016-06-02 21:06:04 +02:00
|
|
|
-D_REENTRANT -DHAVE_CONFIG_H -DHAVE_DB_H -DHAVE_LIBUTIL_H \
|
|
|
|
-DHAVE_CLOCK_GETTIME -DHAVE_FGETLN -DHAVE_GETPROGNAME \
|
|
|
|
-DHAVE_STRLCAT -DHAVE_STRLCPY -DHAVE_STRUCT_SOCKADDR_SA_LEN
|
|
|
|
|
|
|
|
SRCS= bl.c blacklist.c
|
|
|
|
INCS= blacklist.h
|
|
|
|
MAN= libblacklist.3
|
|
|
|
|
|
|
|
MLINKS= libblacklist.3 blacklist_open.3 \
|
|
|
|
libblacklist.3 blacklist_close.3 \
|
|
|
|
libblacklist.3 blacklist.3 \
|
|
|
|
libblacklist.3 blacklist_r.3 \
|
|
|
|
libblacklist.3 blacklist_sa.3 \
|
|
|
|
libblacklist.3 blacklist_sa_r.3
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|