From 84e469bef68f67cd56c4a643dcfc9d050c5cd398 Mon Sep 17 00:00:00 2001 From: Treeki Date: Mon, 20 Jan 2014 10:27:29 +0100 Subject: clean up build.sh a litlte --- build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index b28a816..c8cff18 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,9 @@ #!/bin/sh mkdir -p binary -g++ -o binary/nb4 -std=c++11 main.cpp socketcommon.cpp client.cpp mobileclient.cpp server.cpp netcore.cpp dns.cpp -lgnutls -pthread -g + +NETCODE="socketcommon.cpp client.cpp mobileclient.cpp server.cpp netcore.cpp" +SOURCES="$NETCODE main.cpp dns.cpp" +FLAGS="-std=c++11 -lgnutls -pthread -g" + +g++ -o binary/nb4 $FLAGS $SOURCES -- cgit v1.2.3