summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorISSOtm <eldredhabert0@gmail.com>2018-05-27 22:34:22 +0200
committerISSOtm <eldredhabert0@gmail.com>2018-05-27 22:34:22 +0200
commit8bf77fc996a9fef02f75095c3518e8d8f5a01824 (patch)
treed8b2e2df1a4e9b2fb6f78d310e3eb6ad26b092d7 /Makefile
parent6bd6e25eef4a57d1898d7aae0b3b09e6dc5f2695 (diff)
parent777d4840deac0436f6f24f271667feba47ba9e70 (diff)
Merge shims
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index daeea60..8dec7d4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,12 @@
.PHONY: all compare clean text
.SUFFIXES:
-.SUFFIXES: .asm .o .gbc .png
+.SUFFIXES: .asm .o .gb .png
.SECONDEXPANSION:
ROMS := pokegold-spaceworld.gb
BASEROM := baserom.gb
-OBJS := home.o main.o wram.o hram.o
+OBJS := home.o main.o wram.o hram.o shim.o
# Link objects together to build a rom.
all: $(ROMS) compare
@@ -26,6 +26,9 @@ $(foreach obj, $(OBJS), $(eval $(call DEP,$(obj),$(obj:.o=.asm))))
endif
+shim.asm: shim.sym
+ python3 tools/make_shim.py $^ > $@
+
$(ROMS): $(OBJS)
rgblink -d -n $(ROMS:.gb=.sym) -m $(ROMS:.gb=.map) -O $(BASEROM) -o $@ $^
rgbfix -f -v -k 01 -l 0x33 -m 0x03 -p 0 -r 3 -t "POKEMON2GOLD" $@
@@ -35,7 +38,7 @@ compare: $(ROMS) $(BASEROM)
# Remove files generated by the build process.
clean:
- rm -rf $(ROMS) $(OBJS) $(ROMS:.gbc=.sym) build/*
+ rm -rf $(ROMS) $(OBJS) $(ROMS:.gb=.sym) build/*
find . \( -iname '*.1bpp' -o -iname '*.2bpp' -o -iname '*.pcm' \) -exec rm {} +
%.2bpp: %.png
@@ -46,6 +49,3 @@ clean:
%.tilemap: %.png
rgbgfx -t $@ $<
-%.gbcpal: %.png
- rgbgfx -p $@ $<
-