Add "testserver" target to Makefile.
This commit is contained in:
@@ -1,9 +1,13 @@
|
|||||||
CXXFLAGS = -std=gnu++0x -Wall
|
CXXFLAGS = -std=gnu++0x -Wall
|
||||||
LDLIBS = -lstdc++
|
LDLIBS = -lstdc++
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
all: example-client example-client-cpp11
|
all: example-client example-client-cpp11 testserver
|
||||||
clean:
|
clean:
|
||||||
-rm example-client example-client-cpp11 *.o
|
-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: example-client-cpp11.o easywsclient.o
|
||||||
example-client-cpp11.o: example-client-cpp11.cpp easywsclient.hpp
|
example-client-cpp11.o: example-client-cpp11.cpp easywsclient.hpp
|
||||||
example-client: example-client.o easywsclient.o
|
example-client: example-client.o easywsclient.o
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"name": "easywsclient",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"description": "",
|
||||||
|
"main": "",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git://github.com/dhbaird/easywsclient.git"
|
||||||
|
},
|
||||||
|
"author": "David Baird <dhbaird@gmail.com>",
|
||||||
|
"license": "MIT",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/dhbaird/easywsclient/issues"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"ws": "~0.4.31"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user