Linux 2.1.131
[davej-history.git] / net / Makefile
blob0bbf171fa6610fddb6d0b7ad3c526a00c81a73a9
2 # Makefile for the linux networking.
4 # Note! Dependencies are done automagically by 'make dep', which also
5 # removes any old dependencies. DON'T put your own dependencies here
6 # unless it's something special (ie not a .c file).
8 # Note 2! The CFLAGS definition is now in the main makefile...
10 MOD_SUB_DIRS := ipv4
11 ALL_SUB_DIRS := 802 ax25 bridge core ethernet ipv4 ipv6 ipx unix appletalk \
12 netrom rose lapb x25 wanrouter netlink sched packet sunrpc \
13 econet #decnet
14 SUB_DIRS := core ethernet sched
15 MOD_LIST_NAME := NET_MISC_MODULES
17 ifeq ($(CONFIG_NET),y)
18 SUB_DIRS += 802
19 endif
21 ifeq ($(CONFIG_INET),y)
22 SUB_DIRS += ipv4
23 endif
25 ifeq ($(CONFIG_UNIX),y)
26 SUB_DIRS += unix
27 else
28 ifeq ($(CONFIG_UNIX),m)
29 MOD_SUB_DIRS += unix
30 endif
31 endif
33 ifeq ($(CONFIG_IPV6),y)
34 SUB_DIRS += ipv6
35 else
36 ifeq ($(CONFIG_IPV6),m)
37 MOD_SUB_DIRS += ipv6
38 endif
39 endif
41 ifeq ($(CONFIG_NETLINK),y)
42 SUB_DIRS += netlink
43 ifeq ($(CONFIG_NETLINK_DEV),m)
44 MOD_SUB_DIRS += netlink
45 endif
46 endif
48 ifeq ($(CONFIG_PACKET),y)
49 SUB_DIRS += packet
50 else
51 ifeq ($(CONFIG_PACKET),m)
52 MOD_SUB_DIRS += packet
53 endif
54 endif
56 ifeq ($(CONFIG_NET_SCHED),y)
57 MOD_SUB_DIRS += sched
58 endif
60 ifeq ($(CONFIG_BRIDGE),y)
61 SUB_DIRS += bridge
62 endif
64 ifeq ($(CONFIG_IPX),y)
65 SUB_DIRS += ipx
66 else
67 ifeq ($(CONFIG_IPX),m)
68 MOD_SUB_DIRS += ipx
69 endif
70 endif
72 ifeq ($(CONFIG_ATALK),y)
73 SUB_DIRS += appletalk
74 else
75 ifeq ($(CONFIG_ATALK),m)
76 MOD_SUB_DIRS += appletalk
77 endif
78 endif
80 ifeq ($(CONFIG_WAN_ROUTER),y)
81 SUB_DIRS += wanrouter
82 else
83 ifeq ($(CONFIG_WAN_ROUTER),m)
84 MOD_SUB_DIRS += wanrouter
85 endif
86 endif
88 ifeq ($(CONFIG_X25),y)
89 SUB_DIRS += x25
90 else
91 ifeq ($(CONFIG_X25),m)
92 MOD_SUB_DIRS += x25
93 endif
94 endif
96 ifeq ($(CONFIG_LAPB),y)
97 SUB_DIRS += lapb
98 else
99 ifeq ($(CONFIG_LAPB),m)
100 MOD_SUB_DIRS += lapb
101 endif
102 endif
104 ifeq ($(CONFIG_NETROM),y)
105 SUB_DIRS += netrom
106 else
107 ifeq ($(CONFIG_NETROM),m)
108 MOD_SUB_DIRS += netrom
109 endif
110 endif
112 ifeq ($(CONFIG_ROSE),y)
113 SUB_DIRS += rose
114 else
115 ifeq ($(CONFIG_ROSE),m)
116 MOD_SUB_DIRS += rose
117 endif
118 endif
120 ifeq ($(CONFIG_AX25),y)
121 SUB_DIRS += ax25
122 else
123 ifeq ($(CONFIG_AX25),m)
124 MOD_SUB_DIRS += ax25
125 endif
126 endif
128 ifeq ($(CONFIG_SUNRPC),y)
129 SUB_DIRS += sunrpc
130 else
131 ifeq ($(CONFIG_SUNRPC),m)
132 MOD_SUB_DIRS += sunrpc
133 endif
134 endif
136 ifeq ($(CONFIG_DECNET),y)
137 SUB_DIRS += decnet
138 else
139 ifeq ($(CONFIG_DECNET),m)
140 MOD_SUB_DIRS += decnet
141 endif
142 endif
144 ifeq ($(CONFIG_ECONET),y)
145 SUB_DIRS += econet
146 else
147 ifeq ($(CONFIG_ECONET),m)
148 MOD_SUB_DIRS += econet
149 endif
150 endif
152 # We must attach netsyms.o to socket.o, as otherwise there is nothing
153 # to pull the object file from the archive.
155 SOCK := socket.o
156 ifeq ($(CONFIG_NET),y)
157 ifeq ($(CONFIG_MODULES),y)
158 O_TARGET := sock_n_syms.o
159 O_OBJS := socket.o
160 OX_OBJS := netsyms.o
161 SOCK := $(O_TARGET)
162 endif
163 endif
165 L_TARGET := network.a
166 L_OBJS := $(SOCK) protocols.o $(join $(SUB_DIRS),$(SUB_DIRS:%=/%.o))
168 M_OBJS :=
170 ifeq ($(CONFIG_SYSCTL),y)
171 L_OBJS += sysctl_net.o
172 endif
174 include $(TOPDIR)/Rules.make