aboutsummaryrefslogtreecommitdiff
path: root/mubios/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mubios/Makefile')
-rw-r--r--mubios/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/mubios/Makefile b/mubios/Makefile
index df74430..bd5a934 100644
--- a/mubios/Makefile
+++ b/mubios/Makefile
@@ -38,7 +38,7 @@ S_SRCS := $(wildcard arch/*.S)
OBJS := $(patsubst %.c,$(BUILD_DIR)/%.o,$(C_SRCS)) \
$(patsubst %.S,$(BUILD_DIR)/%.o,$(S_SRCS))
-.PHONY: all elf rom
+.PHONY: all elf rom format
all: $(ROM)
@@ -46,6 +46,9 @@ elf: $(ELF)
rom: $(ROM)
+format:
+ clang-format -i $(C_SRCS) $(wildcard include/*.h)
+
$(ELF): $(OBJS) linker.ld
@mkdir -p $(dir $@)
$(LD) $(LDFLAGS) -o $@ $(OBJS)