- Timestamp:
- Jan 21, 2018, 12:10:09 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/tinet/netapp/Makefile.netapp
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 # … … 50 50 51 51 TINET_ROOT = $(SRCDIR)/tinet 52 NETAPP_DIR = $(TINET_ROOT)/netapp52 NETAPP_DIRS = $(TINET_ROOT)/netapp 53 53 NETAPP_COBJS := $(NETAPP_COBJS) netapp_subr.o 54 54 55 ifeq ($(USE_LCD),true) 56 57 NETAPP_COBJS := $(NETAPP_COBJS) lcd.o 58 59 ifeq ($(TARGET_KERNEL),ASP) 60 NETAPP_COBJS := $(NETAPP_COBJS) target_lcd.o sc1602.o 61 endif 62 63 ifeq ($(TARGET_KERNEL),JSP) 64 NETAPP_COBJS := $(NETAPP_COBJS) hw_lcd.o sc1602.o 65 endif 66 67 endif 68 55 69 # トランスポート層の選択 56 70 57 SUPPORT_TCP = false58 SUPPORT_UDP = false71 #SUPPORT_TCP = false 72 #SUPPORT_UDP = false 59 73 60 74 # … … 62 76 # 63 77 78 ifeq ($(USE_WWW4_SRV),true) 79 USE_WWW_SRV = true 80 CDEFS := $(CDEFS) -DUSE_WWW4_SRV 81 endif 82 64 83 ifeq ($(USE_WWW_SRV),true) 65 SUPPORT_TCP = true 66 TCP_CFG_PASSIVE_OPEN= true84 85 SUPPORT_TCP = true 67 86 USE_NETAPP_SUBR = true 68 87 CDEFS := $(CDEFS) -DUSE_WWW_SRV 69 88 NETAPP_COBJS := $(NETAPP_COBJS) wwws.o 70 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/wwws.cfg 89 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/wwws.cfg 90 91 endif 92 93 ifeq ($(USE_TCP4_ECHO_SRV),true) 94 TCP_ECHO_SRV = tcp_echo_srv1 95 CDEFS := $(CDEFS) -DUSE_TCP4_ECHO_SRV 71 96 endif 72 97 73 98 ifeq ($(TCP_ECHO_SRV),tcp_echo_srv1) # 送受信タスク同一型 74 SUPPORT_TCP = true 75 TCP_CFG_PASSIVE_OPEN= true99 100 SUPPORT_TCP = true 76 101 USE_NETAPP_SUBR = true 77 102 CDEFS := $(CDEFS) -DUSE_TCP_ECHO_SRV1 78 103 NETAPP_COBJS := $(NETAPP_COBJS) tcp_echo_srv1.o 79 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/tcp_echo_srv1.cfg 104 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/tcp_echo_srv1.cfg 105 106 ifeq ($(USE_TCP_NON_BLOCKING),true) 107 NETAPP_COBJS := $(NETAPP_COBJS) tcp_echo_srv1_nblk.o 108 endif 109 110 ifeq ($(USE_TCP_EXTENTIONS),true) 111 NETAPP_COBJS := $(NETAPP_COBJS) tcp_echo_srv1_ext.o 112 endif 113 80 114 endif 81 115 82 116 ifeq ($(TCP_ECHO_SRV),tcp_echo_srv2) # 送受信タスク分離型 83 117 SUPPORT_TCP = true 84 TCP_CFG_PASSIVE_OPEN = true85 118 USE_NETAPP_SUBR = true 86 119 CDEFS := $(CDEFS) -DUSE_TCP_ECHO_SRV2 87 120 NETAPP_COBJS := $(NETAPP_COBJS) tcp_echo_srv2.o 88 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/tcp_echo_srv2.cfg 121 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/tcp_echo_srv2.cfg 122 endif 123 124 ifeq ($(USE_UDP4_ECHO_SRV),true) 125 USE_UDP_ECHO_SRV = true 89 126 endif 90 127 91 128 ifeq ($(USE_UDP_ECHO_SRV),true) 92 SUPPORT_UDP = true 93 USE_NETAPP_SUBR = true 129 94 130 CDEFS := $(CDEFS) -DUSE_UDP_ECHO_SRV 95 NETAPP_COBJS := $(NETAPP_COBJS) udp_echo_srv.o 96 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/udp_echo_srv.cfg 131 132 ifeq ($(SUPPORT_INET6),true) 133 SUPPORT_UDP = true 134 USE_NETAPP_SUBR = true 135 CDEFS := $(CDEFS) -DUSE_UDP6_ECHO_SRV_TSK 136 NETAPP_COBJS := $(NETAPP_COBJS) udp6_echo_srv.o 137 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/udp6_echo_srv.cfg 138 139 ifeq ($(SUPPORT_INET4),true) 140 ifeq ($(USE_UDP4_ECHO_SRV),true) 141 CDEFS := $(CDEFS) -DUSE_UDP4_ECHO_SRV_TSK 142 NETAPP_COBJS := $(NETAPP_COBJS) udp4_echo_srv.o 143 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/udp4_echo_srv.cfg 144 endif 145 endif 146 else 147 ifeq ($(SUPPORT_INET4),true) 148 SUPPORT_UDP = true 149 USE_NETAPP_SUBR = true 150 CDEFS := $(CDEFS) -DUSE_UDP4_ECHO_SRV_TSK 151 NETAPP_COBJS := $(NETAPP_COBJS) udp4_echo_srv.o 152 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/udp4_echo_srv.cfg 153 endif 154 endif 155 endif 156 157 158 ifeq ($(USE_TCP4_ECHO_CLI),true) 159 USE_TCP_ECHO_CLI = true 160 CDEFS := $(CDEFS) -DUSE_TCP4_ECHO_CLI 97 161 endif 98 162 … … 101 165 USE_NETAPP_SUBR = true 102 166 CDEFS := $(CDEFS) -DUSE_TCP_ECHO_CLI 103 NETAPP_COBJS := $(NETAPP_COBJS) tcp_echo_cli.o 104 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/tcp_echo_cli.cfg 167 NETAPP_COBJS := $(NETAPP_COBJS) tcp_echo_cli.o tcp_echo_cli_snd.o tcp_echo_cli_rcv.o 168 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/tcp_echo_cli.cfg 169 endif 170 171 ifeq ($(USE_UDP4_ECHO_CLI),true) 172 USE_UDP_ECHO_CLI = true 105 173 endif 106 174 107 175 ifeq ($(USE_UDP_ECHO_CLI),true) 108 SUPPORT_UDP = true 109 USE_NETAPP_SUBR = true 176 110 177 CDEFS := $(CDEFS) -DUSE_UDP_ECHO_CLI 111 NETAPP_COBJS := $(NETAPP_COBJS) udp_echo_cli.o 112 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/udp_echo_cli.cfg 178 179 ifeq ($(SUPPORT_INET6),true) 180 SUPPORT_UDP = true 181 USE_NETAPP_SUBR = true 182 CDEFS := $(CDEFS) -DUSE_UDP6_ECHO_CLI_TSK 183 NETAPP_COBJS := $(NETAPP_COBJS) udp6_echo_cli.o 184 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/udp6_echo_cli.cfg 185 186 ifeq ($(SUPPORT_INET4),true) 187 ifeq ($(USE_UDP4_ECHO_CLI),true) 188 CDEFS := $(CDEFS) -DUSE_UDP4_ECHO_CLI_TSK 189 NETAPP_COBJS := $(NETAPP_COBJS) udp4_echo_cli.o 190 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/udp4_echo_cli.cfg 191 endif 192 endif 193 else 194 ifeq ($(SUPPORT_INET4),true) 195 SUPPORT_UDP = true 196 USE_NETAPP_SUBR = true 197 CDEFS := $(CDEFS) -DUSE_UDP4_ECHO_CLI_TSK 198 NETAPP_COBJS := $(NETAPP_COBJS) udp4_echo_cli.o 199 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/udp4_echo_cli.cfg 200 endif 201 202 endif 113 203 endif 114 204 115 205 ifeq ($(USE_TCP_DISCARD_SRV),true) 116 206 SUPPORT_TCP = true 117 TCP_CFG_PASSIVE_OPEN = true118 207 USE_NETAPP_SUBR = true 119 208 CDEFS := $(CDEFS) -DUSE_TCP_DISCARD_SRV 120 209 NETAPP_COBJS := $(NETAPP_COBJS) tcp_discard_srv.o 121 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR )/tcp_discard_srv.cfg210 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/tcp_discard_srv.cfg 122 211 endif 123 212 … … 127 216 CDEFS := $(CDEFS) -DUSE_TCP_DISCARD_CLI 128 217 NETAPP_COBJS := $(NETAPP_COBJS) tcp_discard_cli.o 129 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR )/tcp_discard_cli.cfg218 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/tcp_discard_cli.cfg 130 219 endif 131 220 … … 135 224 CDEFS := $(CDEFS) -DUSE_UDP_DISCARD_CLI 136 225 NETAPP_COBJS := $(NETAPP_COBJS) udp_discard_cli.o 137 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR )/udp_discard_cli.cfg226 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/udp_discard_cli.cfg 138 227 endif 139 228 … … 141 230 ifeq ($(TCP_CFG_NON_BLOCKING),true) 142 231 SUPPORT_TCP = true 143 TCP_CFG_PASSIVE_OPEN = true144 232 USE_DBG_CONS = true 145 233 USE_NETAPP_SUBR = true 146 234 CDEFS := $(CDEFS) -DUSE_NET_CONS 147 235 NETAPP_COBJS := $(NETAPP_COBJS) net_cons.o 148 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR )/net_cons.cfg236 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/net_cons.cfg 149 237 endif 150 238 endif 151 239 152 240 ifeq ($(USE_DBG_CONS),true) 153 154 241 USE_NETAPP_SUBR = true 155 242 CDEFS := $(CDEFS) -DUSE_DBG_CONS 156 243 NETAPP_COBJS := $(NETAPP_COBJS) dbg_cons.o 157 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIR)/dbg_cons.cfg 158 244 NETAPP_KERNEL_CFG := $(NETAPP_KERNEL_CFG) $(NETAPP_DIRS)/dbg_cons.cfg 245 ifeq ($(USE_DBG_CONS_PARSER),true) 246 CDEFS := $(CDEFS) -DUSE_DBG_CONS_PARSER 247 endif 248 ifeq ($(USE_DBG_CONS_EXTRA_PARSE),true) 249 CDEFS := $(CDEFS) -DUSE_DBG_CONS_EXTRA_PARSE 250 endif 159 251 endif 160 252 161 253 ifeq ($(USE_PING),true) 162 163 254 USE_NETAPP_SUBR = true 164 255 CDEFS := $(CDEFS) -DUSE_PING 165 166 256 ifeq ($(SUPPORT_INET4),true) 167 168 257 NETAPP_COBJS := $(NETAPP_COBJS) ping.o 169 258 endif 170 171 259 ifeq ($(SUPPORT_INET6),true) 172 173 260 NETAPP_COBJS := $(NETAPP_COBJS) ping6.o 174 261 endif 175 262 endif 263 264 ifeq ($(USE_RESOLVER),true) 265 SUPPORT_UDP = true 266 CDEFS := $(CDEFS) -DUSE_RESOLVER 267 NETAPP_COBJS := $(NETAPP_COBJS) resolver.o 268 269 endif 270 271 ifeq ($(USE_DHCP6_CLI),true) 272 ifeq ($(SUPPORT_INET6),true) 273 SUPPORT_UDP = true 274 UDP_CFG_NON_BLOCKING = true 275 USE_UDP_NON_BLOCKING = true 276 CDEFS := $(CDEFS) -DDHCP6_CLI_CFG 277 NETAPP_COBJS := $(NETAPP_COBJS) dhcp6_cli.o 278 endif 279 endif 280 281 ifeq ($(USE_DHCP4_CLI),true) 282 ifeq ($(SUPPORT_INET4),true) 283 SUPPORT_UDP = true 284 UDP_CFG_NON_BLOCKING = true 285 USE_UDP_NON_BLOCKING = true 286 CDEFS := $(CDEFS) -DDHCP4_CLI_CFG 287 NETAPP_COBJS := $(NETAPP_COBJS) dhcp4_cli.o 288 endif 176 289 endif 177 290 … … 180 293 endif 181 294 295 ifeq ($(API_CFG_IP4MAPPED_ADDR),true) 296 CDEFS := $(CDEFS) -DAPI_CFG_IP4MAPPED_ADDR 297 endif 298 182 299 ifeq ($(USE_COPYSAVE_API),true) 183 300 CDEFS := $(CDEFS) -DUSE_COPYSAVE_API 184 endif185 186 ifndef TCP_CFG_PASSIVE_OPEN187 CDEFS := $(CDEFS) -DUNDEF_TCP_CFG_PASSIVE_OPEN188 301 endif 189 302 … … 241 354 endif 242 355 356 ifeq ($(USE_LCD),true) 357 CDEFS := $(CDEFS) -DUSE_LCD 358 endif 359 243 360 # 244 361 # アプリケーションプログラムに関する定義への追加 … … 247 364 ifeq ($(TARGET_KERNEL),ASP) 248 365 249 APPLDIR := $(APPLDIR) $(NETAPP_DIR )366 APPLDIR := $(APPLDIR) $(NETAPP_DIRS) 250 367 APPL_COBJS := $(APPL_COBJS) $(NETAPP_COBJS) 251 368 APPL_CFLAGS := $(APPL_CFLAGS) -fno-strict-aliasing … … 255 372 ifeq ($(TARGET_KERNEL),JSP) 256 373 257 UTASK_DIR := $(UTASK_DIR):$(NETAPP_DIR)374 UTASK_DIRS := $(UTASK_DIRS):$(NETAPP_DIRS) 258 375 UTASK_COBJS := $(UTASK_COBJS) $(NETAPP_COBJS) 259 376 UTASK_CFLAGS := $(UTASK_CFLAGS) -fno-strict-aliasing … … 261 378 endif 262 379 380 ifeq ($(USE_LCD),true) 381 382 ifeq ($(TARGET_KERNEL),ASP) 383 384 APPLDIR := $(APPLDIR) $(SRCDIR)/pdic/sc1602 385 386 endif 387 388 ifeq ($(TARGET_KERNEL),JSP) 389 390 UTASK_DIRS := $(UTASK_DIRS):$(SRCDIR)/pdic/sc1602 391 392 endif 393 394 endif 395 263 396 # 264 397 # TINET コンフィギュレーションファイルの定義への追加
Note:
See TracChangeset
for help on using the changeset viewer.