change a way to refer make.defs in external folders
authorkang <pilseob.kang@samsung.com>
Sat, 2 Sep 2017 05:59:47 +0000 (14:59 +0900)
committerkang <pilseob.kang@samsung.com>
Sat, 2 Sep 2017 06:27:35 +0000 (15:27 +0900)
49 files changed:
apps/builtin/Make.defs
apps/examples/Make.defs
apps/examples/aws/Make.defs
apps/examples/dnsclient_test/Make.defs
apps/examples/eeprom_test/Make.defs
apps/examples/ftpc/Make.defs
apps/examples/ftpd/Make.defs
apps/examples/hello/Make.defs
apps/examples/helloxx/Make.defs
apps/examples/iotbus_test/Make.defs
apps/examples/nettest/Make.defs
apps/examples/smart/Make.defs
apps/examples/telnetd/Make.defs
apps/examples/webserver/Make.defs
apps/examples/xmlrpc/Make.defs
apps/netutils/Make.defs
apps/platform/Make.defs
apps/system/Make.defs
apps/system/cle/Make.defs
apps/system/cu/Make.defs
apps/system/flash_eraseall/Make.defs
apps/system/i2c/Make.defs
apps/system/install/Make.defs
apps/system/mdio/Make.defs
apps/system/netdb/Make.defs
apps/system/ramtest/Make.defs
apps/system/readline/Make.defs
apps/system/vi/Make.defs
external/Makefile
external/dhcpc/Make.defs
external/dhcpd/Make.defs
external/ftpc/Make.defs
external/ftpd/Make.defs
external/include/netutils/ipmsfilter.h [moved from external/include/protocols/ipmsfilter.h with 100% similarity]
external/json/Make.defs
external/libcoap/Make.defs
external/mbedtls/Make.defs
external/mdns/Make.defs
external/mosquitto/Make.defs
external/netlib/Make.defs
external/netlib/netlib_ipmsfilter.c
external/ntpclient/Make.defs
external/smtp/Make.defs
external/telnetd/Make.defs
external/tftpc/Make.defs
external/webclient/Make.defs
external/webserver/Make.defs
external/websocket/Make.defs
external/xmlrpc/Make.defs

index 6c11917..f1157c7 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/builtin/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2012 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index 3048923..a91a138 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/examples/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index fe24082..334b9fe 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/examples/aws/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2012 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index 19971ad..5877753 100644 (file)
@@ -1,6 +1,6 @@
 ############################################################################
 # apps/examples/dnsclient_test/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2015 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index 8575982..d85891d 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/examples/eeprom_test/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2015 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index d2fdd5e..ae40e9e 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/examples/ftpc/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2015 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index e71ec45..6ed934e 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/examples/ftpd/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2015 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index c2b4e12..cba6dc6 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/examples/hello/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2015 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index b12056b..124df06 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/examples/helloxx/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2015 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index 1c36ffe..a1d3fb6 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/examples/iotbus_test/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2015 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index 330a42a..7604bdf 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/examples/nettest/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2015 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index a58dabc..3f60f6f 100644 (file)
@@ -1,6 +1,6 @@
 ############################################################################
 # apps/examples/smart/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2015 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index e5d6b66..5d81709 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/examples/telnetd/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2015 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index 11a1230..1d9894d 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/examples/webserver/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2015 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index a1a46cd..540101a 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/examples/xmlrpc/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2015 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index 8bbf0ae..763f2e4 100644 (file)
@@ -16,8 +16,8 @@
 #
 ###########################################################################
 ############################################################################
-# external/Make.defs
-# Adds selected applications to external/ build
+# apps/netutils/Make.defs
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index 40fed56..1155045 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/platform/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2013 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index 38a1f8d..9d045ba 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/system/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2012-2014 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index 79845dc..bf944f9 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/system/cle/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2016 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index e642d66..68df06e 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/system/cu/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2016 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index a811f4c..9e54d26 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/system/flash_eraseall/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2016 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index 128d083..474107f 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/system/i2c/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2015 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index 9e43428..2d17388 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/system/install/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2015 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index a8d893b..1b303a9 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/system/mdio/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2016 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index 59e88b3..e24797a 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/system/netdb/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2016 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index 52fa035..767ac57 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/system/ramtest/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2016 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index 2ec2b52..6e77c07 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/system/readline/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2016 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index 81de000..b0bb771 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 ############################################################################
 # apps/system/vi/Make.defs
-# Adds selected applications to external/ build
+# Adds selected applications to apps/ build
 #
 #   Copyright (C) 2016 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
index dc6faa8..c0ad111 100644 (file)
@@ -81,25 +81,77 @@ ifeq ($(CONFIG_NETUTILS_WIFI),y)
 include slsi_wifi/Make.defs
 endif
 
+ifeq ($(CONFIG_NETUTILS_DHCPD),y)
 include dhcpd/Make.defs
+endif
+
+ifeq ($(CONFIG_NETUTILS_XMLRPC),y)
 include xmlrpc/Make.defs
+endif
+
+ifeq ($(CONFIG_NETUTILS_NTPCLIENT),y)
 include ntpclient/Make.defs
+endif
+
+ifeq ($(CONFIG_NETUTILS_WEBSERVER),y)
 include webserver/Make.defs
+endif
+
+ifeq ($(CONFIG_NETUTILS_FTPC),y)
 include ftpc/Make.defs
+endif
+
+ifeq ($(CONFIG_NETUTILS_MDNS),y)
 include mdns/Make.defs
+endif
+
+ifeq ($(CONFIG_NETUTILS_WEBCLIENT),y)
 include webclient/Make.defs
+endif
+
+ifeq ($(CONFIG_NETUTILS_MQTT),y)
 include mosquitto/Make.defs
+endif
+
+ifeq ($(CONFIG_NETUTILS_FTPD),y)
 include ftpd/Make.defs
+endif
+
+ifeq ($(CONFIG_NETUTILS_DHCPC),y)
 include dhcpc/Make.defs
+endif
+
+ifeq ($(CONFIG_NETUTILS_WEBSOCKET),y)
 include websocket/Make.defs
+endif
+
+ifeq ($(CONFIG_NETUTILS_LIBCOAP),y)
 include libcoap/Make.defs
+endif
+
+ifeq ($(CONFIG_NETUTILS_TFTPC),y)
 include tftpc/Make.defs
+endif
+
+ifeq ($(CONFIG_NETUTILS_TELNETD),y)
 include telnetd/Make.defs
+endif
+
+ifeq ($(CONFIG_NETUTILS_SMTP),y)
 include smtp/Make.defs
+endif
+
+ifeq ($(CONFIG_NETUTILS_NETLIB),y)
 include netlib/Make.defs
+endif
+
+ifeq ($(CONFIG_NETUTILS_JSON),y)
 include json/Make.defs
-include mbedtls/Make.defs
+endif
 
+ifeq ($(CONFIG_NET_SECURITY_TLS),y)
+include mbedtls/Make.defs
+endif
 
 AOBJS = $(ASRCS:.S=$(OBJEXT))
 COBJS = $(CSRCS:.c=$(OBJEXT))
index 9d692a0..b46110f 100644 (file)
 #
 ############################################################################
 
-ifeq ($(CONFIG_NETUTILS_DHCPC),y)
-
 CSRCS += dhcpc/dhcpc.c
 
 DEPPATH += --dep-path dhcpc
 VPATH += :dhcpc
 
-endif
-
index acd32d3..12057b6 100644 (file)
 #
 ############################################################################
 
-ifeq ($(CONFIG_NETUTILS_DHCPD),y)
-
 CSRCS += dhcpd/dhcpd.c
 
 DEPPATH += --dep-path dhcpd
 VPATH += :dhcpd
 
-endif
-
index b83109b..a24eb24 100644 (file)
@@ -50,8 +50,6 @@
 #
 ############################################################################
 
-ifeq ($(CONFIG_NETUTILS_FTPC),y)
-
 # FTP connection management
 CSRCS += ftpc/ftpc_connect.c \
          ftpc/ftpc_disconnect.c
@@ -91,5 +89,3 @@ CSRCS += ftpc/ftpc_utils.c \
 DEPPATH += --dep-path ftpc
 VPATH += :ftpc
 
-endif
-
index 56822a8..808e377 100644 (file)
@@ -50,8 +50,6 @@
 #
 ############################################################################
 
-ifeq ($(CONFIG_NETUTILS_FTPD),y)
-
 ifeq ($(CONFIG_NET_LWIP),y)
 CSRCS          += ftpd/ftpd.c
 endif
@@ -59,5 +57,3 @@ endif
 DEPPATH += --dep-path ftpd
 VPATH += :ftpd
 
-endif
-
index dd7039c..4c3493c 100644 (file)
 #
 ############################################################################
 
-ifeq ($(CONFIG_NETUTILS_JSON),y)
-
 CSRCS += json/cJSON.c
 
 DEPPATH += --dep-path json
 VPATH += :json
 
-endif
-
index a6d148d..40d675b 100644 (file)
@@ -50,8 +50,6 @@
 #
 ############################################################################
 
-ifeq ($(CONFIG_NETUTILS_LIBCOAP),y)
-
 CSRCS += libcoap/async.c
 CSRCS += libcoap/block.c
 CSRCS += libcoap/coap_list.c
@@ -69,6 +67,3 @@ CSRCS += libcoap/uri.c
 DEPPATH += --dep-path libcoap
 VPATH += :libcoap
 
-endif
-
-
index a3e8643..133f020 100644 (file)
@@ -17,7 +17,7 @@
 ###########################################################################
 
 ############################################################################
-# net/tls/make.defs
+# external/mbedtls/make.defs
 #
 #   Copyright (C) 2007, 2008, 2011-2015 Gregory Nutt. All rights reserved.
 #   Author: Gregory Nutt <gnutt@nuttx.org>
@@ -51,7 +51,6 @@
 #
 ############################################################################
 
-ifeq ($(CONFIG_NET_SECURITY_TLS),y)
 SRC_CRYPTO_CSRCS =    mbedtls/aes.c           mbedtls/aesni.c         mbedtls/arc4.c          \
                       mbedtls/asn1parse.c     mbedtls/asn1write.c     mbedtls/base64.c        \
                       mbedtls/bignum.c        mbedtls/blowfish.c      mbedtls/camellia.c      \
@@ -91,4 +90,3 @@ CSRCS += $(TLS_CSRCS)
 DEPPATH += --dep-path mbedtls
 VPATH += :mbedtls
 
-endif
index 610b52b..bd867d7 100644 (file)
 #
 ###########################################################################
 
-ifeq ($(CONFIG_NETUTILS_MDNS),y)
-
 CSRCS += mdns/mdns.c mdns/mdnsd.c
 
 DEPPATH += --dep-path mdns
 VPATH += :mdns
 
-endif
index 0fd81eb..1f42e38 100644 (file)
@@ -50,8 +50,6 @@
 #
 ############################################################################
 
-ifeq ($(CONFIG_NETUTILS_MQTT),y)
-
 include mosquitto/config.mk
 
 CSRCS += mosquitto/tls_mosq.c
@@ -72,10 +70,6 @@ CSRCS += mosquitto/read_handle.c
 CSRCS += mosquitto/time_mosq.c
 CSRCS += mosquitto/memory_mosq.c
 
-#CFLAGS += -Imosquitto
-
 DEPPATH += --dep-path mosquitto
 VPATH += :mosquitto
 
-endif
-
index 3781ed3..8f07f0c 100644 (file)
@@ -50,8 +50,6 @@
 #
 ############################################################################
 
-ifeq ($(CONFIG_NETUTILS_NETLIB),y)
-
 CSRCS += netlib/netlib.c
 CSRCS += netlib/netlib_parsehttpurl.c
 CSRCS += netlib/netlib_setifstatus.c \
@@ -95,6 +93,3 @@ endif
 DEPPATH += --dep-path netlib
 VPATH += :netlib
 
-
-endif
-
index ac12b45..377f3cb 100644 (file)
@@ -69,7 +69,7 @@
 #include <sys/sockio.h>
 
 #include <netutils/netlib.h>
-#include <protocols/ipmsfilter.h>
+#include <netutils/ipmsfilter.h>
 
 #ifdef CONFIG_NET_IGMP
 
index 530499e..c95049e 100644 (file)
 #
 ############################################################################
 
-ifeq ($(CONFIG_NETUTILS_NTPCLIENT),y)
-
 CSRCS += ntpclient/ntpclient.c
 
 DEPPATH += --dep-path ntpclient
 VPATH += :ntpclient
 
-endif
-
index 1e9c710..3233507 100644 (file)
 #
 ############################################################################
 
-ifeq ($(CONFIG_NETUTILS_SMTP),y)
-
 CSRCS  += smtp/smtp.c
 
 DEPPATH += --dep-path smtp
 VPATH += :smtp
 
-endif
-
index c6b7d14..661651a 100644 (file)
 #
 ############################################################################
 
-ifeq ($(CONFIG_NETUTILS_TELNETD),y)
-CONFIGURED_APPS += netutils/telnetd
-
 CSRCS          += telnetd/telnetd_daemon.c
 
 DEPPATH += --dep-path telnetd
 VPATH += :telnetd
 
-endif
-
index 67b6216..e005c59 100644 (file)
 #
 ############################################################################
 
-ifeq ($(CONFIG_NETUTILS_TFTPC),y)
-
 CSRCS += tftpc/tftpc_get.c tftpc/tftpc_put.c tftpc/tftpc_packets.c
 
 DEPPATH += --dep-path tftpc
 VPATH += :tftpc
 
-endif
-
index d481dd3..5201594 100644 (file)
 #
 ############################################################################
 
-ifeq ($(CONFIG_NETUTILS_WEBCLIENT),y)
-
-ifeq ($(CONFIG_NETUTILS_WEBCLIENT),y)
 CSRCS  += webclient/webclient.c
-endif
 
 DEPPATH += --dep-path webclient
 VPATH += :webclient
 
-endif
-
index d061a73..8b21607 100644 (file)
 #
 ############################################################################
 
-ifeq ($(CONFIG_NETUTILS_WEBSERVER),y)
-CONFIGURED_APPS += netutils/webserver
-
-ifeq ($(CONFIG_NETUTILS_WEBSERVER),y)
 CSRCS  += webserver/http.c
 CSRCS   += webserver/http_server.c
 CSRCS   += webserver/http_client.c
@@ -64,10 +60,7 @@ endif
 CSRCS   += webserver/http_string_util.c
 CSRCS   += webserver/http_keyvalue_list.c
 CSRCS   += webserver/http_query.c
-endif
 
 DEPPATH += --dep-path webserver
 VPATH += :webserver
 
-endif
-
index c6c7aa8..d5ead98 100644 (file)
@@ -16,9 +16,6 @@
 #
 ###########################################################################
 
-ifeq ($(CONFIG_NETUTILS_WEBSOCKET),y)
-CONFIGURED_APPS += netutils/websocket
-
 CSRCS += websocket/websocket.c
 CSRCS += websocket/wslay/wslay_net.c \
          websocket/wslay/wslay_queue.c \
@@ -28,5 +25,3 @@ CSRCS += websocket/wslay/wslay_net.c \
 DEPPATH += --dep-path websocket
 VPATH += :websocket
 
-endif
-
index c9b4cab..a7fb454 100644 (file)
 #
 ############################################################################
 
-ifeq ($(CONFIG_NETUTILS_XMLRPC),y)
-
 CSRCS += xmlrpc/xmlparser.c \
          xmlrpc/response.c
 
 DEPPATH += --dep-path xmlrpc
 VPATH += :xmlrpc
 
-endif
-