summaryrefslogtreecommitdiff
path: root/nuttx/net/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/net/Makefile')
-rw-r--r--nuttx/net/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/nuttx/net/Makefile b/nuttx/net/Makefile
index e429d6236..082b0a0d7 100644
--- a/nuttx/net/Makefile
+++ b/nuttx/net/Makefile
@@ -40,8 +40,12 @@ MKDEP = $(TOPDIR)/tools/mkdeps.sh
ifeq ($(CONFIG_NET),y)
SOCK_ASRCS =
-SOCK_CSRCS = socket.c bind.c connect.c listen.c accept.c send.c sendto.c \
- recv.c recvfrom.c net-sockets.c net-close.c
+SOCK_CSRCS = socket.c bind.c connect.c sendto.c recv.c recvfrom.c \
+ net-sockets.c net-close.c
+
+ifeq ($(CONFIG_NET_TCP),y)
+SOCK_CSRCS += send.c listen.c accept.c
+endif
ifeq ($(CONFIG_NET_SOCKOPTS),y)
SOCK_CSRCS += setsockopt.c getsockopt.c