blob: 03edebcfa53e021adcd6e0ee920392dd72a0e7ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
LINKOPTS=-ldl -lnfnetlink -lctnetlink -rdynamic
KERNELDIR=/lib/modules/$(shell uname -r)/build/include/
CFLAGS=-I${KERNELDIR} -Iinclude/ -g
default:
${CC} -c ${CFLAGS} src/conntrack.c -o src/conntrack.o
${CC} -c ${CFLAGS} src/libct.c -o src/libct.o
${CC} ${LINKOPTS} src/conntrack.o src/libct.o -o conntrack
${MAKE} -C extensions/
clean:
rm -rf src/*.o conntrack
${MAKE} clean -C extensions/
|