summaryrefslogtreecommitdiff
path: root/nuttx/net/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/net/Makefile')
-rw-r--r--nuttx/net/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/nuttx/net/Makefile b/nuttx/net/Makefile
index 2b514fe5e..6fd922649 100644
--- a/nuttx/net/Makefile
+++ b/nuttx/net/Makefile
@@ -41,7 +41,15 @@ MKDEP = $(TOPDIR)/tools/mkdeps.sh
ifeq ($(CONFIG_NET),y)
STD_ASRCS =
STD_CSRCS = socket.c bind.c connect.c send.c sendto.c recv.c recvfrom.c \
- setsockopt.c getsockopt.c net_sockets.c net-close.c
+ net_sockets.c net-close.c
+
+ifeq ($(CONFIG_NET_SOCKOPTS),y)
+STD_CSRCS += setsockopt.c getsockopt.c
+ifneq ($(CONFIG_DISABLE_CLOCK),y)
+STD_CSRCS += net_timeout.c net_dsec2timeval.c net_timeval2dsec.c
+endif
+endif
+
include uip/Make.defs
endif