Skip to content
Snippets Groups Projects
Commit 3a60c576 authored by Sergey Lyubka's avatar Sergey Lyubka
Browse files

Unit test target corrected

parent a8b38e4a
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,8 @@ ifeq ($(OS),Windows_NT) ...@@ -12,6 +12,8 @@ ifeq ($(OS),Windows_NT)
CFLAGS += $(CFLAGS_EXTRA) CFLAGS += $(CFLAGS_EXTRA)
else else
UNAME_S := $(shell uname -s) UNAME_S := $(shell uname -s)
CC = g++
CFLAGS += -lssl -g -O0
ifeq ($(UNAME_S),Linux) ifeq ($(UNAME_S),Linux)
CFLAGS += -ldl CFLAGS += -ldl
...@@ -56,7 +58,8 @@ websocket_html.c: websocket.html ...@@ -56,7 +58,8 @@ websocket_html.c: websocket.html
perl mkdata.pl $< > $@ perl mkdata.pl $< > $@
u: u:
g++ unit_test.c -Wall -W -pedantic -lssl -g -O0 $(CFLAGS_EXTRA) && ./a.out $(CC) unit_test.c $(OUT) $(CFLAGS)
./$@
clean: 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment