donut-decomp/rules.ninja
2021-10-14 09:55:37 +02:00

22 lines
612 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
rule mergeobj
command = ld.lld -relocatable $in -o $out