summaryrefslogtreecommitdiffstats
path: root/apps/examples/nettest/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-12 15:22:27 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-12 15:22:27 +0000
commit333b9449c02c242229449e8a35023d740f2e93f7 (patch)
tree9604398fcf5bb52a4d12b0e6b1d8b377880227f2 /apps/examples/nettest/Makefile
parentdd91ab3f35500a0a13a7dced870ea5c6f9ad3765 (diff)
Changes to get a clean ez80 build using the ZDS 5.1.1 toolchain
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5341 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/nettest/Makefile')
-rw-r--r--apps/examples/nettest/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/apps/examples/nettest/Makefile b/apps/examples/nettest/Makefile
index 979a2391ee..0e4f972ee1 100644
--- a/apps/examples/nettest/Makefile
+++ b/apps/examples/nettest/Makefile
@@ -54,11 +54,14 @@ TARG_COBJS = $(TARG_CSRCS:.c=$(OBJEXT))
TARG_SRCS = $(TARG_ASRCS) $(TARG_CSRCS)
TARG_OBJS = $(TARG_AOBJS) $(TARG_COBJS)
-TARG_POSIX = "$(APPDIR)/libapps$(LIBEXT)"
+ifeq ($(CONFIG_WINDOWS_NATIVE),y)
+ TARG_BIN = ..\..\libapps$(LIBEXT)
+else
ifeq ($(WINTOOL),y)
- TARG_BIN = "${shell cygpath -w $(APPDIR)/libapps$(LIBEXT)}"
+ TARG_BIN = ..\\..\\libapps$(LIBEXT)
else
- TARG_BIN = "$(TARG_POSIX)"
+ TARG_BIN = ../../libapps$(LIBEXT)
+endif
endif
HOSTCFLAGS += -DCONFIG_EXAMPLES_NETTEST_HOST=1
@@ -70,8 +73,6 @@ ifeq ($(CONFIG_EXAMPLES_NETTEST_PERFORMANCE),y)
HOSTCFLAGS += -DCONFIG_EXAMPLES_NETTEST_PERFORMANCE=1
endif
-
-
HOST_SRCS = host.c
ifeq ($(CONFIG_EXAMPLES_NETTEST_SERVER),y)
HOST_SRCS += nettest_client.c
@@ -130,7 +131,7 @@ context: .context
depend: .depend
clean:
- @rm -f $(TARG_POSIX) $(HOST_BIN) .built *.o *~ .*.swp
+ @rm -f $(HOST_BIN) .built *.o *~ .*.swp
$(call CLEAN)
distclean: clean