Commit 6f1e963f authored by Alex Hultman's avatar Alex Hultman

Update Makefiles, add "make tests"

parent 043bc34b
CPP_SHARED := -std=c++11 -O3 -I src -shared -fPIC src/Extensions.cpp src/Group.cpp src/WebSocketImpl.cpp src/Networking.cpp src/Hub.cpp src/Node.cpp src/WebSocket.cpp src/HTTPSocket.cpp src/Socket.cpp src/Epoll.cpp
CPP_SHARED := -std=c++11 -O3 -I src -shared -fPIC src/Extensions.cpp src/Group.cpp src/Networking.cpp src/Hub.cpp src/Node.cpp src/WebSocket.cpp src/HTTPSocket.cpp src/Socket.cpp src/Epoll.cpp
CPP_OSX := -stdlib=libc++ -mmacosx-version-min=10.7 -undefined dynamic_lookup
default:
make `(uname -s)`
Linux:
g++ $(CPPFLAGS) $(CFLAGS) $(CPP_SHARED) -s -o libuWS.so
$(CXX) $(CPPFLAGS) $(CFLAGS) $(CPP_SHARED) -s -o libuWS.so
Darwin:
g++ $(CPPFLAGS) $(CFLAGS) $(CPP_SHARED) $(CPP_OSX) -o libuWS.dylib
$(CXX) $(CPPFLAGS) $(CFLAGS) $(CPP_SHARED) $(CPP_OSX) -o libuWS.dylib
.PHONY: install
install:
make install`(uname -s)`
......@@ -24,3 +24,6 @@ installDarwin:
clean:
rm -f libuWS.so
rm -f libuWS.dylib
.PHONY: tests
tests:
$(CXX) -std=c++11 tests/main.cpp -Isrc -o testsBin -lpthread -luWS -lssl -lcrypto -lz -luv
......@@ -3,10 +3,10 @@ default:
$(CXX) -std=c++11 -O3 throughput.cpp -s -o throughput -luv
$(CXX) -std=c++11 -O3 scalability_socketio.cpp -s -o scalability_socketio -lpthread
$(CXX) -std=c++11 -O3 throughput_socketio.cpp -s -o throughput_socketio -luv
$(CXX) -std=c++11 -O3 -I ../src ../src/Extensions.cpp ../src/Group.cpp ../src/WebSocketImpl.cpp ../src/Networking.cpp ../src/Hub.cpp ../src/Node.cpp ../src/WebSocket.cpp ../src/HTTPSocket.cpp ../src/Socket.cpp ../src/Epoll.cpp uWS.cpp -o uWS_epoll -lcrypto -lssl -lz -s
$(CXX) -DUWS_THREADSAFE -std=c++11 -O3 -I ../src ../src/Extensions.cpp ../src/Group.cpp ../src/WebSocketImpl.cpp ../src/Networking.cpp ../src/Hub.cpp ../src/Node.cpp ../src/WebSocket.cpp ../src/HTTPSocket.cpp ../src/Socket.cpp ../src/Epoll.cpp uWS.cpp -o uWS_threadsafe -lcrypto -lssl -lz -s
$(CXX) -DUSE_LIBUV -std=c++11 -O3 -I ../src ../src/Extensions.cpp ../src/Group.cpp ../src/WebSocketImpl.cpp ../src/Networking.cpp ../src/Hub.cpp ../src/Node.cpp ../src/WebSocket.cpp ../src/HTTPSocket.cpp ../src/Socket.cpp ../src/Epoll.cpp uWS.cpp -o uWS_libuv -luv -lcrypto -lssl -lz -s
$(CXX) -DUSE_ASIO -std=c++11 -O3 -I ../src ../src/Extensions.cpp ../src/Group.cpp ../src/WebSocketImpl.cpp ../src/Networking.cpp ../src/Hub.cpp ../src/Node.cpp ../src/WebSocket.cpp ../src/HTTPSocket.cpp ../src/Socket.cpp ../src/Epoll.cpp uWS.cpp -o uWS_asio -lboost_system -lcrypto -lssl -lz -s
$(CXX) -std=c++11 -O3 -I ../src ../src/Extensions.cpp ../src/Group.cpp ../src/Networking.cpp ../src/Hub.cpp ../src/Node.cpp ../src/WebSocket.cpp ../src/HTTPSocket.cpp ../src/Socket.cpp ../src/Epoll.cpp uWS.cpp -o uWS_epoll -lcrypto -lssl -lz -s
$(CXX) -DUWS_THREADSAFE -std=c++11 -O3 -I ../src ../src/Extensions.cpp ../src/Group.cpp ../src/Networking.cpp ../src/Hub.cpp ../src/Node.cpp ../src/WebSocket.cpp ../src/HTTPSocket.cpp ../src/Socket.cpp ../src/Epoll.cpp uWS.cpp -o uWS_threadsafe -lcrypto -lssl -lz -s
$(CXX) -DUSE_LIBUV -std=c++11 -O3 -I ../src ../src/Extensions.cpp ../src/Group.cpp ../src/Networking.cpp ../src/Hub.cpp ../src/Node.cpp ../src/WebSocket.cpp ../src/HTTPSocket.cpp ../src/Socket.cpp ../src/Epoll.cpp uWS.cpp -o uWS_libuv -luv -lcrypto -lssl -lz -s
$(CXX) -DUSE_ASIO -std=c++11 -O3 -I ../src ../src/Extensions.cpp ../src/Group.cpp ../src/Networking.cpp ../src/Hub.cpp ../src/Node.cpp ../src/WebSocket.cpp ../src/HTTPSocket.cpp ../src/Socket.cpp ../src/Epoll.cpp uWS.cpp -o uWS_asio -lboost_system -lcrypto -lssl -lz -s
$(CXX) -std=c++11 -O3 wsPP.cpp -s -o wsPP -lpthread -lboost_system -lboost_random -lssl -lcrypto
$(CXX) -std=c++11 -O3 -I../../crow/include crow.cpp -lboost_system -lpthread -o crow
$(CXX) -std=c++11 -O3 beast.cpp -I ../../Beast/examples -I ../../Beast/include -lpthread -lboost_system -o beast
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment