From 3a60c5764db7e942c8610a43c13209dade3cde41 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Mon, 7 Apr 2014 19:07:41 +0100 Subject: [PATCH] Unit test target corrected --- examples/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index 400223d6e..0976788a5 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -12,6 +12,8 @@ ifeq ($(OS),Windows_NT) CFLAGS += $(CFLAGS_EXTRA) else UNAME_S := $(shell uname -s) + CC = g++ + CFLAGS += -lssl -g -O0 ifeq ($(UNAME_S),Linux) CFLAGS += -ldl @@ -56,7 +58,8 @@ websocket_html.c: websocket.html perl mkdata.pl $< > $@ u: - g++ unit_test.c -Wall -W -pedantic -lssl -g -O0 $(CFLAGS_EXTRA) && ./a.out + $(CC) unit_test.c $(OUT) $(CFLAGS) + ./$@ clean: - -@$(RM) hello mjpg upload post websocket auth server multi_threaded websocket_html.c *.exe *.dSYM *.obj .*o + -@$(RM) hello mjpg upload post websocket auth server multi_threaded websocket_html.c *.exe *.dSYM *.obj .*o u a.out -- GitLab