From: <li...@us...> - 2004-02-10 19:36:23
|
Update of /cvsroot/iptables-p2p/iptables-p2p In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31968 Modified Files: Makefile Log Message: detection of 2.6 kernels in default target Index: Makefile =================================================================== RCS file: /cvsroot/iptables-p2p/iptables-p2p/Makefile,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Makefile 1 Jan 2004 20:54:24 -0000 1.4 +++ Makefile 10 Feb 2004 19:32:47 -0000 1.5 @@ -1,7 +1,15 @@ # $Id$ ############################################################################### -all: linux-2.4 +KV = $(shell echo `uname -r` | cut -d. -f1-2) + +ifeq ($(KV), 2.6) + TARGET=linux-2.6 +else + TARGET=linux-2.4 +endif + +all: $(TARGET) linux-2.4: $(MAKE) -C iptables @@ -11,6 +19,8 @@ $(MAKE) -C iptables $(MAKE) -C kernel linux-2.6 +.PHONY: clean + clean: $(MAKE) -C iptables $@ $(MAKE) -C kernel $@ |