From 6082c42751e8308a763aada8a3f9fa980efe18da Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 13 Dec 2011 19:58:24 +0000 Subject: Fix more STM32 ethernet bugs; Fix some build issues with examples/nettest git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4171 42af7a65-404d-4744-a932-0658087f49c3 --- apps/examples/nettest/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'apps/examples/nettest/Makefile') diff --git a/apps/examples/nettest/Makefile b/apps/examples/nettest/Makefile index 9f9d79c77..ac07665ab 100644 --- a/apps/examples/nettest/Makefile +++ b/apps/examples/nettest/Makefile @@ -66,6 +66,11 @@ ifeq ($(CONFIG_EXAMPLE_NETTEST_SERVER),y) HOSTCFLAGS += -DCONFIG_EXAMPLE_NETTEST_SERVER=1 \ -DCONFIG_EXAMPLE_NETTEST_CLIENTIP="$(CONFIG_EXAMPLE_NETTEST_CLIENTIP)" endif +ifeq ($(CONFIG_EXAMPLE_NETTEST_PERFORMANCE),y) +HOSTCFLAGS += -DCONFIG_EXAMPLE_NETTEST_PERFORMANCE=1 +endif + + HOST_SRCS = host.c ifeq ($(CONFIG_EXAMPLE_NETTEST_SERVER),y) @@ -89,7 +94,7 @@ STACKSIZE = 2048 VPATH = -all: .built +all: .built $(HOST_BIN) .PHONY: clean depend disclean $(TARG_AOBJS): %$(OBJEXT): %.S @@ -106,9 +111,9 @@ $(HOST_BIN): $(HOST_OBJS) @echo "LD: $@" @$(HOSTCC) $(HOSTLDFLAGS) $(HOST_OBJS) -o $@ -.built: $(HOST_BIN) $(TARG_OBJS) +.built: $(TARG_OBJS) @( for obj in $(TARG_OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(TARG_BIN), $${obj}); \ done ; ) @touch .built -- cgit v1.2.3