mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 18:30:50 +12:00
Stop preprocessing files.
This commit is contained in:
parent
cf29441457
commit
d8aa1f0d86
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -15,9 +15,6 @@
|
||||||
*.map
|
*.map
|
||||||
*.sym
|
*.sym
|
||||||
|
|
||||||
# generated
|
|
||||||
*.tx
|
|
||||||
|
|
||||||
# converted image data
|
# converted image data
|
||||||
*.2bpp
|
*.2bpp
|
||||||
*.1bpp
|
*.1bpp
|
||||||
|
|
16
Makefile
16
Makefile
|
@ -38,7 +38,7 @@ compare:
|
||||||
|
|
||||||
# Clear the default suffixes.
|
# Clear the default suffixes.
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .asm .tx .o .gbc .png .2bpp .1bpp .pic
|
.SUFFIXES: .asm .o .gbc .png .2bpp .1bpp .pic
|
||||||
|
|
||||||
# Secondary expansion is required for dependency variables in object rules.
|
# Secondary expansion is required for dependency variables in object rules.
|
||||||
.SECONDEXPANSION:
|
.SECONDEXPANSION:
|
||||||
|
@ -73,22 +73,14 @@ $(foreach obj, $(all_obj), \
|
||||||
%.1bpp: %.png ; $(eval 1bppq += $<) @rm -f $@
|
%.1bpp: %.png ; $(eval 1bppq += $<) @rm -f $@
|
||||||
%.pic: %.2bpp ; $(eval picq += $<) @rm -f $@
|
%.pic: %.2bpp ; $(eval picq += $<) @rm -f $@
|
||||||
|
|
||||||
# Source files are not fed directly into rgbasm.
|
|
||||||
# A python preprocessor runs over them first, replacing ascii strings with correct character codes.
|
|
||||||
# It spits out the new file with extension .tx.
|
|
||||||
# The text preprocessor also uses a queue.
|
|
||||||
%.asm: ;
|
|
||||||
%.tx: %.asm ; $(eval txq += $<) @rm -f $@
|
|
||||||
|
|
||||||
# Assemble source files into objects.
|
# Assemble source files into objects.
|
||||||
# Queue payloads are here. These are made silent since there may be hundreds of targets.
|
# Queue payloads are here. These are made silent since there may be hundreds of targets.
|
||||||
# Use rgbasm -h to use halts without nops.
|
# Use rgbasm -h to use halts without nops.
|
||||||
$(all_obj): $$*.tx $$(patsubst %.asm, %.tx, $$($$*_dep))
|
$(all_obj): $$*.asm $$($$*_dep)
|
||||||
@$(pre) $(txq); $(eval txq :=)
|
|
||||||
@$(gfx) 2bpp $(2bppq); $(eval 2bppq :=)
|
@$(gfx) 2bpp $(2bppq); $(eval 2bppq :=)
|
||||||
@$(gfx) 1bpp $(1bppq); $(eval 1bppq :=)
|
@$(gfx) 1bpp $(1bppq); $(eval 1bppq :=)
|
||||||
@$(pic) compress $(picq); $(eval picq :=)
|
@$(pic) compress $(picq); $(eval picq :=)
|
||||||
rgbasm -h -o $@ $*.tx
|
rgbasm -h -o $@ $*.asm
|
||||||
|
|
||||||
|
|
||||||
# Link objects together to build a rom.
|
# Link objects together to build a rom.
|
||||||
|
@ -103,4 +95,4 @@ poke%.gbc: $$(%_obj)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(roms) $(all_obj)
|
rm -f $(roms) $(all_obj)
|
||||||
find . \( -iname '*.tx' -o -iname '*.1bpp' -o -iname '*.2bpp' -o -iname '*.pic' \) -exec rm {} +
|
find . \( -iname '*.1bpp' -o -iname '*.2bpp' -o -iname '*.pic' \) -exec rm {} +
|
||||||
|
|
Loading…
Reference in a new issue