X-Git-Url: https://git.wirehaze.ovh/stm32f411ceu6.git/blobdiff_plain/8b035a8bab6355d1addd7440a92116e2e23e4419..6a64eec1a3c435b02452fc8b50d28bd4649278c3:/Makefile?ds=inline diff --git a/Makefile b/Makefile index f0ec81f..24367ad 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ # preprocessor, 'cpp'. The precise recipe is '$(CPP) $(CPPFLAGS)'. CPP := arm-none-eabi-cpp -CPPFLAGS := +CPPFLAGS := -I sys/include AS := arm-none-eabi-as ASFLAGS := @@ -32,6 +32,7 @@ CFLAGS := -march=armv7e-m+fp \ -Wextra \ -Wconversion \ -Wstrict-prototypes \ + -Wmissing-prototypes \ -Wshadow \ -Wundef \ -Wdouble-promotion \ @@ -46,7 +47,7 @@ OCFLAGS := --output-target=binary # --------------------------------------------------------------------------- # -objs := kernel.o kentry.o +objs := $(patsubst %.c, %.o, $(wildcard sys/*/*.c)) lds := kernel.ld LDFLAGS += -T $(lds)