ref: 1176712cfebba527fac1438fdf8ca8b9e643a8e7
parent: 00d491a646174a0b00475969675c1e6e60da81df
author: yenatch <yenatch@gmail.com>
date: Thu Jan 28 20:10:41 EST 2016
Use rgbasm -D instead of extra files for version differences.
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@
crystal11_obj := \
wram11.o \
-crystal11.o \
+main11.o \
lib/mobile/main.o \
home.o \
audio.o \
@@ -42,10 +42,10 @@
text/common_text.o \
gfx/pics.o
-all_obj := $(crystal_obj) crystal11.o wram11.o
+all_obj := $(crystal_obj) main11.o wram11.o
# object dependencies
-$(foreach obj, $(all_obj), \
+$(foreach obj, $(crystal_obj), \
$(eval $(obj:.o=)_dep := $(shell $(includes) $(obj:.o=.asm))) \
)
@@ -64,7 +64,9 @@
@$(MD5) roms.md5
%.asm: ;
-$(all_obj): $$*.asm $$($$*_dep)
+%11.o: %.asm $$(%_dep)
+ rgbasm -D CRYSTAL11 -o $@ $<
+%.o: %.asm $$(%_dep)
rgbasm -o $@ $<
pokecrystal11.gbc: $(crystal11_obj)
--- a/crystal11.asm
+++ /dev/null
@@ -1,4 +1,0 @@
-CRYSTAL11 = 1
-CORRUPT_TILES = 1
-
-INCLUDE "main.asm"
--- a/misc/mobile_5c.asm
+++ b/misc/mobile_5c.asm
@@ -934,7 +934,7 @@
INCBIN "gfx/unknown/172f1f.2bpp"
Tilemap_1733af:
-IF DEF(CORRUPT_TILES)
+IF DEF(CRYSTAL11)
INCBIN "gfx/unknown/1733af_corrupt.tilemap"
ELSE
INCBIN "gfx/unknown/1733af.tilemap"
--- a/wram11.asm
+++ /dev/null
@@ -1,3 +1,0 @@
-CRYSTAL11 = 1
-
-INCLUDE "wram.asm"