forked from rellermeyer/course_os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (32 loc) · 808 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
include $(CURDIR)/config.mk
all: toolchain build
./toolchain/indicator:
bash -c "cd ./toolchain && ./build.sh"
echo "remove this file to force make to rebuild the toolchain" > ./toolchain/indicator
./qemu/indicator:
cd ./qemu && ./build.sh
echo "remove this file to force make to rebuild qemu" > ./toolchain/indicator
.PHONY: toolchain
toolchain: ./toolchain/indicator
.PHONY: qemu
qemu: ./qemu/indicator
requirements: toolchain qemu
.PHONY: clean
clean:
$(MAKE) -C kernel clean
@rm ./toolchain/indicator
@rm -rf ./toolchain/arm-none-aebi
@rm ./qemu/indicator
.PHONY: build
build: toolchain
@$(MAKE) -C ./kernel build
.PHONY: run
run: toolchain
@$(MAKE) -C ./kernel run
.PHONY: test
test: toolchain
@$(MAKE) -C ./kernel test
.PHONY: docs
docs:
doxygen Doxyfile
xdg-open docs/index.html