xref: /DragonOS/kernel/Makefile (revision 70a4e5550a9fb49b537092287c3ddc36448c5b78)
1
2all:
3	@if [ -z $$DragonOS_GCC ]; then echo "\033[31m  [错误]尚未安装DragonOS交叉编译器, 请使用tools文件夹下的build_gcc_toolchain.sh脚本安装  \033[0m"; exit 1; fi
4	$(MAKE) -C src all
5
6
7clean:
8	rm -f Cargo.lock
9	$(MAKE) -C src clean
10
11.PHONY: fmt
12fmt:
13	cargo fmt --all $(FMT_CHECK)
14
15
16check:
17	cargo +nightly-2023-01-21 check --workspace --message-format=json --target ./src/arch/x86_64/x86_64-unknown-none.json
18