-
Notifications
You must be signed in to change notification settings - Fork 146
/
Makefile
84 lines (66 loc) · 1.76 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
80
81
82
83
ifndef VERSDIR
export VERSDIR=$(shell /bin/pwd)
endif
ifndef SRCROOT
export SRCROOT=$(shell /bin/pwd)
endif
ifndef OBJROOT
export OBJROOT=$(SRCROOT)/BUILD/obj/
endif
ifndef DSTROOT
export DSTROOT=$(SRCROOT)/BUILD/dst/
endif
ifndef SYMROOT
export SYMROOT=$(SRCROOT)/BUILD/sym/
endif
export MakeInc_cmd=${VERSDIR}/makedefs/MakeInc.cmd
export MakeInc_def=${VERSDIR}/makedefs/MakeInc.def
export MakeInc_rule=${VERSDIR}/makedefs/MakeInc.rule
export MakeInc_dir=${VERSDIR}/makedefs/MakeInc.dir
include $(MakeInc_cmd)
include $(MakeInc_def)
ALL_SUBDIRS = \
iokit \
osfmk \
bsd \
pexpert \
libkern \
libsa \
security
CONFIG_SUBDIRS_I386 = config
CONFIG_SUBDIRS_X86_64 = config
CONFIG_SUBDIRS_ARM = config
CONFIG_SUBDIRS_ARM64 = config
INSTINC_SUBDIRS = $(ALL_SUBDIRS) EXTERNAL_HEADERS
INSTINC_SUBDIRS_I386 = $(INSTINC_SUBDIRS)
INSTINC_SUBDIRS_X86_64 = $(INSTINC_SUBDIRS)
INSTINC_SUBDIRS_ARM = $(INSTINC_SUBDIRS)
INSTINC_SUBDIRS_ARM64 = $(INSTINC_SUBDIRS)
EXPINC_SUBDIRS = $(ALL_SUBDIRS)
EXPINC_SUBDIRS_I386 = $(EXPINC_SUBDIRS)
EXPINC_SUBDIRS_X86_64 = $(EXPINC_SUBDIRS)
EXPINC_SUBDIRS_ARM = $(EXPINC_SUBDIRS)
EXPINC_SUBDIRS_ARM64 = $(EXPINC_SUBDIRS)
SETUP_SUBDIRS = SETUP
COMP_SUBDIRS_I386 = $(ALL_SUBDIRS)
COMP_SUBDIRS_X86_64 = $(ALL_SUBDIRS)
COMP_SUBDIRS_ARM = $(ALL_SUBDIRS)
COMP_SUBDIRS_ARM64 = $(ALL_SUBDIRS)
INST_SUBDIRS = \
libkern \
libsa \
iokit \
osfmk \
bsd \
config \
security
INSTALL_KERNEL_FILE = mach_kernel
INSTALL_KERNEL_DIR = /
INSTALL_KERNEL_SYM_DIR = $(INSTALL_KERNEL_DIR)/System/Library/Extensions/KDK/
INSTMAN_SUBDIRS = \
bsd
include $(MakeInc_rule)
include $(MakeInc_dir)
# This target is defined to compile and run xnu_quick_test under testbots
testbots:
/usr/bin/make MORECFLAGS="-D RUN_UNDER_TESTBOTS=1" testbots -C ./tools/tests/xnu_quick_test/