summaryrefslogtreecommitdiffstats
path: root/kernel/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/Makefile.in')
-rw-r--r--kernel/Makefile.in22
1 files changed, 18 insertions, 4 deletions
diff --git a/kernel/Makefile.in b/kernel/Makefile.in
index 31f2f98..ee5a617 100644
--- a/kernel/Makefile.in
+++ b/kernel/Makefile.in
@@ -27,19 +27,33 @@ distdir = ../$(PACKAGE)-$(VERSION)
CFLAGS=-Wall -g -O2
KERNEL_CFLAGS= -I$(KERNELDIR)/include -DLINUX -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -DPACKAGE_BUGREPORT="\"@PACKAGE_BUGREPORT@\""
+include $(KERNELDIR)/.config
+
all: Makefile ipt_CRYPT.o ipt_DECRYPT.o seppl.o
Makefile: Makefile.in
cd .. && ./config.status kernel/Makefile
+
+ifdef CONFIG_MODVERSIONS
+seppl.o ipt_CRYPT.o ipt_DECRYPT.o: seppl.ver
+endif
+
+ifndef GENKSYMS
+GENKSYMS=genksyms
+endif
+
ipt_CRYPT.o: ipt_CRYPT.c
- $(CC) $(CFLAGS) -c $^ -o $@ $(KERNEL_CFLAGS)
+ $(CC) $(CFLAGS) -c $< -o $@ $(KERNEL_CFLAGS)
ipt_DECRYPT.o: ipt_DECRYPT.c
- $(CC) $(CFLAGS) -c $^ -o $@ $(KERNEL_CFLAGS)
+ $(CC) $(CFLAGS) -c $< -o $@ $(KERNEL_CFLAGS)
seppl.o: seppl.c
- $(CC) $(CFLAGS) -c $^ -o $@ $(KERNEL_CFLAGS)
+ $(CC) $(CFLAGS) -c $< -o $@ $(KERNEL_CFLAGS)
+
+seppl.ver: seppl.c
+ $(CC) $(CFLAGS) $(KERNEL_CFLAGS) -E -D__GENKSYMS__ $^ | $(GENKSYMS) -k `uname -r`> $@
install:
mkdir -p $(SEPPL_MODDIR)
@@ -56,6 +70,6 @@ maintainer-clean: clean
rm -f Makefile
clean:
- rm -f *.o
+ rm -f *.o *.var
.PHONY: all clean maintainer-clean mostlyclean distclean distdir install