-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
29 lines (22 loc) · 903 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
#-------------------------------------------------------------------------------
.SUFFIXES:
#-------------------------------------------------------------------------------
.PHONY: all clean linux pico arm_kernel arm_user
all: linux pico
@echo "\033[92mDone!\033[0m"
arm_user:
@$(MAKE) --no-print-directory -C $(CURDIR)/arm_user
arm_kernel: arm_user
@$(MAKE) --no-print-directory -C $(CURDIR)/arm_kernel
linux: arm_kernel
@echo "\033[92mBuilding $@...\033[0m"
@$(MAKE) --no-print-directory -C $(CURDIR)/linux
pico: arm_kernel
@echo "\033[92mBuilding $@...\033[0m"
@$(MAKE) --no-print-directory -C $(CURDIR)/pico
clean:
@echo "\033[92mCleaning $@...\033[0m"
@$(MAKE) --no-print-directory -C $(CURDIR)/arm_user clean
@$(MAKE) --no-print-directory -C $(CURDIR)/arm_kernel clean
@$(MAKE) --no-print-directory -C $(CURDIR)/linux clean
@$(MAKE) --no-print-directory -C $(CURDIR)/pico clean