aboutsummaryrefslogtreecommitdiff
path: root/build.sh
blob: 362a5b9415d9a5f2981a496755fc00b51462bb93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -e

ROOT="$(dirname "$(readlink -f "$0")")"

mkdir -p build
cd build

# Compile
qtchooser -run-tool=qmake -qt=5 -recursive "$ROOT" "QMAKE_RPATHDIR += ../qtmips_machine ../qtmips_osemu ../qtmips_asm"
make sub-qtmips_cli sub-qtmips_gui # Note: we are building these to to not build tests

# Link executables to more suitable place
ln -fs qtmips_cli/qtmips_cli cli
ln -fs qtmips_gui/qtmips_gui gui