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

wirehaze git hosting

organize
[stm32f411ceu6.git] / Makefile
index eb4708a76161659f67a470445584c4c1f2bf4dd5..3c19779dd381e2ce818e91b41b5942198987d304 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -28,12 +28,11 @@ CFLAGS := -march=armv7e-m+fp \
                                        -std=gnu90 \
                                        -ffreestanding \
                                        -fsingle-precision-constant \
                                        -std=gnu90 \
                                        -ffreestanding \
                                        -fsingle-precision-constant \
-                                       -pedantic \
-                                       -pedantic-errors \
                                        -Wall \
                                        -Wextra \
                                        -Wconversion \
                                        -Wstrict-prototypes \
                                        -Wall \
                                        -Wextra \
                                        -Wconversion \
                                        -Wstrict-prototypes \
+                                       -Wmissing-prototypes \
                                        -Wshadow \
                                        -Wundef \
                                        -Wdouble-promotion \
                                        -Wshadow \
                                        -Wundef \
                                        -Wdouble-promotion \
@@ -48,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)