aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Kahrs <Juergen.Kahrs@googlemail.com>2013-03-19 12:01:50 +0100
committerJuergen Kahrs <Juergen.Kahrs@googlemail.com>2013-03-19 12:01:50 +0100
commit730a2388f18c57478fb0afa07b15947616f84c5a (patch)
tree7f624e0c7b27bd0d6ea6957f76a86faee3a37783
parent086cf8797aed3e6e2281456cff48e0c879f38813 (diff)
downloadegawk-730a2388f18c57478fb0afa07b15947616f84c5a.tar.gz
egawk-730a2388f18c57478fb0afa07b15947616f84c5a.tar.bz2
egawk-730a2388f18c57478fb0afa07b15947616f84c5a.zip
CMake can now compile for target S390 with embedian cross-compiler.
-rw-r--r--cmake/Toolchain_s390.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/cmake/Toolchain_s390.cmake b/cmake/Toolchain_s390.cmake
new file mode 100644
index 00000000..e1cdcfff
--- /dev/null
+++ b/cmake/Toolchain_s390.cmake
@@ -0,0 +1,20 @@
+# http://www.cmake.org/Wiki/CmakeMingw
+# http://www.cmake.org/Wiki/CMake_Cross_Compiling#The_toolchain_file
+# http://wiki.debian.org/EmdebianToolchain#Get_the_binaries
+
+# the name of the target operating system
+SET(CMAKE_SYSTEM_NAME Generic)
+
+# which compilers to use for C and C++
+SET(CMAKE_C_COMPILER /usr/bin/s390-linux-gnu-gcc-4.4)
+
+# here is the target environment located
+SET(CMAKE_FIND_ROOT_PATH /usr/s390-linux-gnu/)
+
+# adjust the default behaviour of the FIND_XXX() commands:
+# search headers and libraries in the target environment, search
+# programs in the host environment
+set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+