# preprocessor, 'cpp'. The precise recipe is '$(CPP) $(CPPFLAGS)'.
CPP := arm-none-eabi-cpp
-CPPFLAGS :=
+CPPFLAGS := -I sys/include
AS := arm-none-eabi-as
ASFLAGS :=
-std=gnu90 \
-ffreestanding \
-fsingle-precision-constant \
- -pedantic \
- -pedantic-errors \
-Wall \
-Wextra \
-Wconversion \
-Wstrict-prototypes \
+ -Wmissing-prototypes \
-Wshadow \
-Wundef \
-Wdouble-promotion \
# --------------------------------------------------------------------------- #
-objs := kernel.o
+objs := $(patsubst %.c, %.o, $(wildcard sys/*/*.c))
lds := kernel.ld
LDFLAGS += -T $(lds)