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