X-Git-Url: https://git.wirehaze.ovh/stm32f411ceu6.git/blobdiff_plain/e5cf92b01c6b1b43f08b555340525cb24bf35b72..HEAD:/Makefile diff --git a/Makefile b/Makefile index df8f758..eb4708a 100644 --- a/Makefile +++ b/Makefile @@ -14,15 +14,12 @@ # 'N.s' is made automatically from 'N.S' by running the C # preprocessor, 'cpp'. The precise recipe is '$(CPP) $(CPPFLAGS)'. -# Preprocessor CPP := arm-none-eabi-cpp CPPFLAGS := -# Assembler AS := arm-none-eabi-as ASFLAGS := -# C Compiler CC := arm-none-eabi-gcc CFLAGS := -march=armv7e-m+fp \ -mtune=cortex-m4 \ @@ -39,18 +36,18 @@ CFLAGS := -march=armv7e-m+fp \ -Wstrict-prototypes \ -Wshadow \ -Wundef \ - -Wdouble-promotion + -Wdouble-promotion \ + -Os -# Linker LD := arm-none-eabi-ld LDFLAGS := -nostdlib LDLIBS := -# objcopy OC := arm-none-eabi-objcopy OCFLAGS := --output-target=binary -# Build +# --------------------------------------------------------------------------- # + objs := kernel.o lds := kernel.ld LDFLAGS += -T $(lds) @@ -58,7 +55,8 @@ LDFLAGS += -T $(lds) elf := kernel.elf bin := kernel.bin -# Targets +# --------------------------------------------------------------------------- # + all : $(bin) clean :