os-z80/Tupfile

14 lines
405 B
Plaintext

include_rules
export RUSTUP_HOME
RUSTC_FLAGS = -C debuginfo=0 -C opt-level=3 --edition 2021
LDLIBS = libs/libvfs/libvfs.a libs/libstd/libstd.a
: foreach *.z80 |> !as |>
: foreach *.o | $(LDLIBS) |> !ld |> %B.elf
: initrd_maker.rs |> rustc $(RUSTC_FLAGS) -o %o %f |> bin/%B
: kernel/kernel.elf *.elf | bin/initrd_maker |> bin/initrd_maker %f |> initrd
: boot/boot.bin initrd |> cat %f > %o |> os.dsk