forked from jupmoreno/AstleyOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·42 lines (29 loc) · 869 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
42
include Makevars
help:
@echo "Alma's makefile"
@echo "Usage: 'make [ all | reset | clean | build | run | help ]'"
all: clean build run
build: toolchain bootloader libs kernel userland image
toolchain:
$(MAKE) -C $(TOOLCHAIN_PATH) all
bootloader:
$(MAKE) -C $(BOOTLOADER_PATH) all
libs:
$(MAKE) -C $(LIBS_PATH) all
kernel: libs
$(MAKE) -C $(KERNEL_PATH) all
userland: libs
$(MAKE) -C $(USERLAND_PATH) all
image: toolchain bootloader libs kernel userland
$(MAKE) -C $(IMAGE_PATH) all
clean:
$(MAKE) -C $(LIBS_PATH) clean
$(MAKE) -C $(KERNEL_PATH) clean
$(MAKE) -C $(USERLAND_PATH) clean
$(MAKE) -C $(IMAGE_PATH) clean
reset: clean
$(MAKE) -C $(TOOLCHAIN_PATH) clean
$(MAKE) -C $(BOOTLOADER_PATH) clean
run: image
$(QEMU) $(QEMU_FLAGS) -hda $(SOURCE_IMAGE)
.PHONY: help all build toolchain bootloader libs kernel userland image clean reset run