aboutsummaryrefslogtreecommitdiff
path: root/build.sh
blob: 3d6ab611c12152b7d9b8e4eea507f3e22ec5f4e9 (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 "$ROOT" "QMAKE_RPATHDIR += ../qtmips_machine"
make -j$(nproc) 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