diff options
-rw-r--r-- | apps/examples/nettest/Makefile | 19 | ||||
-rwxr-xr-x | nuttx/configs/stm3240g-eval/README.txt | 2 |
2 files changed, 10 insertions, 11 deletions
diff --git a/apps/examples/nettest/Makefile b/apps/examples/nettest/Makefile index 7ae5d4aff..9f9d79c77 100644 --- a/apps/examples/nettest/Makefile +++ b/apps/examples/nettest/Makefile @@ -54,10 +54,11 @@ TARG_COBJS = $(TARG_CSRCS:.c=$(OBJEXT)) TARG_SRCS = $(TARG_ASRCS) $(TARG_CSRCS) TARG_OBJS = $(TARG_AOBJS) $(TARG_COBJS) +TARG_POSIX = "$(APPDIR)/libapps$(LIBEXT)" ifeq ($(WINTOOL),y) TARG_BIN = "${shell cygpath -w $(APPDIR)/libapps$(LIBEXT)}" else - TARG_BIN = "$(APPDIR)/libapps$(LIBEXT)" + TARG_BIN = "$(TARG_POSIX)" endif HOSTCFLAGS += -DCONFIG_EXAMPLE_NETTEST_HOST=1 @@ -97,20 +98,18 @@ $(TARG_AOBJS): %$(OBJEXT): %.S $(TARG_COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(TARG_BIN): $(TARG_OBJS) $(HOST_BIN) - @( for obj in $(TARG_OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ - done ; ) - $(HOST_OBJS): %.o: %.c - @echo "CC: $<" + @echo "CC: $<" @$(HOSTCC) -c $(HOSTCFLAGS) $< -o $@ $(HOST_BIN): $(HOST_OBJS) - @echo "LD: $@" + @echo "LD: $@" @$(HOSTCC) $(HOSTLDFLAGS) $(HOST_OBJS) -o $@ -.built: $(TARG_BIN) $(HOST_BIN) +.built: $(HOST_BIN) $(TARG_OBJS) + @( for obj in $(TARG_OBJS) ; do \ + $(call ARCHIVE, $@, $${obj}); \ + done ; ) @touch .built .context: @@ -128,7 +127,7 @@ context: .context depend: .depend clean: - @rm -f $(TARG_BIN) $(HOST_BIN) .built *.o *~ .*.swp + @rm -f $(TARG_POSIX) $(HOST_BIN) .built *.o *~ .*.swp $(call CLEAN) distclean: clean diff --git a/nuttx/configs/stm3240g-eval/README.txt b/nuttx/configs/stm3240g-eval/README.txt index 8379b2fc9..a840e1699 100755 --- a/nuttx/configs/stm3240g-eval/README.txt +++ b/nuttx/configs/stm3240g-eval/README.txt @@ -452,7 +452,7 @@ Where <subdir> is one of the following: CONFIG_EXAMPLE_NETTEST_PERFORMANCE=y : Only network performance is verified. CONFIG_EXAMPLE_NETTEST_IPADDR=(10<<24|0<<16|0<<8|2) : Target side is IP: 10.0.0.2 CONFIG_EXAMPLE_NETTEST_DRIPADDR=(10<<24|0<<16|0<<8|1) : Host side is IP: 10.0.0.1 - CONFIG_EXAMPLE_NETTEST_CLIENTIP=(10<<24|0<<16|0<<8|1) : Server add + CONFIG_EXAMPLE_NETTEST_CLIENTIP=(10<<24|0<<16|0<<8|1) : Server address used by which ever is client. ostest: ------ |