Unit test target corrected

This commit is contained in:
Sergey Lyubka 2014-04-07 19:07:41 +01:00
parent a8b38e4ab9
commit 3a60c5764d

View File

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