patch-1.3.38 linux/net/Makefile

Next file: linux/net/appletalk/aarp.c
Previous file: linux/net/Changes
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.37/linux/net/Makefile linux/net/Makefile
@@ -9,7 +9,28 @@
 
 MOD_SUB_DIRS := ipv4
 ALL_SUB_DIRS := 802 ax25 core ethernet ipv4 ipx unix appletalk netrom
-SUB_DIRS     := $(ALL_SUB_DIRS)
+SUB_DIRS     := 802 core ethernet unix
+
+ifeq ($(CONFIG_INET),y)
+SUB_DIRS += ipv4
+endif
+
+ifeq ($(CONFIG_IPX),y)
+SUB_DIRS += ipx
+endif
+
+ifeq ($(CONFIG_ATALK),y)
+SUB_DIRS += appletalk
+endif
+
+ifeq ($(CONFIG_NETROM),y)
+SUB_DIRS += netrom
+endif
+
+ifeq ($(CONFIG_AX25),y)
+SUB_DIRS += ax25
+endif
+
 L_TARGET     := network.a
 L_OBJS	     := socket.o protocols.o netlink.o $(join $(SUB_DIRS),$(SUB_DIRS:%=/%.o))
 

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