summaryrefslogtreecommitdiffstats
path: root/firewall/iptables/Makefile
blob: 1491abca0a4a3ff67315741c4d12188494462ab9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
topdir = ../..

INTERFACEVER=1.0
INTERFACEAPIVER=1

objs =  efw_iptables.o ../../eurephia_log.o ../../eurephiafw_helpers.o

interface = efw_iptables.so

include ${topdir}/Makefile.global

CFLAGS += -DINTERFACEVER="\"${INTERFACEVER}\"" -DINTERFACEAPIVER=${INTERFACEAPIVER}
LDFLAGS += -lpthread -lrt -lgcc_s

ifeq (${DRIVERMW},enabled)
	objs += ${topdir}/memwatch.o
	CFLAGS += -DMEMWATCH
endif


all : ${interface} 

${interface} : ${objs}
	${CC} -fPIC -g -shared ${LDFLAGS} -o $@ $^


install : all
	mkdir -p -m 755 ${FW_INTERFACE_DIR}
	install -m 755 ${interface} ${FW_INTERFACE_DIR}/

clean : 
	rm -f ${interface} ${objs} *~ memwatch.log