diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..03edebc --- /dev/null +++ b/Makefile @@ -0,0 +1,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/ + |