From 1cd0285b22755a21cbc367213a143ec33d298c95 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 22 Mar 2023 17:30:42 +0100 Subject: add static makefile targets to main gamefile, and add target to flash static rom to stm32 --- src/makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/makefile') diff --git a/src/makefile b/src/makefile index cd248e2..51ce7e9 100644 --- a/src/makefile +++ b/src/makefile @@ -78,7 +78,15 @@ $(TARGET).bin: $(TARGET).elf PHONY += flash flash: $(TARGET).bin - st-flash --reset write $(TARGET).bin 0x08000000 + st-flash --reset write $< 0x08000000 + +# see definition of g_hh_tilemap_rom in stm32/setup.c +PHONY += rom +rom: static/tilemap.bin + st-flash --reset write $< 0x08033000 + +static/tilemap.bin static/tilemap.h &: + $(MAKE) -C static all %-ds.o: %.c $(CC) -c $(CFLAGS) $< -o $@ @@ -99,4 +107,8 @@ PHONY += clean clean: $(RM) $(TARGET).bin $(TARGET).elf $(OBJS) +PHONY += distclean +distclean: clean + $(MAKE) -C static clean + .PHONY: $(PHONY) -- cgit v1.2.3