49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
.PRECIOUS: bins/*
|
|
|
|
export PATH := $(PATH):/home/nick/code/nes/go-fds/bin
|
|
|
|
LBL=../../go-dasm-labels/bin/dasm2lbl
|
|
DA=../../cc65/bin/da65
|
|
|
|
all: dasm/ bins/ labels/ \
|
|
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/sf_slow_rom_file1_precopy.asm \
|
|
dasm/sf_slow_rom_file1_postcopy.asm \
|
|
labels/sf_slow_rom_file1_postcopy.mlb \
|
|
labels/sf_rom-qd_file1_postcopy.mlb
|
|
|
|
dasm/dk3_file4.asm: bins/dk3_file4.bin
|
|
dasm/dk3_file4-post-copy.asm: bins/dk3_file4.bin
|
|
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
|
|
dasm/sf_slow_rom_file1_precopy.asm: bins/sf_slow_rom_file1.bin
|
|
dasm/sf_slow_rom_file1_postcopy.asm: bins/sf_slow_rom_file1.bin
|
|
|
|
clean:
|
|
-rm dasm/* bins/* labels/*
|
|
|
|
%/:
|
|
-mkdir $@
|
|
|
|
dasm/%.asm: %.cfg.tmp
|
|
$(DA) -i $< -o $@
|
|
|
|
%.cfg.tmp: %.cfg labels.cfg
|
|
cat $^ > $@
|
|
|
|
labels/%.mlb: %.cfg.tmp
|
|
$(LBL) $^ $@ --rom-start 0xE000 --ram-start 0x5000
|
|
|
|
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 $@ $^
|
|
|
|
bins/sf_slow_rom_file1.bin: roms/sf_slow_rom.fds
|
|
fdsextract --side 0 --file-num 1 --output $@ $^
|