# 'N.s' is made automatically from 'N.S' by running the C
# preprocessor, 'cpp'. The precise recipe is '$(CPP) $(CPPFLAGS)'.
-# Preprocessor
CPP := arm-none-eabi-cpp
CPPFLAGS :=
-# Assembler
AS := arm-none-eabi-as
ASFLAGS :=
-# C Compiler
CC := arm-none-eabi-gcc
CFLAGS := -march=armv7e-m+fp \
-mtune=cortex-m4 \
-Wstrict-prototypes \
-Wshadow \
-Wundef \
- -Wdouble-promotion
+ -Wdouble-promotion \
+ -Os
-# Linker
LD := arm-none-eabi-ld
LDFLAGS := -nostdlib
LDLIBS :=
-# objcopy
OC := arm-none-eabi-objcopy
OCFLAGS := --output-target=binary
-# Build
+# --------------------------------------------------------------------------- #
+
objs := kernel.o
lds := kernel.ld
LDFLAGS += -T $(lds)
elf := kernel.elf
bin := kernel.bin
-# Targets
+# --------------------------------------------------------------------------- #
+
all : $(bin)
clean :