souseiki-fammy-dasm/Makefile

34 lines
817 B
Makefile

.PRECIOUS: bins/*
export PATH := $(PATH):/home/nick/code/nes/go-fds/bin
all: dasm/ bins/ \
dasm/disksys.asm \
dasm/dk3_file4.asm \
dasm/dk3_file4-post-copy.asm \
dasm/sf_rom-qd_file1_precopy.asm \
dasm/sf_rom-qd_file1_postcopy.asm
dasm/dk3_file4.asm: bins/dk3_file4.bin dk3_file4.cfg labels.cfg
dasm/dk3_file4-post-copy.asm: bins/dk3_file4.bin dk3_file4-post-copy.cfg labels.cfg
dasm/sf_rom-qd_file1_precopy.asm: bins/sf_rom-qd_file1.bin
dasm/sf_rom-qd_file1_postcopy.asm: bins/sf_rom-qd_file1.bin
clean:
-rm dasm/* bins/*
%/:
mkdir $@
dasm/%.asm: %.cfg.tmp
da65 -i $< -o $@
%.cfg.tmp: %.cfg labels.cfg
cat $^ > $@
bins/dk3_file4.bin: roms/sf_dk3.fds
fdsextract --side 0 --file-num 4 --output $@ $^
bins/sf_rom-qd_file1.bin: roms/sf_rom-qd.fds
fdsextract --side 0 --file-num 1 --output $@ $^