ref: 7f0f21b1fc2a6cf5dc19d0db80ec3afba024e291
parent: 65efbe55e7648b6aa1a122155222e73b74dc31c1
author: yenatch <[email protected]>
date: Sat Feb 1 08:55:48 EST 2014
Get rid of globals.asm This breaks the build until labels are exported again!
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@
ALL_DEPENDENCIES :=
# generate a list of dependencies for each object file
$(shell $(foreach obj, $(OBJS), \
- $(eval $(obj:.o=)_DEPENDENCIES := $(shell $(PYTHON) $(POKEMONTOOLS)/scan_includes.py $(obj:.o=.asm) | sed s/globals.asm//g)) \
+ $(eval $(obj:.o=)_DEPENDENCIES := $(shell $(PYTHON) $(POKEMONTOOLS)/scan_includes.py $(obj:.o=.asm))) \
))
$(shell $(foreach obj, $(OBJS), \
$(eval ALL_DEPENDENCIES += $($(obj:.o=)_DEPENDENCIES)) \
@@ -44,7 +44,6 @@
clean:
rm -f $(ROMS)
rm -f $(OBJS)
- rm -f globals.asm
find -iname '*.tx' -exec rm {} +
baserom.gbc: ;
@@ -56,17 +55,13 @@
$(eval TEXTQUEUE := $(TEXTQUEUE) $<)
@rm -f $@
-globals.asm: $(ALL_DEPENDENCIES:.asm=.tx) $(OBJS:.o=.tx)
- @touch $@
- @$(PYTHON) prequeue.py $(TEXTQUEUE)
-globals.tx: globals.asm
- @cp $< $@
-
$(OBJS): $$*.tx $$(patsubst %.asm, %.tx, $$($$*_DEPENDENCIES))
+ @$(PYTHON) prequeue.py $(TEXTQUEUE)
+ @$(eval TEXTQUEUE :=)
rgbasm -o $@ $*.tx
-pokecrystal.gbc: globals.tx $(CRYSTAL_OBJS)
- rgblink -n $*.sym -m $*.map -o $@ $(CRYSTAL_OBJS)
+pokecrystal.gbc: $(CRYSTAL_OBJS)
+ rgblink -n $*.sym -m $*.map -o $@ $^
rgbfix -Cjv -i BYTE -k 01 -l 0x33 -m 0x10 -p 0 -r 3 -t PM_CRYSTAL $@
cmp baserom.gbc $@
--- a/includes.asm
+++ b/includes.asm
@@ -1,3 +1,2 @@
-INCLUDE "globals.asm"
INCLUDE "contents.asm"
INCLUDE "constants.asm"
--- a/preprocessor.py
+++ b/preprocessor.py
@@ -66,7 +66,6 @@
def main():
processor = setup_processor()
processor.preprocess()
- processor.update_globals()
# only run against stdin when not included as a module
if __name__ == "__main__":
--- a/prequeue.py
+++ b/prequeue.py
@@ -23,8 +23,6 @@
sys.stdout = open(dest, 'w')
processor.preprocess()
- processor.update_globals()
-
sys.stdin = stdin
sys.stdout = stdout