From ed3ede06e1bc5886312b9f4856936ec354ca428a Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 13 Nov 2017 13:34:47 +0200 Subject: [PATCH] samples: net: sockets: Reinstate POSIX Makefiles. All current socket samples as one of the points show portability to POSIX platforms, and provide POSIX makefiles to let user build such a version of application easily. These Makefiles were lost during CMake conversion. Signed-off-by: Paul Sokolovsky --- samples/net/sockets/dumb_http_server/Makefile.posix | 7 +++++++ samples/net/sockets/echo/Makefile.posix | 4 ++++ samples/net/sockets/echo_async/Makefile.posix | 4 ++++ samples/net/sockets/http_get/Makefile.posix | 4 ++++ 4 files changed, 19 insertions(+) create mode 100644 samples/net/sockets/dumb_http_server/Makefile.posix create mode 100644 samples/net/sockets/echo/Makefile.posix create mode 100644 samples/net/sockets/echo_async/Makefile.posix create mode 100644 samples/net/sockets/http_get/Makefile.posix diff --git a/samples/net/sockets/dumb_http_server/Makefile.posix b/samples/net/sockets/dumb_http_server/Makefile.posix new file mode 100644 index 00000000000..54b8416d622 --- /dev/null +++ b/samples/net/sockets/dumb_http_server/Makefile.posix @@ -0,0 +1,7 @@ +# This makefile builds socket_echo sample for POSIX system, like Linux +# +# Before using this Makefile, run Zephyr build process once to generate +# include files. + +socket_dumb_http: src/socket_dumb_http.c + $(CC) $^ -o $@ diff --git a/samples/net/sockets/echo/Makefile.posix b/samples/net/sockets/echo/Makefile.posix new file mode 100644 index 00000000000..7bf5def40dd --- /dev/null +++ b/samples/net/sockets/echo/Makefile.posix @@ -0,0 +1,4 @@ +# This makefile builds socket_echo sample for POSIX system, like Linux + +socket_echo: src/socket_echo.c + $(CC) $^ -o $@ diff --git a/samples/net/sockets/echo_async/Makefile.posix b/samples/net/sockets/echo_async/Makefile.posix new file mode 100644 index 00000000000..a166f75d2c2 --- /dev/null +++ b/samples/net/sockets/echo_async/Makefile.posix @@ -0,0 +1,4 @@ +# This makefile builds sample for POSIX system, like Linux + +socket_echo: src/socket_echo.c + $(CC) $^ -o $@ diff --git a/samples/net/sockets/http_get/Makefile.posix b/samples/net/sockets/http_get/Makefile.posix new file mode 100644 index 00000000000..7f0573c2f70 --- /dev/null +++ b/samples/net/sockets/http_get/Makefile.posix @@ -0,0 +1,4 @@ +# This makefile builds the sample for a POSIX system, like Linux + +http_get: src/http_get.c + $(CC) $^ -o $@