1# 2# Makefile for the Linux TCP/IP (INET) layer. 3# 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). 7# 8# Note 2! The CFLAGS definition is now in the main makefile... 9 10O_TARGET := ipv4.o 11IPV4_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 17IPV4X_OBJS := 18 19MOD_LIST_NAME := IPV4_MODULES 20M_OBJS := 21 22ifeq ($(CONFIG_IP_FIREWALL),y) 23IPV4_OBJS += ip_fw.o 24endif 25 26ifeq ($(CONFIG_IP_MULTIPLE_TABLES),y) 27IPV4_OBJS += fib_rules.o 28endif 29 30ifeq ($(CONFIG_IP_ROUTE_NAT),y) 31IPV4_OBJS += ip_nat_dumb.o 32endif 33 34ifeq ($(CONFIG_IP_MROUTE),y) 35IPV4_OBJS += ipmr.o 36endif 37 38ifeq ($(CONFIG_INET_RARP),y) 39IPV4_OBJS += rarp.o 40else 41 ifeq ($(CONFIG_INET_RARP),m) 42 M_OBJS += rarp.o 43 endif 44endif 45 46ifeq ($(CONFIG_NET_IPIP),y) 47IPV4X_OBJS += ipip.o 48else 49 ifeq ($(CONFIG_NET_IPIP),m) 50 MX_OBJS += ipip.o 51 endif 52endif 53 54ifeq ($(CONFIG_NET_IPGRE),y) 55IPV4X_OBJS += ip_gre.o 56else 57 ifeq ($(CONFIG_NET_IPGRE),m) 58 MX_OBJS += ip_gre.o 59 endif 60endif 61 62ifeq ($(CONFIG_IP_MASQUERADE),y) 63IPV4X_OBJS += ip_masq.o ip_masq_app.o 64 65ifeq ($(CONFIG_IP_MASQUERADE_MOD),y) 66 IPV4X_OBJS += ip_masq_mod.o 67 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 75 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 83 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 91 92endif 93 94M_OBJS += ip_masq_user.o 95M_OBJS += ip_masq_ftp.o ip_masq_irc.o ip_masq_raudio.o ip_masq_quake.o 96M_OBJS += ip_masq_vdolive.o ip_masq_cuseeme.o 97endif 98 99ifeq ($(CONFIG_SYN_COOKIES),y) 100IPV4_OBJS += syncookies.o 101# module not supported, because it would be too messy. 102endif 103 104ifeq ($(CONFIG_IP_PNP),y) 105IPV4_OBJS += ipconfig.o 106endif 107 108ifdef CONFIG_INET 109O_OBJS := $(IPV4_OBJS) 110OX_OBJS := $(IPV4X_OBJS) 111endif 112 113include $(TOPDIR)/Rules.make 114 115tar: 116 tar -cvf /dev/f1 . 117

