-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
25 lines (18 loc) · 824 Bytes
/
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
kernel := rux/kernel/build/$(ARCH)/libkernel.bin
cargo:
ifeq ($(version),release)
@RUSTFLAGS="-L $(LIBCORE) -L $(LIBALLOC) -L $(LIBSTD_UNICODE)" cargo rustc --release --target $(TARGET_SPEC) --verbose
else
@RUSTFLAGS="-L $(LIBCORE) -L $(LIBALLOC) -L $(LIBSTD_UNICODE)" cargo rustc --target $(TARGET_SPEC) --verbose
endif
kernel:
@make -C rux/kernel build
kernel-release:
@make -C rux/kernel version=release build
sinit-allocator: kernel-release
@make -C sinits version=release kernel=$(shell realpath $(kernel)) test=allocator test
sinit-rlp: kernel-release
@make -C sinits version=release kernel=$(shell realpath $(kernel)) test=rlp test
sinit-sputnikvm: kernel-release
@make -C sinits version=release kernel=$(shell realpath $(kernel)) test=sputnikvm test
test-all: sinit-allocator sinit-rlp sinit-sputnikvm