aboutsummaryrefslogtreecommitdiff
path: root/cmake/openwattcom-dos/toolchain-ow.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/openwattcom-dos/toolchain-ow.cmake')
-rw-r--r--cmake/openwattcom-dos/toolchain-ow.cmake12
1 files changed, 10 insertions, 2 deletions
diff --git a/cmake/openwattcom-dos/toolchain-ow.cmake b/cmake/openwattcom-dos/toolchain-ow.cmake
index cff87e8..0adece2 100644
--- a/cmake/openwattcom-dos/toolchain-ow.cmake
+++ b/cmake/openwattcom-dos/toolchain-ow.cmake
@@ -5,7 +5,9 @@ SET(CMAKE_SYSTEM_VERSION 6)
set (OPENWATTCOM TRUE)
set (MSDOS TRUE)
-set (WATCOM_PREFIX "$ENV{HOME}/Qt/Tools/ow-snapshot-2.0")
+set (WATCOM_PREFIX "/opt/watcom")
+
+#add_definitions(-D__WATCOMC__ -D__DOS__ -D__DOS4G__)
set (ENV{PATH} ${WATCOM_PREFIX}/binl:$ENV{PATH})
set (ENV{WATCOM} ${WATCOM_PREFIX})
@@ -17,6 +19,13 @@ set (ENV{WIPFC} ${WATCOM_PREFIX}/wipfc)
set (CMAKE_C_COMPILER ${WATCOM_PREFIX}/binl/owcc)
set (CMAKE_CXX_COMPILER ${WATCOM_PREFIX}/binl/owcc)
+set (WATCOM_FLAGS "-bdos4g -march=i386")
+set (CMAKE_C_FLAGS "${WATCOM_FLAGS} -x c -std=wc")
+set (CMAKE_CXX_FLAGS "${WATCOM_FLAGS} -xc++ -xs -feh -frtti -std=c++98")
+set (CMAKE_EXE_LINKER_FLAGS "")
+# export CFLAGS="$WATCOM_FLAGS -x c -std=wc"
+# export CXXFLAGS="$WATCOM_FLAGS -x c++ -xs -feh -frtti -std=c++98"
+
# where is the target environment
set (CMAKE_FIND_ROOT_PATH ${WATCOM_PREFIX})
@@ -40,4 +49,3 @@ set (QT_INCLUDE_DIRS_NO_SYSTEM ON)
# include(Linux-OpenWatcom.cmake)
-