summaryrefslogtreecommitdiff
blob: 0f52119f4ec083387335a095aac0d5b6d68f9449 (plain)
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
diff -Naur ipp2p-0.7.orig/Makefile ipp2p-0.7/Makefile
--- ipp2p-0.7.orig/Makefile	2004-12-23 03:52:39.000000000 -0800
+++ ipp2p-0.7/Makefile	2004-12-26 11:50:11.064315453 -0800
@@ -15,16 +15,11 @@
 SED = sed
 IPTABLES = /sbin/iptables
 IPTABLES_VERSION = \
-	$(shell iptables --version | sed -e 's/^iptables v//')
+	$(shell $(IPTABLES) --version | sed -e 's/^iptables v//')
 IPTABLES_OPTION = -DIPTABLES_VERSION=\"$(IPTABLES_VERSION)\"
 
 
 KERNEL_SRC = /lib/modules/$(shell uname -r)/build
-IUSER = -I/usr/src/iptables-1.2.9/include
-CC = gcc
-CFLAGS = -O3 -Wall
-
-
 
 all: modules libipt_ipp2p.so
 
@@ -34,11 +29,11 @@
 	$(CC) $(CFLAGS) -I$(KERNEL_SRC)/include -c ipt_ipp2p.c -D__KERNEL__ -DMODULE $(MODVERSIONS)
 
 ipt_ipp2p.ko:
-	$(MAKE) -C $(KERNEL_SRC) SUBDIRS=$(PWD) modules
+	$(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules
 
 
 libipt_ipp2p.so:   libipt_ipp2p.c ipt_ipp2p.h
-		$(CC) $(CFLAGS) $(IPTABLES_OPTION) $(IUSER) -fPIC -c libipt_ipp2p.c
+		$(CC) $(CFLAGS) $(IPTABLES_OPTION) -fPIC -c libipt_ipp2p.c
 		ld -shared -o libipt_ipp2p.so libipt_ipp2p.o
 
 clean: