patch-1.3.19 linux/net/ipv4/Makefile

Next file: linux/net/ipv4/af_inet.c
Previous file: linux/net/ethernet/eth.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.18/linux/net/ipv4/Makefile linux/net/ipv4/Makefile
@@ -7,58 +7,23 @@
 #
 # Note 2! The CFLAGS definition is now in the main makefile...
 
-.c.o:
-	$(CC) $(CFLAGS) -c $<
-.s.o:
-	$(AS) -o $*.o $<
-
+O_TARGET := ipv4.o
 IPV4_OBJS	:= utils.o route.o proc.o timer.o protocol.o packet.o \
 		   arp.o ip.o raw.o icmp.o tcp.o udp.o devinet.o af_inet.o \
 		   igmp.o ip_fw.o ipip.o
 
-MODULES	:=
-
 ifdef CONFIG_INET_RARP
 IPV4_OBJS := $(IPV4_OBJS) rarp.o
 else
-MODULES := $(MODULES) rarp.o
+M_OBJS := rarp.o
+MOD_LIST_NAME := IPV4_MODULES
 endif
 
 ifdef CONFIG_INET
-
-ipv4.o:		$(IPV4_OBJS)
-		$(LD) -r -o ipv4.o $(IPV4_OBJS)
-
-else
-
-ipv4.o:
-		$(AR) rcs ipv4.o
-
+O_OBJS := $(IPV4_OBJS)
 endif
 
-ifdef MODULES
-dep:
-		$(CPP) -M $(IPV4_OBJS:.o=.c) > .depend
-		$(CPP) -M -DMODULE $(MODULES:.o=.c) >> .depend
-else
-dep:
-		$(CPP) -M $(IPV4_OBJS:.o=.c) > .depend
-endif
+include $(TOPDIR)/Rules.make
 
 tar:
 		tar -cvf /dev/f1 .
-
-ifdef MODULES
-
-modules: $(MODULES)
-	echo $(MODULES) > ../../modules/IPV4_MODULES
-	cd ../../modules; \
-		for i in $(MODULES); do ln -sf ../net/ipv4/$$i .; done
-
-else
-
-modules:
-
-endif
-
-include $(TOPDIR)/Rules.make

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this