mirror of
https://github.com/jrbrtsn/ban2fail
synced 2024-06-16 11:58:01 +00:00
68 lines
1.6 KiB
Plaintext
68 lines
1.6 KiB
Plaintext
baseDir := ~
|
|
libsDir := $(baseDir)/libs
|
|
projectName := ban2fail
|
|
versions := debug release
|
|
cc_exe := ban2fail fsckdns
|
|
#install_dir := /usr/local/bin
|
|
|
|
########################################
|
|
# Set up sources & libraries here. #
|
|
########################################
|
|
|
|
ifeq ($(exe), ban2fail)
|
|
src := \
|
|
addrRpt.c \
|
|
ban2fail.c \
|
|
cfgmap.c \
|
|
cntry.c \
|
|
dynstack.c \
|
|
es.c \
|
|
ez_es.c \
|
|
ez_libc.c \
|
|
ez_libdb.c \
|
|
ez_libpthread.c \
|
|
ez_libz.c \
|
|
iptables.c \
|
|
logType.c \
|
|
logFile.c \
|
|
map.c \
|
|
maxoff.c \
|
|
msgqueue.c \
|
|
obsvTpl.c \
|
|
offEntry.c \
|
|
pdns.c \
|
|
ptrvec.c \
|
|
str.c \
|
|
target.c \
|
|
timestamp.c \
|
|
util.c \
|
|
|
|
libs := z crypto GeoIP pthread db
|
|
endif
|
|
|
|
ifeq ($(exe), fsckdns)
|
|
src := \
|
|
ez_libc.c \
|
|
fsckdns.c \
|
|
str.c \
|
|
util.c \
|
|
|
|
# libs := z crypto GeoIP pthread
|
|
endif
|
|
|
|
########################################
|
|
# Set up custom compile flags here. #
|
|
########################################
|
|
ifeq ($(version),debug)
|
|
local_cppflags := $(local_cppflags) -D_DEBUG -DDEBUG -std=gnu99
|
|
local_codeflags := -g2 -O0 -Wreturn-type -Wformat -Wchar-subscripts -Wparentheses -Wcast-qual -Wmissing-declarations
|
|
local_ldflags := $(local_ldflags) -L$(libsDir)/$(version)
|
|
endif
|
|
|
|
ifeq ($(version),release)
|
|
local_cppflags := $(local_cppflags) -DNDEBUG -std=gnu99
|
|
local_codeflags := -g0 -O3 -Wreturn-type -Wformat -Wchar-subscripts -Wparentheses -Wcast-qual -Wmissing-declarations
|
|
local_ldflags := $(local_ldflags) -L$(libsDir)/$(version)
|
|
endif
|
|
|