diff options
| author | mid-kid <esteve.varela@gmail.com> | 2020-09-11 01:17:59 +0200 |
|---|---|---|
| committer | mid-kid <esteve.varela@gmail.com> | 2020-09-11 01:26:53 +0200 |
| commit | 2fa72e1df0e0c3f4892195b03df86d1b8261e78c (patch) | |
| tree | 24dc7ecd18c98fdcfcf052946e12ddc9e5ad151c /Makefile | |
| parent | acf910ba7cc321c0d57a928e4cbba599b837b8b8 (diff) | |
Document character values
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 |
1 files changed, 10 insertions, 12 deletions
@@ -1,10 +1,7 @@ name := picross baserom := DMGAKVJ0.1 -dir_source := source dir_build := build -dir_gfx := gfx -dir_tools := tools RGBASM := rgbasm RGBGFX := rgbgfx @@ -17,13 +14,14 @@ RGBFIXFLAGS := -p 0xff -c -m 0x1b -r 0x03 -k "01" -i "AKVJ" -t "POKEPICROSS" rwildcard = $(foreach d, $(wildcard $1*), $(filter $(subst *, %, $2), $d) $(call rwildcard, $d/, $2)) -objects := $(patsubst $(dir_source)/%.asm, $(dir_build)/%.o, \ - $(call rwildcard, $(dir_source)/, *.asm)) +objects := $(patsubst %.asm, $(dir_build)/%.o, \ + $(call rwildcard, source data, *.asm)) objects += $(dir_build)/shim.o -gfx := $(patsubst $(dir_gfx)/%.png, $(dir_build)/gfx/%.bin, \ - $(call rwildcard, $(dir_gfx)/, *.png)) +gfx := $(patsubst %.png, $(dir_build)/%.bin, \ + $(call rwildcard, gfx, *.png)) +.PRECIOUS: $(gfx) .SECONDEXPANSION: .PHONY: all @@ -39,14 +37,14 @@ $(name).gbc: layout.link $(objects) | $(baserom) $(RGBFIX) $(RGBFIXFLAGS) -v $@ $(dir_build)/shim.asm: shim.sym | $$(dir $$@) - $(dir_tools)/makeshim.py $< > $@ + tools/makeshim.py $< > $@ $(dir_build)/%.o: $(dir_build)/%.asm | $(gfx) $$(dir $$@) - $(RGBASM) $(RGBASMFLAGS) -i $(dir_build)/ -i $(dir_source)/ -M $(@:.o=.d) -o $@ $< -$(dir_build)/%.o: $(dir_source)/%.asm | $(gfx) $$(dir $$@) - $(RGBASM) $(RGBASMFLAGS) -i $(dir_build)/ -i $(dir_source)/ -M $(@:.o=.d) -o $@ $< + $(RGBASM) $(RGBASMFLAGS) -i $(dir_build)/ -i include/ -M $(@:.o=.d) -o $@ $< +$(dir_build)/%.o: %.asm | $(gfx) $$(dir $$@) + $(RGBASM) $(RGBASMFLAGS) -i $(dir_build)/ -i include/ -M $(@:.o=.d) -o $@ $< -$(dir_build)/gfx/%.bin: $(dir_gfx)/%.png | $$(dir $$@) +$(dir_build)/%.bin: %.png | $$(dir $$@) $(RGBGFX) -o $@ $< .PRECIOUS: %/ |
