donut-decomp/rules.ninja
2021-08-02 10:59:42 +01:00

19 lines
551 B
Text

rule extract-object
command = cargo run --quiet --release --bin extract-dol -- $in $out $start $end
rule directory
command = mkdir $out
rule genlcf
command = cargo run --quiet --release --bin genlcf -- $out
rule ccld
command = ./run-exe.sh bin/mwcc/mwldeppc.exe $in -o $out -lcf $lcf -fp hard -linkmode moreram -map $map
rule cc
command = ./run-exe.sh bin/mwcc/mwcceppc.exe $cflags -c $in -o $out -gccdep -MD
depfile = $out.d
deps = gcc
rule elf2dol
command = cargo run --quiet --release --bin elf2dol -- $in $out