mirror of
https://github.com/ksherlock/mpw.git
synced 2024-06-06 19:29:45 +00:00
clean up makefiles a little bit.
This commit is contained in:
parent
981a1d02da
commit
97b6ce5f16
|
@ -17,18 +17,18 @@ set(CMAKE_C_EXTENSIONS FALSE)
|
|||
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
||||
# Clang or AppleClang
|
||||
set(CMAKE_CXX_FLAGS "-stdlib=libc++ -Wall -g")
|
||||
set(CMAKE_C_FLAGS "-Wall -g")
|
||||
add_compile_options(-g -Wall)
|
||||
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
|
||||
set(CMAKE_CXX_FLAGS "-Wall -g -Wno-unknown-pragmas")
|
||||
set(CMAKE_C_FLAGS "-Wall -g")
|
||||
add_compile_options(-g -Wall -Wno-unknown-pragmas)
|
||||
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
||||
|
||||
endif()
|
||||
|
||||
include_directories(${CMAKE_SOURCE_DIR})
|
||||
include_directories(${CMAKE_BINARY_DIR})
|
||||
|
||||
#
|
||||
# create the config.h file.
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
add_definitions(-I ${CMAKE_SOURCE_DIR}/)
|
||||
|
||||
|
||||
# add_custom_command(
|
||||
# OUTPUT lexer.cpp
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
set(CMAKE_C_FLAGS "-std=c99 -Wall -Wno-unused-function -g")
|
||||
add_compile_options(-g -Wall -Wno-unused-function)
|
||||
|
||||
set(CPU_SRC
|
||||
CpuModule.c
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
add_definitions(-I ${CMAKE_SOURCE_DIR}/)
|
||||
|
||||
set(MACOS_SRC traps.c sysequ.c errors.cpp)
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
add_definitions(-I ${CMAKE_SOURCE_DIR}/)
|
||||
|
||||
set(MPW_SRC mpw.cpp mpw_io.cpp mpw_close.cpp mpw_access.cpp mpw_ioctl.cpp mpw_errno.cpp
|
||||
environment.cpp)
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
add_definitions(-I ${CMAKE_SOURCE_DIR}/)
|
||||
add_definitions(-I ${CMAKE_BINARY_DIR}/)
|
||||
|
||||
set(NATIVE_SRC native.cpp ${CMAKE_SYSTEM_NAME}.cpp)
|
||||
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
add_definitions(-I ${CMAKE_SOURCE_DIR}/)
|
||||
add_definitions(-I ${CMAKE_BINARY_DIR}/)
|
||||
|
||||
set(TOOLBOX_SRC
|
||||
toolbox.cpp
|
||||
mm.cpp
|
||||
|
|
Loading…
Reference in New Issue
Block a user