-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (27 loc) · 1.02 KB
/
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
.PHONY: all clean libc kernel binary iso install-headers help
default: all
help:
@printf "Custom bsOS Makefile Targets:\n"
@printf "make : Install build libk and the kernel, and create the resulting iso\n"
@printf "make install-headers : Install headers into bin/include/ \n"
@printf "make libc : Install libc headers and build libk.a \n"
@printf "make kernel : Install kernel headers and build the kernel object files\n"
@printf "make binary : Build the kernel binary \n"
@printf "make iso : Build an iso image from the kernel \n"
@printf "make clean : Run Make clean for both the libc and kernel directory\n"
@printf "make help : Display this help message\n"
all: libc iso
install-headers:
$(MAKE) -C kernel install-headers
$(MAKE) -C libc install-headers
libc:
$(MAKE) -C libc
kernel:
$(MAKE) -C kernel
binary: kernel
$(MAKE) -C kernel binary
iso: $(BINARY)
$(MAKE) -C kernel iso
clean:
$(MAKE) -C libc clean
$(MAKE) -C kernel clean