-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathmakefile
79 lines (63 loc) · 1.62 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Makefile for building the mollenos drivers
# Includes drivers that run user-space apis
# - drivers
.PHONY: all
all: build $(VALI_ARCH) mfs ahci usb ehci uhci ohci msd hid
build:
@mkdir -p $@
# Architecture specific drivers
.PHONY: i386
i386:
@$(MAKE) -s -C arch/x86/ps2 -f makefile
.PHONY: amd64
amd64:
@$(MAKE) -s -C arch/x86/ps2 -f makefile
# Shared architecture targets below
.PHONY: mfs
mfs:
@$(MAKE) -s -C filesystems/mfs -f makefile
.PHONY: ahci
ahci:
@$(MAKE) -s -C storage/ahci -f makefile
.PHONY: msd
msd:
@$(MAKE) -s -C storage/msd -f makefile
.PHONY: hid
hid:
@$(MAKE) -s -C input/hid -f makefile
# Usb drivers below here
.PHONY: usb
usb:
@$(MAKE) -s -C serial/usb/common -f makefile
.PHONY: ohci
ohci:
@$(MAKE) -s -C serial/usb/ohci -f makefile
.PHONY: uhci
uhci:
@$(MAKE) -s -C serial/usb/uhci -f makefile
.PHONY: ehci
ehci:
@$(MAKE) -s -C serial/usb/ehci -f makefile
.PHONY: xhci
xhci:
@$(MAKE) -s -C serial/usb/xhci -f makefile
# Cleanup - architecture i386
.PHONY: clean_i386
clean_i386:
@$(MAKE) -s -C arch/x86/ps2 -f makefile clean
# Cleanup - architecture amd64
.PHONY: clean_amd64
clean_amd64:
@$(MAKE) -s -C arch/x86/ps2 -f makefile clean
# Cleanup - shared
.PHONY: clean
clean: clean_$(VALI_ARCH)
@$(MAKE) -s -C filesystems/mfs -f makefile clean
@$(MAKE) -s -C storage/ahci -f makefile clean
@$(MAKE) -s -C storage/msd -f makefile clean
@$(MAKE) -s -C input/hid -f makefile clean
@$(MAKE) -s -C serial/usb/common -f makefile clean
@$(MAKE) -s -C serial/usb/ohci -f makefile clean
@$(MAKE) -s -C serial/usb/uhci -f makefile clean
@$(MAKE) -s -C serial/usb/ehci -f makefile clean
@rm -rf build