diff --git a/examples/bridge/Makefile b/examples/bridge/Makefile index 91ac9d299..8a0190fd3 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 3a9aa9f5f..6b7a9c201 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 22471f17c..54ce29862 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 492983818..f92440ab5 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 e52b1c44e..13ef411e9 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 4f66affc2..02722d767 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