14 lines
371 B
Plaintext
14 lines
371 B
Plaintext
include_rules
|
|
export RUSTUP_HOME
|
|
|
|
RUSTC_FLAGS = -C debuginfo=0 -C opt-level=3 --edition 2021
|
|
|
|
LDLIBS = libs/*.o
|
|
|
|
: foreach *.z80 |> !as |>
|
|
: foreach *.o | libs/*.o |> !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
|