ban2fail/Jmakefile

52 lines
1.3 KiB
Plaintext
Raw Normal View History

2019-11-23 05:16:33 +00:00
baseDir := ~
libsDir := $(baseDir)/libs
projectName := ban2fail
versions := debug release
cc_exe := ban2fail
2019-11-29 14:00:39 +00:00
#install_dir := /usr/local/bin
2019-11-23 05:16:33 +00:00
########################################
# Set up sources & libraries here. #
########################################
ifeq ($(exe), ban2fail)
src := \
ban2fail.c \
cfgmap.c \
cntry.c \
2019-11-29 22:23:16 +00:00
es.c \
ez_es.c \
ez_libanl.c \
2019-11-29 14:00:39 +00:00
ez_libc.c \
ez_libz.c \
2019-11-23 05:16:33 +00:00
iptables.c \
logType.c \
logEntry.c \
logFile.c \
map.c \
maxoff.c \
2019-11-29 22:23:16 +00:00
msgqueue.c \
2019-11-23 05:16:33 +00:00
ptrvec.c \
str.c \
util.c \
2019-11-29 22:23:16 +00:00
libs := anl z crypto GeoIP pthread
2019-11-23 05:16:33 +00:00
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