summaryrefslogtreecommitdiff
path: root/nuttx/examples/nettest/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-11-16 18:48:39 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-11-16 18:48:39 +0000
commit66fa9eb830939b33a268b24573f9fdf59850dac5 (patch)
treef520073b0832172588d8021184f8833548e08d5b /nuttx/examples/nettest/Makefile
parentd6100fb0fad57df531e0774793d188e899943852 (diff)
downloadpx4-nuttx-66fa9eb830939b33a268b24573f9fdf59850dac5.tar.gz
px4-nuttx-66fa9eb830939b33a268b24573f9fdf59850dac5.tar.bz2
px4-nuttx-66fa9eb830939b33a268b24573f9fdf59850dac5.zip
Basic server functionality: listen(), accept()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@382 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nettest/Makefile')
-rw-r--r--nuttx/examples/nettest/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/nuttx/examples/nettest/Makefile b/nuttx/examples/nettest/Makefile
index 185b5b669..55cb4d30f 100644
--- a/nuttx/examples/nettest/Makefile
+++ b/nuttx/examples/nettest/Makefile
@@ -42,7 +42,7 @@ TARG_ASRCS =
TARG_AOBJS = $(TARG_ASRCS:.S=$(OBJEXT))
TARG_CSRCS = nettest.c
-ifeq ($(CONFIG_NETTEST_SERVER),y)
+ifeq ($(CONFIG_EXAMPLE_NETTEST_SERVER),y)
TARG_CSRCS += nettest-server.c
else
TARG_CSRCS += nettest-client.c
@@ -55,13 +55,14 @@ TARG_OBJS = $(TARG_AOBJS) $(TARG_COBJS)
TARG_BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
-HOSTCFLAGS += -DCONFIG_NETTEST_HOST=1
-ifeq ($(CONFIG_NETTEST_SERVER),y)
-HOSTCFLAGS += -DCONFIG_NETTEST_SERVER=1
+HOSTCFLAGS += -DCONFIG_EXAMPLE_NETTEST_HOST=1
+ifeq ($(CONFIG_EXAMPLE_NETTEST_SERVER),y)
+HOSTCFLAGS += -DCONFIG_EXAMPLE_NETTEST_SERVER=1 \
+ -DCONFIG_EXAMPLE_NETTEST_CLIENTIP="$(CONFIG_EXAMPLE_NETTEST_CLIENTIP)"
endif
HOST_SRCS = host.c
-ifeq ($(CONFIG_NETTEST_SERVER),y)
+ifeq ($(CONFIG_EXAMPLE_NETTEST_SERVER),y)
HOST_SRCS += nettest-client.c
else
HOST_SRCS += nettest-server.c