diff options
author | UnavailableDev <ggwildplay@gmail.com> | 2023-04-04 14:34:03 +0200 |
---|---|---|
committer | UnavailableDev <ggwildplay@gmail.com> | 2023-04-04 14:34:03 +0200 |
commit | abfb6d3667e0c1955f09636ed72e48ed17129c84 (patch) | |
tree | 2245e26fe38e00c194fb9db5d53947c6572b7851 /src/makefile | |
parent | b125ec41bfc18c9beb652cff1a58e567304c9c32 (diff) | |
parent | 9df9b163852cd5fd2462e1dec25ad4b00ca12a8c (diff) |
Merge branch 'tilemap-build-system' into dev
Diffstat (limited to 'src/makefile')
-rw-r--r-- | src/makefile | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/makefile b/src/makefile index c30840d..ac67c86 100644 --- a/src/makefile +++ b/src/makefile @@ -82,7 +82,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 $@ @@ -103,4 +111,8 @@ PHONY += clean clean: $(RM) $(TARGET).bin $(TARGET).elf $(OBJS) +PHONY += distclean +distclean: clean + $(MAKE) -C static clean + .PHONY: $(PHONY) |