Mercurial > hg > Members > tobaru > CbC_xv6
diff src/CMakeLists.txt @ 47:233a68a261fe
ifdef cbcxv6
author | mir3636 |
---|---|
date | Thu, 07 Mar 2019 19:42:27 +0900 (2019-03-07) |
parents | 5f19e9554c30 |
children | 214d21c891c7 |
line wrap: on
line diff
--- a/src/CMakeLists.txt Sun Mar 03 17:39:45 2019 +0900 +++ b/src/CMakeLists.txt Thu Mar 07 19:42:27 2019 +0900 @@ -5,11 +5,17 @@ # -DUSE_CUDA # add_definitions("-Wall -g -O") -set(CMAKE_C_COMPILER $ENV{CBC_COMPILER}) -add_definitions("-Wall -g -arch arm -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -Werror -I. -g -O0 - -Wno-macro-redefined -Wno-gnu-designator -Wno-sometimes-uninitialized -Wno-tautological-compare - -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include - -Wno-nullability-completeness -Wno-expansion-to-defined") +if (APPLE) + set(CMAKE_C_COMPILER $ENV{CBC_LANG_COMPILER}) + add_definitions("-Wall -g -arch arm -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -Werror -I. -g -O0 + -Wno-macro-redefined -Wno-gnu-designator -Wno-sometimes-uninitialized -Wno-tautological-compare + -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include + -Wno-nullability-completeness -Wno-expansion-to-defined") +else (APPLE) + set(CMAKE_C_COMPILER /mnt/dalmore-home/one/src/armgcc/cross/bin/arm-none-eabi-gcc) + add_definitions("-B/mnt/dalmore-home/one/src/armgcc/cross/bin/arm-none-eabi- + -DCBCXV6=1 -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -I. -g -O0") +endif (APPLE) # -DCMAKE_BUILD_TYPE=Debug set(CMAKE_C_FLAGS_DEBUG "-O0") @@ -74,7 +80,7 @@ TARGET kernel SOURCES - lib/string.c arm.c asm.S bio.c buddy.c console.c exec.c file.c fs.c log.c main.c memide.c pipe.c proc.c spinlock.c + lib/string.c arm.c asm.S bio.c buddy.c console.cbc exec.c file.c fs.c log.c main.c memide.c pipe.c proc.c spinlock.c start.c swtch.S syscall.c sysfile.c sysproc.c trap_asm.S trap.c vm.c device/picirq.c device/timer.c device/uart.c entry-osx.S )