summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2011-05-11 00:27:29 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2011-05-11 00:27:29 +0000
commit2336b14046a4aa4710da40673c4ed2b0dafd1b6c (patch)
treeae4ba296280f935b6600111a3eeb28a3d038f674
parent9e8c081978cba20c0e695f2bbd2e94cdca2028c6 (diff)
Fix a netutils build issue
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@3587 7fd9a85b-ad96-42d3-883c-3090e2eb8679
-rwxr-xr-xapps/ChangeLog.txt3
-rw-r--r--apps/netutils/dhcpc/Makefile2
-rw-r--r--apps/netutils/dhcpd/Makefile2
-rw-r--r--apps/netutils/resolv/Makefile2
-rw-r--r--apps/netutils/tftpc/Makefile2
5 files changed, 7 insertions, 4 deletions
diff --git a/apps/ChangeLog.txt b/apps/ChangeLog.txt
index 9bdb877416..e3a87ae256 100755
--- a/apps/ChangeLog.txt
+++ b/apps/ChangeLog.txt
@@ -37,3 +37,6 @@
on module now installs and builds under this directory.
* apps/interpreter/ficl: Added logic to build Ficl (the "Forth Inspired
Command Language"). See http://ficl.sourceforge.net/.
+ * apps/netutils/dhcpc, dhcpcd, and tftp. If these directories are included
+ in the configuration but CONFIG_NET_UDP is disable (which is not very wise),
+ then a make error occurs because tools/mkdep.sh is called with no files.
diff --git a/apps/netutils/dhcpc/Makefile b/apps/netutils/dhcpc/Makefile
index c69a5bdf43..0434630c96 100644
--- a/apps/netutils/dhcpc/Makefile
+++ b/apps/netutils/dhcpc/Makefile
@@ -82,7 +82,7 @@ $(COBJS): %$(OBJEXT): %.c
context:
.depend: Makefile $(SRCS)
-ifneq ($(SRCS),)
+ifeq ($(CONFIG_NET_UDP),y)
@$(MKDEP) $(ROOTDEPPATH) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
endif
@touch $@
diff --git a/apps/netutils/dhcpd/Makefile b/apps/netutils/dhcpd/Makefile
index 24b5bd7787..77c69d1557 100644
--- a/apps/netutils/dhcpd/Makefile
+++ b/apps/netutils/dhcpd/Makefile
@@ -82,7 +82,7 @@ $(COBJS): %$(OBJEXT): %.c
context:
.depend: Makefile $(SRCS)
-ifneq ($(SRCS),)
+ifeq ($(CONFIG_NET_UDP),y)
@$(MKDEP) $(ROOTDEPPATH) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
endif
@touch $@
diff --git a/apps/netutils/resolv/Makefile b/apps/netutils/resolv/Makefile
index 9c822078d9..53556203ca 100644
--- a/apps/netutils/resolv/Makefile
+++ b/apps/netutils/resolv/Makefile
@@ -82,7 +82,7 @@ $(COBJS): %$(OBJEXT): %.c
context:
.depend: Makefile $(SRCS)
-ifneq ($(SRCS),)
+ifeq ($(CONFIG_NET_UDP),y)
@$(MKDEP) $(ROOTDEPPATH) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
endif
@touch $@
diff --git a/apps/netutils/tftpc/Makefile b/apps/netutils/tftpc/Makefile
index dc2cbf03cb..e810124a6c 100644
--- a/apps/netutils/tftpc/Makefile
+++ b/apps/netutils/tftpc/Makefile
@@ -84,7 +84,7 @@ $(COBJS): %$(OBJEXT): %.c
context:
.depend: Makefile $(SRCS)
-ifneq ($(SRCS),)
+ifeq ($(CONFIG_NET_UDP),y)
@$(MKDEP) $(ROOTDEPPATH) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
endif
@touch $@