aboutsummaryrefslogtreecommitdiff
path: root/cmake/openwattcom/ow-cmake.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/openwattcom/ow-cmake.sh')
-rwxr-xr-xcmake/openwattcom/ow-cmake.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/cmake/openwattcom/ow-cmake.sh b/cmake/openwattcom/ow-cmake.sh
index cbccba0..2e6dbe5 100755
--- a/cmake/openwattcom/ow-cmake.sh
+++ b/cmake/openwattcom/ow-cmake.sh
@@ -1,8 +1,8 @@
#!/bin/bash
-export WATCOM=/home/wohlstand/Qt/Tools/ow-snapshot-2.0/
+export WATCOM=$HOME/Qt/Tools/ow-snapshot-2.0
export EDPATH=$WATCOM/eddat
export WIPFC=$WATCOM/wipfc
-export INCLUDE="$djgpp_prefix/lh"
+export INCLUDE="$WATCOM/lh"
WATCOM_FLAGS="-blinux"
export CFLAGS="$WATCOM_FLAGS -xc -std=wc"
export CXXFLAGS="$WATCOM_FLAGS -xc++ -xs -feh -std=c++11"
@@ -11,7 +11,8 @@ export CXXFLAGS="$WATCOM_FLAGS -xc++ -xs -feh -std=c++11"
# djgpp_c_flags="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4"
-CUSTOM_PATH=/home/wohlstand/_git_repos/libADLMIDI/cmake/openwattcom:${WATCOM}/binl:$PATH
+SCRIPT_PATH=$HOME/_git_repos/libADLMIDI/cmake/openwattcom
+CUSTOM_PATH=$SCRIPT_PATH:${WATCOM}/binl:$PATH
if [[ "$1" != '--build' ]]; then
echo "KEK [${CUSTOM_PATH}]"
@@ -24,7 +25,7 @@ if [[ "$1" != '--build' ]]; then
-DSYSCONF_INSTALL_DIR:PATH=${WATCOM}/etc \
-DSHARE_INSTALL_DIR:PATH=${WATCOM}/share \
-DBUILD_SHARED_LIBS:BOOL=OFF \
- -DCMAKE_TOOLCHAIN_FILE=/home/wohlstand/_git_repos/libADLMIDI/cmake/openwattcom/toolchain-ow.cmake \
+ -DCMAKE_TOOLCHAIN_FILE=$SCRIPT_PATH/toolchain-ow.cmake \
"$@"
else