aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2020-06-27 15:32:24 -0400
committerGitHub <noreply@github.com>2020-06-27 15:32:24 -0400
commit4b853ad676e061a6c4b0fcc030855a2705776864 (patch)
treea6d6f2976827862f4a5f402e92c8479ccf7fb349 /Makefile
parentMerge pull request #250 from Rangi42/master (diff)
downloadpokeyellow-4b853ad676e061a6c4b0fcc030855a2705776864.tar.gz
pokeyellow-4b853ad676e061a6c4b0fcc030855a2705776864.tar.xz
pokeyellow-4b853ad676e061a6c4b0fcc030855a2705776864.zip
Separate maps.asm, pics.asm, sprites.asm, and tilesets.asm from main.asm (#251)
Each new file builds its own .o, along with separate main.o and home.o, which necessitates many more "exported::" labels.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 04a08e05..59e593e8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,18 @@
roms := pokered.gbc pokeblue.gbc
-pokered_obj := audio_red.o main_red.o text_red.o wram_red.o
-pokeblue_obj := audio_blue.o main_blue.o text_blue.o wram_blue.o
+rom_obj := \
+audio.o \
+home.o \
+main.o \
+maps.o \
+pics.o \
+sprites.o \
+text.o \
+tilesets.o \
+wram.o \
+
+pokered_obj := $(rom_obj:.o=_red.o)
+pokeblue_obj := $(rom_obj:.o=_blue.o)
### Build tools
@@ -65,7 +76,7 @@ pokered_opt = -jsv -k 01 -l 0x33 -m 0x13 -p 0 -r 03 -t "POKEMON RED"
pokeblue_opt = -jsv -k 01 -l 0x33 -m 0x13 -p 0 -r 03 -t "POKEMON BLUE"
%.gbc: $$(%_obj)
- $(RGBLINK) -d -n $*.sym -l pokered.link -o $@ $^
+ $(RGBLINK) -d -n $*.sym -l layout.link -o $@ $^
$(RGBFIX) $($*_opt) $@
sort $*.sym -o $*.sym