examples: Fix the wrong dependence about config.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Iabedaa5da6439f4bfc34fb861382276446b4224f
This commit is contained in:
Xiang Xiao 2020-06-02 15:24:10 +08:00 committed by Alin Jerpelea
parent a49f951c86
commit 8f18b23352
6 changed files with 22 additions and 8 deletions

View File

@ -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 $@

View File

@ -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

View File

@ -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 $@

View File

@ -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 $@

View File

@ -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

View File

@ -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