-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (36 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
all: disk run
setup:
rustup override set nightly-2021-05-18
rustup update
cargo update
cargo install bootimage
rustup component add llvm-tools-preview
rustup component add rust-src
disk:
python3 ./disk/createDisk.py
ferros_release:
cargo build --release
ferros:
cargo build
run:
cargo run --release
fmt:
cargo fmt
doc: fmt
cargo doc --document-private-items --open
clean: fmt
cargo clean
sound:
cargo run -- -soundhw pcspk -drive format=raw,file=disk/disk.disk,index=2 -boot c
count: fmt
wc -l `find src -type f` -l `find disk -type f`
memory:
qemu-system-x86_64 -drive format=raw,file=target/x86_64-ferros/debug/bootimage-ferr_os.bin -drive format=raw,file=disk/disk.img,index=2 -boot c
memory2:
qemu-system-x86_64 -drive format=raw,file=target/x86_64-ferros/debug/bootimage-ferr_os.bin -drive format=raw,file=disk/disk.disk,index=2 -boot c
config:
rustup override nightly
cargo install bootimage
rustup component add llvm-tools-preview
rustup component ad rust-src
.PHONY: all run fmt doc clean count sound memory memory2 disk