Changeset 331 for EcnlProtoTool/trunk/asp3_dcre/tinet/Makefile.tinet
- Timestamp:
- Jan 21, 2018, 12:10:09 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/tinet/Makefile.tinet
r321 r331 2 2 # TINET (TCP/IP Protocol Stack) 3 3 # 4 # Copyright (C) 2001-20 09by Dep. of Computer Science and Engineering4 # Copyright (C) 2001-2017 by Dep. of Computer Science and Engineering 5 5 # Tomakomai National College of Technology, JAPAN 6 6 # Copyright (C) 2008-2009 by Hokkaido Industrial Research Institute, JAPAN … … 63 63 64 64 # 65 # TINET 1.7 以降は、ネットワーク層の指定を変更した。 66 # 67 68 ifeq ($(SUPPORT_INET6),true) 69 TINET_CDEFS := $(TINET_CDEFS) -DSUPPORT_INET6 70 endif 71 72 ifeq ($(SUPPORT_INET4),true) 73 TINET_CDEFS := $(TINET_CDEFS) -DSUPPORT_INET4 74 endif 75 76 ifeq ($API_CFG_IP4MAPPED_ADDR,true) 77 TINET_CDEFS := $(TINET_CDEFS) -DAPI_CFG_IP4MAPPED_ADDR 78 endif 79 80 ifeq ($(SUPPORT_IGMP),true) 81 TINET_CDEFS := $(TINET_CDEFS) -DSUPPORT_IGMP 82 endif 83 84 # 65 85 # ネットワークサービスに関する定義 66 86 # 67 TINET_DIR = $(TINET_ROOT)/net:$(TINET_ROOT)/netinet 68 87 88 # 汎用通信機能 89 90 TINET_DIRS = $(TINET_ROOT)/net:$(TINET_ROOT)/netinet:$(TINET_ROOT)/netinet6 69 91 TINET_COBJS := $(TINET_COBJS) \ 70 net_buf.o net_count.o net_subr.o net_timer.o \ 71 in_subr.o tinet_cfg.o route_cfg.o 72 73 ifeq ($(SUPPORT_INET4),true) 74 75 TINET_COBJS := $(TINET_COBJS) \ 76 ip_input.o ip_output.o ip_icmp.o 77 TINET_KERNEL_CFG := $(TINET_KERNEL_CFG) $(TINET_ROOT)/netinet/ip.cfg 78 TINET_CDEFS := $(TINET_CDEFS) -DSUPPORT_INET4 79 80 endif 81 82 ifeq ($(SUPPORT_INET6),true) 83 84 TINET_DIR := $(TINET_DIR):$(TINET_ROOT)/netinet6 85 TINET_COBJS := $(TINET_COBJS) \ 86 in6.o in6_ifattach.o nd6_rtr.o \ 87 in6_subr.o ip6_input.o icmp6.o \ 88 dest6.o route6.o frag6.o \ 89 ah_input.o esp_input.o \ 90 nd6.o nd6_nbr.o ip6_output.o scope6.o 91 TINET_KERNEL_CFG := $(TINET_KERNEL_CFG) $(TINET_ROOT)/netinet6/ip6.cfg 92 TINET_CDEFS := $(TINET_CDEFS) -DSUPPORT_INET6 93 94 endif 92 net_buf.o net_count.o net_subr.o net_timer.o if.o \ 93 in_subr.o route_cfg.o 94 TINET_CFG_COBJS := $(TINET_CFG_COBJS) tinet_cfg.o 95 96 # IPv6 97 98 TINET_COBJS := $(TINET_COBJS) \ 99 in6.o in6_ifattach.o nd6_rtr.o \ 100 in6_subr.o ip6_input.o icmp6.o \ 101 dest6.o route6.o frag6.o \ 102 ah_input.o esp_input.o \ 103 nd6.o nd6_nbr.o ip6_output.o scope6.o 104 TINET_KERNEL_CFG := $(TINET_KERNEL_CFG) $(TINET_ROOT)/netinet6/ip6.cfg 105 106 # IPv4 107 108 TINET_COBJS := $(TINET_COBJS) \ 109 ip_input.o ip_output.o ip_icmp.o ip_igmp.o in4_subr.o 110 TINET_KERNEL_CFG := $(TINET_KERNEL_CFG) $(TINET_ROOT)/netinet/ip.cfg 111 112 # loop back 95 113 96 114 ifeq ($(NET_IF),loop) … … 102 120 endif 103 121 122 # ppp 123 104 124 ifeq ($(NET_IF),ppp) 105 125 106 126 TINET_COBJS := $(TINET_COBJS) \ 107 127 ppp.o ppp_hdlc.o ppp_lcp.o ppp_fsm.o \ 108 ppp_auth.o ppp_ ipcp.o ppp_upap.o128 ppp_auth.o ppp_upap.o 109 129 TINET_KERNEL_CFG := $(TINET_KERNEL_CFG) $(TINET_ROOT)/net/ppp.cfg 110 130 TINET_CDEFS := $(TINET_CDEFS) -DSUPPORT_PPP 131 132 # IPv6用 cp 133 TINET_COBJS := $(TINET_COBJS) ppp_ipv6cp.o 134 135 # IPv4用 cp 136 TINET_COBJS := $(TINET_COBJS) ppp_ipcp.o 111 137 112 138 ifeq ($(PPP_CFG_MODEM),true) … … 143 169 endif 144 170 171 # ethernet 172 145 173 ifeq ($(NET_IF),ether) 146 174 147 TINET_COBJS := $(TINET_COBJS) if.o ethernet.o 148 TINET_KERNEL_CFG := $(TINET_KERNEL_CFG) $(TINET_ROOT)/net/ethernet.cfg 175 TINET_COBJS := $(TINET_COBJS) ethernet.o if6_ether.o if_ether.o 176 TINET_KERNEL_CFG := $(TINET_KERNEL_CFG) \ 177 $(TINET_ROOT)/net/ethernet.cfg \ 178 $(TINET_ROOT)/netinet/if_ether.cfg 149 179 TINET_CDEFS := $(TINET_CDEFS) -DSUPPORT_ETHER 150 151 ifeq ($(SUPPORT_INET4),true)152 153 TINET_COBJS := $(TINET_COBJS) if_ether.o154 TINET_KERNEL_CFG := $(TINET_KERNEL_CFG) $(TINET_ROOT)/netinet/if_ether.cfg155 156 endif157 158 ifeq ($(SUPPORT_INET6),true)159 160 TINET_COBJS := $(TINET_COBJS) if6_ether.o161 162 endif163 164 165 180 include $(TINET_ROOT)/netdev/$(NET_DEV)/Makefile.tinet 166 181 167 182 endif 183 184 # TCP 168 185 169 186 ifeq ($(SUPPORT_TCP),true) … … 177 194 endif 178 195 196 # UDP 197 179 198 ifeq ($(SUPPORT_UDP),true) 180 199 … … 193 212 194 213 ifeq ($(SUPPORT_TCP),true) 195 196 214 TINET_COBJS := $(TINET_COBJS) tcp_usrreq.o 197 198 215 endif 199 216 200 217 ifeq ($(SUPPORT_UDP),true) 201 202 TINET_COBJS := $(TINET_COBJS) udp_usrreq.o 203 218 TINET_COBJS := $(TINET_COBJS) udp_usrreq.o udp_usrreq_nblk.o 204 219 endif 205 220 … … 207 222 208 223 ifeq ($(SUPPORT_TCP),true) 209 210 224 TINET_LCSRCS := $(TINET_LCSRCS) tcp_usrreq.c 211 212 225 endif 213 226 214 227 ifeq ($(SUPPORT_UDP),true) 215 216 TINET_LCSRCS := $(TINET_LCSRCS) udp_usrreq.c 217 228 TINET_LCSRCS := $(TINET_LCSRCS) udp_usrreq.c udp_usrreq_nblk.c 218 229 endif 219 230 … … 248 259 tcp_set_opt.o tcp_get_opt.o 249 260 250 udp_usrreq = udp_can_snd.o udp_can_rcv.o udp_can_cep.o \ 251 udp_cre_cep.o udp_del_cep.o \ 252 udp_snd_dat.o udp_rcv_dat.o udp_send_data.o \ 253 udp_set_opt.o udp_get_opt.o 261 udp_usrreq = udp_can_cep.o udp_send_data.o \ 262 udp_can_snd.o udp_can_rcv.o \ 263 udp_snd_dat.o udp_rcv_dat.o \ 264 udp_set_opt.o udp_get_opt.o \ 265 udp_cre_cep.o udp_del_cep.o 266 267 udp_usrreq_nblk = \ 268 udp_can_snd_nblk.o udp_can_rcv_nblk.o \ 269 udp_snd_dat_nblk.o udp_rcv_dat_nblk.o 254 270 255 271 # … … 257 273 # オブジェクトファイルの依存関係の定義 258 274 # 259 $(tcp_usrreq) $(tcp_usrreq:.o=.s) $(tcp_usrreq:.o=.d): tcp_usrreq.c 260 $(udp_usrreq) $(udp_usrreq:.o=.s) $(udp_usrreq:.o=.d): udp_usrreq.c udp_usrreq_nblk.c 275 $(tcp_usrreq) $(tcp_usrreq:.o=.s) $(tcp_usrreq:.o=.d): tcp_usrreq.c tcpn_usrreq.c 276 $(udp_usrreq) $(udp_usrreq:.o=.s) $(udp_usrreq:.o=.d): udp_usrreq.c udpn_usrreq.c 277 $(udp_usrreq_nblk) $(udp_usrreq_nblk:.o=.s) $(udp_usrreq_nblk:.o=.d): udp_usrreq_nblk.c 261 278 262 279 # … … 271 288 ifeq ($(TARGET_KERNEL),ASP) 272 289 273 TINET_CFG = $(APPLDIR)/tinet_$(APPLNAME).cfg 274 TINET_CFG_OUT = tinet_cfg.c tinet_cfg.h 290 TINET_CFG_OUT = tinet_cfg.c tinet_cfg.h tinet_kern.cfg 275 291 TINET_KERNEL_CFG := $(TINET_KERNEL_CFG) \ 276 292 $(TINET_ROOT)/tinet_asp.cfg $(TINET_ROOT)/net/net_asp.cfg … … 305 321 ifeq ($(TARGET_KERNEL),ASP) 306 322 307 SYSSVC_DIRS := $(SYSSVC_DIRS):$(TINET_DIR )323 SYSSVC_DIRS := $(SYSSVC_DIRS):$(TINET_DIRS) 308 324 SYSSVC_ASMOBJS := $(SYSSVC_ASMOBJS) 309 325 SYSSVC_COBJS := $(SYSSVC_COBJS) $(TINET_COBJS) … … 311 327 SYSSVC_LIBS := $(SYSSVC_LIBS) $(LIBTINET) -lc 312 328 329 CFG_COBJS := $(CFG_COBJS) $(TINET_CFG_COBJS) 330 313 331 CLEAN_FILES := $(CLEAN_FILES) $(TINET_CFG_OUT) $(MAKE_TINET_LIB) 314 332 … … 319 337 MTASK_CFG := $(MTASK_CFG) $(TINET_CFG) 320 338 MTASK_KERNEL_CFG := $(MTASK_KERNEL_CFG) $(TINET_KERNEL_CFG) 321 MTASK_DIR := $(MTASK_DIR ):$(TINET_DIR)339 MTASK_DIR := $(MTASK_DIRS):$(TINET_DIRS) 322 340 MTASK_LCSRCS := $(MTASK_LCSRCS) $(TINET_LCSRCS) 323 341 MTASK_ASMOBJS := $(MTASK_ASMOBJS)
Note:
See TracChangeset
for help on using the changeset viewer.