You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2020/06/02 10:49:28 UTC
[incubator-nuttx-apps] branch master updated: examples: Fix the
wrong dependence about config.h
This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 8f18b23 examples: Fix the wrong dependence about config.h
8f18b23 is described below
commit 8f18b233521eed6c4ee4d654f2531e14005284cf
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Tue Jun 2 15:24:10 2020 +0800
examples: Fix the wrong dependence about config.h
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
Change-Id: Iabedaa5da6439f4bfc34fb861382276446b4224f
---
examples/bridge/Makefile | 10 +++++++---
examples/flowc/Makefile | 4 +++-
examples/nettest/Makefile | 4 +++-
examples/tcpblaster/Makefile | 4 +++-
examples/udp/Makefile | 4 +++-
examples/udpblaster/Makefile | 4 +++-
6 files changed, 22 insertions(+), 8 deletions(-)
diff --git a/examples/bridge/Makefile b/examples/bridge/Makefile
index 91ac9d2..8a0190f 100644
--- a/examples/bridge/Makefile
+++ b/examples/bridge/Makefile
@@ -62,14 +62,18 @@ $(HOST_OBJS): %.o: %.c
$(Q) $(HOSTCC) -c $(HOSTCFLAGS) $< -o $@
bridge_config.h: $(TOPDIR)/include/nuttx/config.h
- @echo "CP: brigetconfig.h"
+ @echo "CP: brige_config.h"
$(Q) cp $(TOPDIR)/include/nuttx/config.h bridge_config.h
-$(HOST_BIN1): bridge_config.h $(HOST_OBJS1)
+$(HOST_OBJS1): bridge_config.h
+
+$(HOST_BIN1): $(HOST_OBJS1)
@echo "LD: $@"
$(Q) $(HOSTCC) $(HOSTLDFLAGS) $(HOST_OBJS1) -o $@
-$(HOST_BIN2): bridge_config.h $(HOST_OBJS2)
+$(HOST_OBJS2): bridge_config.h
+
+$(HOST_BIN2): $(HOST_OBJS2)
@echo "LD: $@"
$(Q) $(HOSTCC) $(HOSTLDFLAGS) $(HOST_OBJS2) -o $@
diff --git a/examples/flowc/Makefile b/examples/flowc/Makefile
index 3a9aa9f..6b7a9c2 100644
--- a/examples/flowc/Makefile
+++ b/examples/flowc/Makefile
@@ -96,7 +96,9 @@ config.h: $(TOPDIR)/include/nuttx/config.h
ifneq ($(CONFIG_EXAMPLES_FLOWC_TARGET2),y)
-$(HOST_BIN): config.h $(HOST_OBJS)
+$(HOST_OBJS): config.h
+
+$(HOST_BIN): $(HOST_OBJS)
$(Q) $(HOSTCC) $(HOSTLDFLAGS) $(HOST_OBJS) -o $@
endif
diff --git a/examples/nettest/Makefile b/examples/nettest/Makefile
index 22471f1..54ce298 100644
--- a/examples/nettest/Makefile
+++ b/examples/nettest/Makefile
@@ -119,7 +119,9 @@ config.h: $(TOPDIR)/include/nuttx/config.h
ifneq ($(CONFIG_EXAMPLES_NETTEST_TARGET2),y)
ifneq ($(CONFIG_EXAMPLES_NETTEST_LOOPBACK),y)
-$(HOST_BIN): config.h $(HOST_OBJS)
+$(HOST_OBJS): config.h
+
+$(HOST_BIN): $(HOST_OBJS)
@echo "LD: $@"
$(Q) $(HOSTCC) $(HOSTLDFLAGS) $(HOST_OBJS) -o $@
diff --git a/examples/tcpblaster/Makefile b/examples/tcpblaster/Makefile
index 4929838..f92440a 100644
--- a/examples/tcpblaster/Makefile
+++ b/examples/tcpblaster/Makefile
@@ -116,7 +116,9 @@ config.h: $(TOPDIR)/include/nuttx/config.h
ifneq ($(CONFIG_EXAMPLES_TCPBLASTER_TARGET2),y)
ifneq ($(CONFIG_EXAMPLES_TCPBLASTER_LOOPBACK),y)
-$(HOST_BIN): config.h $(HOST_OBJS)
+$(HOST_OBJS): config.h
+
+$(HOST_BIN): $(HOST_OBJS)
@echo "LD: $@"
$(Q) $(HOSTCC) $(HOSTLDFLAGS) $(HOST_OBJS) -o $@
diff --git a/examples/udp/Makefile b/examples/udp/Makefile
index e52b1c4..13ef411 100644
--- a/examples/udp/Makefile
+++ b/examples/udp/Makefile
@@ -104,7 +104,9 @@ config.h: $(TOPDIR)/include/nuttx/config.h
ifneq ($(CONFIG_EXAMPLES_UDP_TARGET2),y)
-$(HOST_BIN): config.h $(HOST_OBJS)
+$(HOST_OBJS): config.h
+
+$(HOST_BIN): $(HOST_OBJS)
$(Q) $(HOSTCC) $(HOSTLDFLAGS) $(HOST_OBJS) -o $@
endif
diff --git a/examples/udpblaster/Makefile b/examples/udpblaster/Makefile
index 4f66aff..02722d7 100644
--- a/examples/udpblaster/Makefile
+++ b/examples/udpblaster/Makefile
@@ -67,7 +67,9 @@ config.h: $(TOPDIR)/include/nuttx/config.h
$(Q) cp $< $@
ifneq ($(CONFIG_EXAMPLES_UDPBLASTER_LOOPBACK),y)
-$(HOST_BIN): config.h $(HOST_OBJS)
+$(HOST_OBJS): config.h
+
+$(HOST_BIN): $(HOST_OBJS)
@echo "LD: $@"
$(Q) $(HOSTCC) $(HOSTLDFLAGS) $(HOST_OBJS) -o $@
endif