pre-2.3.4..
[davej-history.git] / net / ipv4 / Makefile
blob8ab280deba5ccc693c38995247f89f5511a17c4a
2 # Makefile for the Linux TCP/IP (INET) layer.
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 O_TARGET := ipv4.o
11 IPV4_OBJS := utils.o route.o proc.o timer.o protocol.o \
12 ip_input.o ip_fragment.o ip_forward.o ip_options.o \
13 ip_output.o ip_sockglue.o \
14 tcp.o tcp_input.o tcp_output.o tcp_timer.o tcp_ipv4.o\
15 raw.o udp.o arp.o icmp.o devinet.o af_inet.o igmp.o \
16 sysctl_net_ipv4.o fib_frontend.o fib_semantics.o fib_hash.o
17 IPV4X_OBJS :=
19 MOD_LIST_NAME := IPV4_MODULES
20 M_OBJS :=
22 ifeq ($(CONFIG_IP_FIREWALL),y)
23 IPV4_OBJS += ip_fw.o
24 endif
26 ifeq ($(CONFIG_IP_MULTIPLE_TABLES),y)
27 IPV4_OBJS += fib_rules.o
28 endif
30 ifeq ($(CONFIG_IP_ROUTE_NAT),y)
31 IPV4_OBJS += ip_nat_dumb.o
32 endif
34 ifeq ($(CONFIG_IP_MROUTE),y)
35 IPV4_OBJS += ipmr.o
36 endif
38 ifeq ($(CONFIG_INET_RARP),y)
39 IPV4_OBJS += rarp.o
40 else
41 ifeq ($(CONFIG_INET_RARP),m)
42 M_OBJS += rarp.o
43 endif
44 endif
46 ifeq ($(CONFIG_NET_IPIP),y)
47 IPV4X_OBJS += ipip.o
48 else
49 ifeq ($(CONFIG_NET_IPIP),m)
50 MX_OBJS += ipip.o
51 endif
52 endif
54 ifeq ($(CONFIG_NET_IPGRE),y)
55 IPV4X_OBJS += ip_gre.o
56 else
57 ifeq ($(CONFIG_NET_IPGRE),m)
58 MX_OBJS += ip_gre.o
59 endif
60 endif
62 ifeq ($(CONFIG_IP_MASQUERADE),y)
63 IPV4X_OBJS += ip_masq.o ip_masq_app.o
65 ifeq ($(CONFIG_IP_MASQUERADE_MOD),y)
66 IPV4X_OBJS += ip_masq_mod.o
68 ifeq ($(CONFIG_IP_MASQUERADE_IPAUTOFW),y)
69 IPV4_OBJS += ip_masq_autofw.o
70 else
71 ifeq ($(CONFIG_IP_MASQUERADE_IPAUTOFW),m)
72 M_OBJS += ip_masq_autofw.o
73 endif
74 endif
76 ifeq ($(CONFIG_IP_MASQUERADE_IPPORTFW),y)
77 IPV4_OBJS += ip_masq_portfw.o
78 else
79 ifeq ($(CONFIG_IP_MASQUERADE_IPPORTFW),m)
80 M_OBJS += ip_masq_portfw.o
81 endif
82 endif
84 ifeq ($(CONFIG_IP_MASQUERADE_MFW),y)
85 IPV4_OBJS += ip_masq_mfw.o
86 else
87 ifeq ($(CONFIG_IP_MASQUERADE_MFW),m)
88 M_OBJS += ip_masq_mfw.o
89 endif
90 endif
92 endif
94 M_OBJS += ip_masq_user.o
95 M_OBJS += ip_masq_ftp.o ip_masq_irc.o ip_masq_raudio.o ip_masq_quake.o
96 M_OBJS += ip_masq_vdolive.o ip_masq_cuseeme.o
97 endif
99 ifeq ($(CONFIG_SYN_COOKIES),y)
100 IPV4_OBJS += syncookies.o
101 # module not supported, because it would be too messy.
102 endif
104 ifeq ($(CONFIG_IP_PNP),y)
105 IPV4_OBJS += ipconfig.o
106 endif
108 ifdef CONFIG_INET
109 O_OBJS := $(IPV4_OBJS)
110 OX_OBJS := $(IPV4X_OBJS)
111 endif
113 include $(TOPDIR)/Rules.make
115 tar:
116 tar -cvf /dev/f1 .