forked from JustSid/Firedrake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (34 loc) · 908 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
44
KERNEL_DIR = sys
LIBS_DIR = lib
LIBKERN_DIR = libkernel
PROGS_DIR = bin
ALLDIRS = $(KERNEL_DIR) $(LIBKERN_DIR) $(LIBS_DIR) $(PROGS_DIR)
all:
for i in $(ALLDIRS); do make -C $$i; done
install: all
./initrd.py
./boot/image.py
kernel:
make -C $(KERNEL_DIR)
libraries:
make all -C $(LIBS_DIR)
driver:
make all -C $(LIBKERN_DIR)
programs:
make all -C $(PROGS_DIR)
clean:
rm -rf ./boot/initrd
for i in $(ALLDIRS); do make clean -C $$i; done
help:
@echo "List of valid targets:"
@echo " -all (default configuration, compiles everything)"
@echo " -install (like all, but also creates a mountable iso with Firedrake)"
@echo " -kernel (builds the kernel)"
@echo " -libraries (builds all libraries)"
@echo " -driver (builds all drivers and the driver framework libio)"
@echo " -programs (builds all programs)"
.PHONY: clean
.PHONY: libraries
.PHONY: driver
.PHONY: programs
.PHONY: help