mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Clean up variable usage in the makefile.
This commit is contained in:
parent
cf2acc1001
commit
8e24af1f22
8
Makefile
8
Makefile
@ -27,14 +27,10 @@ OBJS := $(CRYSTAL_OBJS)
|
|||||||
ROMS := pokecrystal.gbc
|
ROMS := pokecrystal.gbc
|
||||||
|
|
||||||
|
|
||||||
ALL_DEPENDENCIES :=
|
|
||||||
# generate a list of dependencies for each object file
|
# generate a list of dependencies for each object file
|
||||||
$(shell $(foreach obj, $(OBJS), \
|
$(shell $(foreach obj, $(OBJS), \
|
||||||
$(eval $(obj:.o=)_DEPENDENCIES := $(shell $(PYTHON) $(POKEMONTOOLS)/scan_includes.py $(obj:.o=.asm))) \
|
$(eval $(obj:.o=)_DEPENDENCIES := $(shell $(PYTHON) $(POKEMONTOOLS)/scan_includes.py $(obj:.o=.asm))) \
|
||||||
))
|
))
|
||||||
$(shell $(foreach obj, $(OBJS), \
|
|
||||||
$(eval ALL_DEPENDENCIES += $($(obj:.o=)_DEPENDENCIES)) \
|
|
||||||
))
|
|
||||||
|
|
||||||
|
|
||||||
all: $(ROMS)
|
all: $(ROMS)
|
||||||
@ -52,12 +48,12 @@ baserom.gbc: ;
|
|||||||
|
|
||||||
%.asm: ;
|
%.asm: ;
|
||||||
.asm.tx:
|
.asm.tx:
|
||||||
$(eval TEXTQUEUE := $(TEXTQUEUE) $<)
|
$(eval TEXTQUEUE += $<)
|
||||||
@rm -f $@
|
@rm -f $@
|
||||||
|
|
||||||
$(OBJS): $$*.tx $$(patsubst %.asm, %.tx, $$($$*_DEPENDENCIES))
|
$(OBJS): $$*.tx $$(patsubst %.asm, %.tx, $$($$*_DEPENDENCIES))
|
||||||
@$(PYTHON) prequeue.py $(TEXTQUEUE)
|
@$(PYTHON) prequeue.py $(TEXTQUEUE)
|
||||||
@$(eval TEXTQUEUE :=)
|
$(eval TEXTQUEUE :=)
|
||||||
rgbasm -o $@ $*.tx
|
rgbasm -o $@ $*.tx
|
||||||
|
|
||||||
pokecrystal.gbc: $(CRYSTAL_OBJS)
|
pokecrystal.gbc: $(CRYSTAL_OBJS)
|
||||||
|
Loading…
Reference in New Issue
Block a user