27 lines
772 B
Text
27 lines
772 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 -mapunused -code_merging all
|
|
|
|
rule cc
|
|
command = ./run-exe.sh bin/mwcc/mwcceppc.exe $cflags -c $in -o $out -gccdep -MD
|
|
depfile = $out.d
|
|
deps = gcc
|
|
|
|
rule as
|
|
command = ./run-exe.sh bin/mwcc/mwasmeppc.exe $asflags -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
|