From: Filipe A. <li...@us...> - 2004-06-03 22:49:29
|
Update of /cvsroot/iptables-p2p/iptables-p2p/kernel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14392 Modified Files: Makefile Added Files: Makefile-2.4 Log Message: Split of makefiles and fix of several build related bugs Index: Makefile =================================================================== RCS file: /cvsroot/iptables-p2p/iptables-p2p/kernel/Makefile,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Makefile 7 Mar 2004 18:05:57 -0000 1.5 +++ Makefile 3 Jun 2004 22:49:06 -0000 1.6 @@ -20,9 +20,6 @@ CC = \ gcc -CFLAGS = \ - -O3 - KERNELDIR = \ /lib/modules/$(shell uname -r)/build @@ -66,14 +63,9 @@ $(RM) ipt_p2p.mod.* -############################################################################### -# Linux 2.4 Stuff -############################################################################### - -linux-2.4: $(TARGET_24) +linux-2.4: + $(MAKE) -f Makefile-2.4 linux-2.4 -$(TARGET_24): $(OBJECTS) - $(LD) -r -o $@ $(OBJECTS) ############################################################################### # Linux 2.6 Stuff --- NEW FILE: Makefile-2.4 --- # $Id: Makefile-2.4,v 1.1 2004/06/03 22:49:06 liquidk Exp $ ############################################################################### SOURCES = \ main.c \ match_bittorrent.c \ match_dc.c \ match_edonkey.c \ match_http.c \ utils.c OBJECTS = \ $(SOURCES:%.c=%.o) TARGET = ipt_p2p.o ############################################################################### CC = \ gcc KERNELDIR = \ /lib/modules/$(shell uname -r)/build KERNELINC = \ $(KERNELDIR)/include COMMON = \ $(PWD)/../common INCLUDES += \ -I$(COMMON) \ -I$(KERNELINC) \ -I$(KERNELINC)/asm/mach-default CPPFLAGS += \ -D__KERNEL__ -DMODULE $(INCLUDES) all: linux-2.4 linux-2.4: $(TARGET) $(TARGET): $(OBJECTS) $(LD) -r -o $@ $(OBJECTS) |