-
Notifications
You must be signed in to change notification settings - Fork 6
/
amiga.cmake
18 lines (15 loc) · 725 Bytes
/
amiga.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# AMIGAAAAA
SET(CMAKE_SYSTEM_NAME Amiga)
SET(CMAKE_FIND_ROOT_PATH ${AMIGA_TOOLCHAIN_PATH})
# specify the cross compiler
SET(CMAKE_C_COMPILER "${AMIGA_TOOLCHAIN_PATH}/bin/m68k-amigaos-gcc")
SET(CMAKE_ASM-VASM_COMPILER "${AMIGA_TOOLCHAIN_PATH}/bin/vasmm68k_mot")
SET(CMAKE_CXX_COMPILER "${AMIGA_TOOLCHAIN_PATH}/bin/m68k-amigaos-g++")
# newest toolchain works for le3d but the cmake compiler check
# doesn't work due to linker errors :S
set(CMAKE_C_COMPILER_WORKS 1)
set(CMAKE_CXX_COMPILER_WORKS 1)
SET(CMAKE_C_FLAGS "-noixemul -m68060 -fomit-frame-pointer -mhard-float" CACHE STRING "" FORCE)
SET(CMAKE_CXX_FLAGS "-noixemul -m68060 -fomit-frame-pointer -mhard-float" CACHE STRING "" FORCE)
SET(UNIX false)
SET(AMIGA true)