]> wirehaze git hosting - stm32f411ceu6.git/blobdiff - Makefile

wirehaze git hosting

restructure
[stm32f411ceu6.git] / Makefile
index f0ec81fe237821b2eb3c8a6c2b4d8edea4f0e4dd..24367adeca83cfda18ecf67c9be93d8381cac0c4 100644 (file)
--- 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)