aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-01 16:02:52 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-01 16:02:52 +0100
commitb5855f0e496f2f9267c9a3eb29191f2ed7a3cfef (patch)
tree1c46a8945a2efcd7848a7a3c7de8c8d004084562 /build.sh
parent6bd82cda5f609d4758cf5c430a32f8a4bb6c6ec8 (diff)
downloadqtmips-b5855f0e496f2f9267c9a3eb29191f2ed7a3cfef.tar.gz
qtmips-b5855f0e496f2f9267c9a3eb29191f2ed7a3cfef.tar.bz2
qtmips-b5855f0e496f2f9267c9a3eb29191f2ed7a3cfef.zip
Rework compilation so we don't have to use LD_LIBRARY_PATH
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/build.sh b/build.sh
index bfde7c4..6848d31 100755
--- a/build.sh
+++ b/build.sh
@@ -1,10 +1,14 @@
#!/bin/sh
-mkdir -p build
-
ROOT="$(dirname "$(readlink -f "$0")")"
+mkdir -p build
cd build
-qtchooser -run-tool=qmake -qt=5 "$ROOT"
-make sub-qtmips_cli sub-qtmips_gui
+# Compile
+qtchooser -run-tool=qmake -qt=5 "$ROOT" "QMAKE_RPATHDIR += ../qtmips_machine"
+make
+
+# Link executables to more suitable place
+ln -fs qtmips_cli/qtmips_cli cli
+ln -fs qtmips_gui/qtmips_gui gui