]> git.saurik.com Git - apple/xnu.git/blame - Makefile
xnu-2050.9.2.tar.gz
[apple/xnu.git] / Makefile
CommitLineData
1c79356b
A
1ifndef VERSDIR
2export VERSDIR=$(shell /bin/pwd)
3endif
9bccf70c
A
4ifndef SRCROOT
5export SRCROOT=$(shell /bin/pwd)
6endif
7ifndef OBJROOT
b0d623f7 8export OBJROOT=$(SRCROOT)/BUILD/obj/
9bccf70c
A
9endif
10ifndef DSTROOT
b0d623f7 11export DSTROOT=$(SRCROOT)/BUILD/dst/
9bccf70c
A
12endif
13ifndef SYMROOT
b0d623f7 14export SYMROOT=$(SRCROOT)/BUILD/sym/
9bccf70c 15endif
1c79356b
A
16
17export MakeInc_cmd=${VERSDIR}/makedefs/MakeInc.cmd
18export MakeInc_def=${VERSDIR}/makedefs/MakeInc.def
19export MakeInc_rule=${VERSDIR}/makedefs/MakeInc.rule
20export MakeInc_dir=${VERSDIR}/makedefs/MakeInc.dir
21
22
23include $(MakeInc_cmd)
24include $(MakeInc_def)
25
26ALL_SUBDIRS = \
27 iokit \
28 osfmk \
29 bsd \
30 pexpert \
31 libkern \
2d21ac55
A
32 libsa \
33 security
1c79356b 34
b0d623f7 35CONFIG_SUBDIRS_I386 = config
b0d623f7 36CONFIG_SUBDIRS_X86_64 = config
b0d623f7 37CONFIG_SUBDIRS_ARM = config
55e303ae 38
91447636 39INSTINC_SUBDIRS = $(ALL_SUBDIRS) EXTERNAL_HEADERS
6d2010ae
A
40INSTINC_SUBDIRS_I386 = $(INSTINC_SUBDIRS)
41INSTINC_SUBDIRS_X86_64 = $(INSTINC_SUBDIRS)
42INSTINC_SUBDIRS_ARM = $(INSTINC_SUBDIRS)
2d21ac55 43
1c79356b 44EXPINC_SUBDIRS = $(ALL_SUBDIRS)
1c79356b 45EXPINC_SUBDIRS_I386 = $(EXPINC_SUBDIRS)
b0d623f7 46EXPINC_SUBDIRS_X86_64 = $(EXPINC_SUBDIRS)
2d21ac55
A
47EXPINC_SUBDIRS_ARM = $(EXPINC_SUBDIRS)
48
6d2010ae 49SETUP_SUBDIRS = SETUP
b0d623f7
A
50
51COMP_SUBDIRS_I386 = $(ALL_SUBDIRS)
b0d623f7 52COMP_SUBDIRS_X86_64 = $(ALL_SUBDIRS)
b0d623f7 53COMP_SUBDIRS_ARM = $(ALL_SUBDIRS)
55e303ae 54
1c79356b
A
55INST_SUBDIRS = \
56 libkern \
57 libsa \
58 iokit \
59 osfmk \
d7e50217 60 bsd \
2d21ac55
A
61 config \
62 security
1c79356b 63
6d2010ae
A
64INSTALL_KERNEL_FILE = mach_kernel
65
66INSTALL_KERNEL_DIR = /
1c79356b 67
316670eb
A
68INSTALL_KERNEL_SYM_DIR = $(INSTALL_KERNEL_DIR)/System/Library/Extensions/KDK/
69
1c79356b 70
9bccf70c
A
71INSTMAN_SUBDIRS = \
72 bsd
73
1c79356b
A
74include $(MakeInc_rule)
75include $(MakeInc_dir)
6d2010ae
A
76
77# This target is defined to compile and run xnu_quick_test under testbots
78testbots:
79 /usr/bin/make MORECFLAGS="-D RUN_UNDER_TESTBOTS=1" testbots -C ./tools/tests/xnu_quick_test/
80