diff --git a/examples/flowc/Makefile b/examples/flowc/Makefile index 73209daff..f457d62cc 100644 --- a/examples/flowc/Makefile +++ b/examples/flowc/Makefile @@ -88,22 +88,28 @@ $(HOST_OBJS): %.$(HOSTOBJSEXT): %.c @echo "CC: $<" $(Q) $(HOSTCC) -c $(HOSTCFLAGS) $< -o $@ +endif + config.h: $(TOPDIR)/include/nuttx/config.h @echo "CP: $<" $(Q) cp $< $@ +ifneq ($(CONFIG_EXAMPLES_FLOWC_TARGET2),y) + $(HOST_BIN): config.h $(HOST_OBJS) $(Q) $(HOSTCC) $(HOSTLDFLAGS) $(HOST_OBJS) -o $@ +endif + context:: config.h $(HOST_BIN) clean:: +ifneq ($(CONFIG_EXAMPLES_FLOWC_TARGET2),y) $(call DELFILE, $(HOST_BIN)) $(call DELFILE, *.$(HOSTOBJSEXT)) $(call DELFILE, *.dSYM) - $(call DELFILE, config.h) - endif + $(call DELFILE, config.h) MODULE = $(CONFIG_EXAMPLES_FLOWC) diff --git a/examples/pf_ieee802154/.gitignore b/examples/pf_ieee802154/.gitignore index f91aeb748..b671b58e8 100644 --- a/examples/pf_ieee802154/.gitignore +++ b/examples/pf_ieee802154/.gitignore @@ -2,7 +2,6 @@ /.depend /.built /host -/config.h /*.asm /*.obj /*.rel diff --git a/examples/tcpblaster/Makefile b/examples/tcpblaster/Makefile index 9bb2c17ac..585b9c9e5 100644 --- a/examples/tcpblaster/Makefile +++ b/examples/tcpblaster/Makefile @@ -106,25 +106,35 @@ $(HOST_OBJS): %.$(HOSTOBJEXT): %.c @echo "CC: $<" $(Q) $(HOSTCC) -c $(HOSTCFLAGS) $< -o $@ +endif +endif + config.h: $(TOPDIR)/include/nuttx/config.h @echo "CP: $<" $(Q) cp $< $@ +ifneq ($(CONFIG_EXAMPLES_TCPBLASTER_TARGET2),y) +ifneq ($(CONFIG_EXAMPLES_TCPBLASTER_LOOPBACK),y) + $(HOST_BIN): config.h $(HOST_OBJS) @echo "LD: $@" $(Q) $(HOSTCC) $(HOSTLDFLAGS) $(HOST_OBJS) -o $@ +endif +endif + context:: config.h $(HOST_BIN) clean:: +ifneq ($(CONFIG_EXAMPLES_TCPBLASTER_TARGET2),y) +ifneq ($(CONFIG_EXAMPLES_TCPBLASTER_LOOPBACK),y) $(call DELFILE, *.$(HOSTOBJEXT)) $(call DELFILE, $(HOST_BIN)) $(call DELFILE, *.dSYM) +endif +endif $(call DELFILE, config.h) -endif -endif - MODULE = $(CONFIG_EXAMPLES_TCPBLASTER) include $(APPDIR)/Application.mk diff --git a/examples/udpblaster/Makefile b/examples/udpblaster/Makefile index 67e1add26..05e44539a 100644 --- a/examples/udpblaster/Makefile +++ b/examples/udpblaster/Makefile @@ -60,24 +60,27 @@ ifneq ($(CONFIG_EXAMPLES_UDPBLASTER_LOOPBACK),y) $(HOST_OBJS): %$(HOSTOBJEXT): %.c @echo "CC: $<" $(Q) $(HOSTCC) -c $(HOSTCFLAGS) $< -o $@ +endif config.h: $(TOPDIR)/include/nuttx/config.h @echo "CP: $<" $(Q) cp $< $@ +ifneq ($(CONFIG_EXAMPLES_UDPBLASTER_LOOPBACK),y) $(HOST_BIN): config.h $(HOST_OBJS) @echo "LD: $@" $(Q) $(HOSTCC) $(HOSTLDFLAGS) $(HOST_OBJS) -o $@ +endif context:: config.h $(HOST_BIN) clean:: +ifneq ($(CONFIG_EXAMPLES_UDPBLASTER_LOOPBACK),y) $(call DELFILE, *$(HOSTOBJEXT)) $(call DELFILE, $(HOST_BIN)) $(call DELFILE, *.dSYM) - $(call DELFILE, config.h) - endif + $(call DELFILE, config.h) MODULE = $(CONFIG_EXAMPLES_UDPBLASTER)