donut-decomp/rules.ninja

42 lines
1.2 KiB
Text
Raw Normal View History

2021-08-01 18:25:08 +00:00
rule extract-object
command = cargo run --quiet --release --bin extract-dol -- $in $out $start $end
2021-10-20 13:46:48 +00:00
depfile = target/release/extract-dol.d
deps = gcc
2021-08-01 18:25:08 +00:00
rule directory
command = mkdir $out
rule genlcf
command = cargo run --quiet --release --bin genlcf -- $out
2021-10-20 13:46:48 +00:00
depfile = target/release/genlcf.d
deps = gcc
2021-08-01 18:25:08 +00:00
rule ccld
2021-10-19 19:33:00 +00:00
command = ./run-exe.sh bin/mwcc/mwldeppc.exe $in -o $out -lcf $lcf -fp hard -linkmode moreram -map $map -mapunused -code_merging all
2021-08-01 18:25:08 +00:00
2021-08-02 09:59:42 +00:00
rule cc
2021-10-20 13:46:48 +00:00
command = (./run-exe.sh bin/mwcc/mwcceppc.exe $cflags -c $in -o $out -gccdep -MDfile $out.d && sed -i 's|Z:||g; s|\\|/|g; s| /| \\|g' $out.d)
2021-08-02 09:59:42 +00:00
depfile = $out.d
deps = gcc
2021-10-14 14:05:50 +00:00
rule as
2021-10-20 13:46:48 +00:00
command = (./run-exe.sh bin/mwcc/mwasmeppc.exe $asflags -c $in -o $out -gccdep -MDfile $out.d && sed -i 's|Z:||g; s|\\|/|g; s| /| \\|g' $out.d)
2021-10-14 14:05:50 +00:00
depfile = $out.d
deps = gcc
2021-08-02 09:59:42 +00:00
rule elf2dol
command = cargo run --quiet --release --bin elf2dol -- $in $out
2021-10-20 13:46:48 +00:00
depfile = target/release/elf2dol.d
deps = gcc
rule mergeobj
command = ld.lld -relocatable $in -o $out
2021-10-20 13:46:48 +00:00
rule create_ninja
command = cargo run --quiet
generator = true
depfile = target/debug/buildgen.d
deps = gcc
build build.ninja build/objects.txt: create_ninja | data/ranges.csv