X-Git-Url: https://git.wirehaze.ovh/stm32f411ceu6.git/blobdiff_plain/4760553fdcf14fbf9b1a060f83be0b265bd05d8c..cef403c131fbb65f09837b0501b7e558e1462765:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index eb4708a..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 := @@ -28,12 +28,11 @@ CFLAGS := -march=armv7e-m+fp \ -std=gnu90 \ -ffreestanding \ -fsingle-precision-constant \ - -pedantic \ - -pedantic-errors \ -Wall \ -Wextra \ -Wconversion \ -Wstrict-prototypes \ + -Wmissing-prototypes \ -Wshadow \ -Wundef \ -Wdouble-promotion \ @@ -48,7 +47,7 @@ OCFLAGS := --output-target=binary # --------------------------------------------------------------------------- # -objs := kernel.o +objs := $(patsubst %.c, %.o, $(wildcard sys/*/*.c)) lds := kernel.ld LDFLAGS += -T $(lds)