summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/examples/nettest/Makefile2
-rw-r--r--apps/examples/udp/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/examples/nettest/Makefile b/apps/examples/nettest/Makefile
index 99410d47a..91bf220c4 100644
--- a/apps/examples/nettest/Makefile
+++ b/apps/examples/nettest/Makefile
@@ -116,7 +116,7 @@ all: .built $(HOST_BIN)
$(TARG_AOBJS): %$(OBJEXT): %.S
$(call ASSEMBLE, $<, $@)
-$(TARG_COBJS): %$(OBJEXT): %.c
+$(TARG_COBJS) $(TARG_MAINOBJ): %$(OBJEXT): %.c
$(call COMPILE, $<, $@)
$(HOST_OBJS): %$(HOSTOBJEXT): %.c
diff --git a/apps/examples/udp/Makefile b/apps/examples/udp/Makefile
index 7d0426026..91e34ba73 100644
--- a/apps/examples/udp/Makefile
+++ b/apps/examples/udp/Makefile
@@ -107,7 +107,7 @@ all: .built
$(TARG_AOBJS): %$(OBJEXT): %.S
$(call ASSEMBLE, $<, $@)
-$(TARG_COBJS): %$(OBJEXT): %.c
+$(TARG_COBJS) $(TARG_MAINOBJ): %$(OBJEXT): %.c
$(call COMPILE, $<, $@)
$(TARG_BIN): $(TARG_OBJS) $(HOST_BIN)