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

wirehaze git hosting

organize
[stm32f411ceu6.git] / Makefile
index b864e5a312d25e8788f64c8aa0b8eee9658e84c2..3c19779dd381e2ce818e91b41b5942198987d304 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,7 @@ CFLAGS := -march=armv7e-m+fp \
                                        -Wextra \
                                        -Wconversion \
                                        -Wstrict-prototypes \
                                        -Wextra \
                                        -Wconversion \
                                        -Wstrict-prototypes \
+                                       -Wmissing-prototypes \
                                        -Wshadow \
                                        -Wundef \
                                        -Wdouble-promotion \
                                        -Wshadow \
                                        -Wundef \
                                        -Wdouble-promotion \
@@ -46,7 +47,7 @@ OCFLAGS := --output-target=binary
 
 #  ---------------------------------------------------------------------------  #
 
 
 #  ---------------------------------------------------------------------------  #
 
-objs := kernel.o
+objs := $(patsubst %.c, %.o, $(wildcard *.c))
 lds := kernel.ld
 LDFLAGS += -T $(lds)
 
 lds := kernel.ld
 LDFLAGS += -T $(lds)