Add "testserver" target to Makefile.

This commit is contained in:
David Baird
2013-09-27 14:25:29 -06:00
parent d82fb91436
commit 7064856023
2 changed files with 26 additions and 1 deletions
+5 -1
View File
@@ -1,9 +1,13 @@
CXXFLAGS = -std=gnu++0x -Wall
LDLIBS = -lstdc++
.PHONY: all clean
all: example-client example-client-cpp11
all: example-client example-client-cpp11 testserver
clean:
-rm example-client example-client-cpp11 *.o
testserver: node_modules
node example-server.js
node_modules:
npm install
example-client-cpp11: example-client-cpp11.o easywsclient.o
example-client-cpp11.o: example-client-cpp11.cpp easywsclient.hpp
example-client: example-client.o easywsclient.o