patch-1.3.17 linux/net/ipv4/Makefile
Next file: linux/net/ipv4/af_inet.c
Previous file: linux/net/ethernet/Makefile
Back to the patch index
Back to the overall index
- Lines: 60
- Date:
Wed Aug 9 09:52:29 1995
- Orig file:
v1.3.16/linux/net/ipv4/Makefile
- Orig date:
Tue Jul 11 10:03:00 1995
diff -u --recursive --new-file v1.3.16/linux/net/ipv4/Makefile linux/net/ipv4/Makefile
@@ -12,20 +12,22 @@
.s.o:
$(AS) -o $*.o $<
-OBJS := utils.o route.o proc.o timer.o protocol.o packet.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
-ifdef CONFIG_INET_RARP
-
-OBJS := $(OBJS) rarp.o
+MODULES :=
+ifdef CONFIG_INET_RARP
+IPV4_OBJS := $(IPV4_OBJS) rarp.o
+else
+MODULES := $(MODULES) rarp.o
endif
ifdef CONFIG_INET
-ipv4.o: $(OBJS)
- $(LD) -r -o ipv4.o $(OBJS)
+ipv4.o: $(IPV4_OBJS)
+ $(LD) -r -o ipv4.o $(IPV4_OBJS)
else
@@ -34,11 +36,29 @@
endif
+ifdef MODULES
dep:
- $(CPP) -M *.c > .depend
+ $(CPP) -M $(IPV4_OBJS:.o=.c) > .depend
+ $(CPP) -M -DMODULE $(MODULES:.o=.c) >> .depend
+else
+dep:
+ $(CPP) -M $(IPV4_OBJS:.o=.c) > .depend
+endif
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