summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh7
1 files changed, 6 insertions, 1 deletions
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