From dcf6dca74b8baadb8fdade55aad9068a60c3d25e Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 17 Jun 2020 23:45:37 +0200 Subject: Hello! --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index fbfae14..3dac915 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,14 +20,14 @@ set(CMAKE_ASM_LINKER_PREFERENCE ${CMAKE_LINKER}) set(CMAKE_C_LINKER_PREFERENCE ${CMAKE_LINKER}) # Compiler and linker flags -set(CMAKE_C_FLAGS "-Wall -Wno-int-conversion -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdlib -nostdinc -ffreestanding -std=gnu99 -pedantic-errors -c -I${CMAKE_CURRENT_SOURCE_DIR}/src/lib/") +set(CMAKE_C_FLAGS "-Wall -Wextra -nostdlib -nostdinc -ffreestanding -std=gnu99 -pedantic-errors -c -I${CMAKE_CURRENT_SOURCE_DIR}/src/lib/") set(CMAKE_EXE_LINKER_FLAGS "-ffreestanding -O2 -nostdlib -nostdinc") -set(CMAKE_ASM_COMPILE_OBJECT " -o -f elf32 -O0") +set(CMAKE_ASM_COMPILE_OBJECT " -o -f bin -O0") set(CMAKE_C_LINK_EXECUTABLE " ${CMAKE_EXE_LINKER_FLAGS} -o ") set(CMAKE_ASM_LINK_EXECUTABLE " ${CMAKE_EXE_LINKER_FLAGS} -o ") # Recursive sources -file(GLOB_RECURSE sources src/*.c src/*.asm) +file(GLOB_RECURSE sources src/*.c) file(GLOB_RECURSE apps_sources apps/*.c) # MELVIX -- cgit v1.2.3