diff --git a/src/Makefile b/src/Makefile index 2904714..7c6b0b6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -4,11 +4,9 @@ KERNEL_DIR := ${MODULES_DIR}/build obj-m += xt_ts3init.o xt_ts3init-objs += ts3init_module.o ts3init_match.o ts3init_cookie.o ts3init_target.o siphash24.o -so = libxt_ts3init_get_cookie.so libxt_ts3init_get_puzzle.so libxt_ts3init_reset.so all: $(MAKE) -C ${KERNEL_DIR} M=$$PWD; - $(MAKE) -f Makefile.xtables $(so) modules: $(MAKE) -C ${KERNEL_DIR} M=$$PWD $@; @@ -18,5 +16,3 @@ modules_install: clean: $(MAKE) -C ${KERNEL_DIR} M=$$PWD $@; - rm $(so) - diff --git a/src/Makefile.xtables b/src/Makefile.xtables index d46caf2..6c3f58b 100644 --- a/src/Makefile.xtables +++ b/src/Makefile.xtables @@ -1,5 +1,14 @@ CFLAGS = -O2 -Wall +LIBS = libxt_ts3init_get_cookie.so libxt_ts3init_get_puzzle.so libxt_ts3init_reset.so +all: $(LIBS) + +clean: + rm -f $(LIBS) + +install: + cp $(LIBS) /lib/xtables/ + lib%.so: lib%.o gcc -shared -fPIC -o $@ $^;