-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathMakefile
executable file
·41 lines (34 loc) · 1.36 KB
/
Makefile
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
34
35
36
37
38
39
40
41
g++FLAGS = -g -fpermissive -std=c++11 -Wfatal-errors
all: lpfw testprocess
lpfw: sha256.o base64.o conntrack.o testmain.o \
argtable2.o arg_end.o arg_file.o arg_int.o arg_lit.o arg_rem.o arg_str.o \
lpfw.cpp lpfw.h common/defines.h common/includes.h
g++ $(g++FLAGS) sha256.o base64.o conntrack.o testmain.o \
argtable2.o arg_end.o arg_file.o arg_int.o arg_lit.o arg_rem.o arg_str.o \
lpfw.cpp -lnetfilter_queue -lnetfilter_conntrack -lpthread -lcap -o lpfw
sha256.o : sha256/sha256.c sha256/sha256.h sha256/u64.h
g++ $(g++FLAGS) -c sha256/sha256.c
base64.o : base64.cpp base64.h
g++ $(g++FLAGS) -c base64.cpp
conntrack.o : conntrack.c conntrack.h
g++ $(g++FLAGS) -c conntrack.c
argtable2.o : argtable/argtable2.c
g++ $(g++FLAGS) -c argtable/argtable2.c
arg_end.o : argtable/arg_end.c
g++ $(g++FLAGS) -c argtable/arg_end.c
arg_file.o : argtable/arg_file.c
g++ $(g++FLAGS) -c argtable/arg_file.c
arg_int.o : argtable/arg_int.c
g++ $(g++FLAGS) -c argtable/arg_int.c
arg_lit.o : argtable/arg_lit.c
g++ $(g++FLAGS) -c argtable/arg_lit.c
arg_rem.o : argtable/arg_rem.c
g++ $(g++FLAGS) -c argtable/arg_rem.c
arg_str.o : argtable/arg_str.c
g++ $(g++FLAGS) -c argtable/arg_str.c
testmain.o : testmain.cpp
g++ $(g++FLAGS) -c testmain.cpp
testprocess: testprocess.cpp
g++ -g -std=c++11 testprocess.cpp -lpthread -o testprocess
clean :
rm -f testprocess *.o lpfw