-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
43 lines (30 loc) · 950 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
43
THREADS_COUNT := 1
WORKSPACE_DIR := ${CURDIR}
.PHONY: all
all:
# Delete old ELF and BIN files
find build -iname "*.elf" -type f -delete
find build -iname "*.bin" -type f -delete
find environment -iname "*.elf" -type f -delete
find library -iname "*.elf" -type f -delete
find os -iname "*.elf" -type f -delete
$(MAKE) -C os/bootloader
$(MAKE) -C library
for d in $(sort $(dir $(wildcard ./environment/*/))) ; do \
$(MAKE) -C $${d}; \
done
$(MAKE) -C os/kernel
.PHONY: clean
clean:
# Delete old ELF and BIN files
find build -iname "*.elf" -type f -delete
find build -iname "*.bin" -type f -delete
find environment -iname "*.elf" -type f -delete
find library -iname "*.elf" -type f -delete
find os -iname "*.elf" -type f -delete
$(MAKE) -C os/bootloader clean
$(MAKE) -C library clean
for d in $(sort $(dir $(wildcard ./environment/*/))) ; do \
$(MAKE) -C $${d} clean; \
done
$(MAKE) -C os/kernel clean