-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 766 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 766 Bytes
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
# To use the old-soon-to-be-deprecated libipq interface
# uncomment the following line and comment the NFQUEUE one,
# then comment the gcc line with netfilter_queue and
# uncomment the following one.
#QUEUE_LIB=LIBIPQ
QUEUE_LIB=NFQUEUE
CFLAGS=-Wall -O3 -march=i586 -mtune=i686 -fomit-frame-pointer -ffast-math \
-D_GNU_SOURCE -D$(QUEUE_LIB) -L/usr/include/libipq
CC=gcc
all: moblock
moblock: MoBlock.o rbt.o
gcc -o $@ MoBlock.o rbt.o -lnetfilter_queue -lnfnetlink
#gcc -o $@ MoBlock.o rbt.o -lipq
strip $@
moblock-static: MoBlock.o rbt.o
gcc -static -o $@ MoBlock.o rbt.o -lnetfilter_queue -lnfnetlink
#gcc -static -o $@ MoBlock.o rbt.o -lipq
strip $@
clean:
rm -f *.o *~ *# moblock
install:
install -m 755 moblock $(DESTDIR)/usr/bin
.PHONY: clean