summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2014-01-20 10:27:29 +0100
committerTreeki <treeki@gmail.com>2014-01-20 10:27:29 +0100
commit84e469bef68f67cd56c4a643dcfc9d050c5cd398 (patch)
treed32060e589b9a6459a7211ccc09199c9e2327904 /build.sh
parentc82c6f3671206a945d4a40227246ec5df4460232 (diff)
downloadbounce4-84e469bef68f67cd56c4a643dcfc9d050c5cd398.tar.gz
bounce4-84e469bef68f67cd56c4a643dcfc9d050c5cd398.zip
clean up build.sh a litlte
Diffstat (limited to 'build.sh')
-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