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 <paul.sokolovsky@linaro.org>
This commit is contained in:
Paul Sokolovsky 2017-11-13 13:34:47 +02:00 committed by Anas Nashif
parent 85be9db682
commit ed3ede06e1
4 changed files with 19 additions and 0 deletions

View File

@ -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 $@

View File

@ -0,0 +1,4 @@
# This makefile builds socket_echo sample for POSIX system, like Linux
socket_echo: src/socket_echo.c
$(CC) $^ -o $@

View File

@ -0,0 +1,4 @@
# This makefile builds sample for POSIX system, like Linux
socket_echo: src/socket_echo.c
$(CC) $^ -o $@

View File

@ -0,0 +1,4 @@
# This makefile builds the sample for a POSIX system, like Linux
http_get: src/http_get.c
$(CC) $^ -o $@