summaryrefslogtreecommitdiff
path: root/apps/examples/udp/Makefile
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-01-22 15:30:23 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-01-22 15:30:23 -0600
commit2cc14127f8d9c90c14a369d0ba935b3643e254da (patch)
treeccc333f97cb6bbc925ad2f9a2216cbfb8205e4c0 /apps/examples/udp/Makefile
parent421a14767a16b25a4bd7c6cda472cb1f3e0204aa (diff)
downloadnuttx-2cc14127f8d9c90c14a369d0ba935b3643e254da.tar.gz
nuttx-2cc14127f8d9c90c14a369d0ba935b3643e254da.tar.bz2
nuttx-2cc14127f8d9c90c14a369d0ba935b3643e254da.zip
apps/examples/udp: The UDP test example has been extend to support IPv6 domain sockets
Diffstat (limited to 'apps/examples/udp/Makefile')
-rw-r--r--apps/examples/udp/Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/apps/examples/udp/Makefile b/apps/examples/udp/Makefile
index 91e34ba73..156164ee4 100644
--- a/apps/examples/udp/Makefile
+++ b/apps/examples/udp/Makefile
@@ -70,11 +70,7 @@ else
endif
endif
-HOSTCFLAGS += -DCONFIG_EXAMPLES_UDP_HOST=1
-ifeq ($(CONFIG_EXAMPLES_UDP_SERVER),y)
-HOSTCFLAGS += -DCONFIG_EXAMPLES_UDP_SERVER=1 \
- -DCONFIG_EXAMPLES_UDP_SERVERIP="$(CONFIG_EXAMPLES_UDP_SERVERIP)"
-endif
+HOSTCFLAGS += -DEXAMPLES_UDP_HOST=1
HOST_SRCS = host.c
ifeq ($(CONFIG_EXAMPLES_UDP_SERVER),y)
@@ -114,13 +110,18 @@ $(TARG_BIN): $(TARG_OBJS) $(HOST_BIN)
$(call ARCHIVE, $@, $(TARG_OBJS))
$(HOST_OBJS): %.o: %.c
- $(HOSTCC) -c $(HOSTCFLAGS) $< -o $@
+ @echo "CC: $<"
+ $(Q) $(HOSTCC) -c $(HOSTCFLAGS) $< -o $@
+
+config.h: $(TOPDIR)/include/nuttx/config.h
+ @echo "CP: $<"
+ $(Q) cp $< $@
-$(HOST_BIN): $(HOST_OBJS)
- $(HOSTCC) $(HOSTLDFLAGS) $(HOST_OBJS) -o $@
+$(HOST_BIN): config.h $(HOST_OBJS)
+ $(Q) $(HOSTCC) $(HOSTLDFLAGS) $(HOST_OBJS) -o $@
-.built: $(TARG_BIN) $(HOST_BIN)
- @touch .built
+.built: config.h $(TARG_BIN) $(HOST_BIN)
+ $(Q) touch .built
ifeq ($(CONFIG_BUILD_KERNEL),y)
$(BIN_DIR)$(DELIM)$(PROGNAME): $(OBJS) $(TARG_MAINOBJ)
@@ -148,6 +149,7 @@ clean:
$(call DELFILE, $(TARG_BIN))
$(call DELFILE, $(HOST_BIN))
$(call DELFILE, *.dSYM)
+ $(call DELFILE, config.h)
$(call CLEAN)
distclean: clean