]> git.saurik.com Git - apple/xnu.git/blob - tools/tests/darwintests/Makefile
xnu-3789.1.32.tar.gz
[apple/xnu.git] / tools / tests / darwintests / Makefile
1 PROJECT := xnu/darwintests
2
3 # When building as part of xnu_tests, we get passed a DSTROOT that's got the
4 # unit test path in it already. But, BASEDSTROOT doesn't, so use that instead.
5 ifdef BASEDSTROOT
6 override DSTROOT = $(BASEDSTROOT)
7 endif
8
9 DEVELOPER_DIR ?= /Applications/Xcode.app/Contents/Developer/
10
11 # the xnu build system will only ever call us with the default target
12 .DEFAULT_GOAL := install
13
14 include $(DEVELOPER_DIR)/AppleInternal/Makefiles/darwintest/Makefile.common
15
16 OTHER_CFLAGS = -Weverything -Wno-gnu-union-cast -Wno-missing-field-initializers -Wno-partial-availability
17 OTHER_CFLAGS += -Wno-missing-noreturn -Wno-vla -Wno-reserved-id-macro -Wno-documentation-unknown-command
18 OTHER_CFLAGS += -Wno-padded -Wno-used-but-marked-unused
19 OTHER_CFLAGS += --std=gnu11 -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
20
21 # to have custom compiler flags to
22 # target: OTHER_CFLAGS += <my flags>
23
24 backtracing: OTHER_CFLAGS += -F $(SDKROOT)/System/Library/PrivateFrameworks
25 backtracing: OTHER_LDFLAGS += -framework CoreSymbolication
26
27 kdebug: INVALID_ARCHS = i386
28 kdebug: OTHER_LDFLAGS = -lktrace
29
30 EXCLUDED_SOURCES += kperf_helpers.c
31
32 kperf: INVALID_ARCHS = i386
33 kperf: OTHER_CFLAGS += kperf_helpers.c
34 kperf: OTHER_CFLAGS += -F $(SDKROOT)/System/Library/PrivateFrameworks
35 kperf: OTHER_LDFLAGS += -framework kperf -framework kperfdata -lktrace
36
37 kperf_backtracing: INVALID_ARCHS = i386
38 kperf_backtracing: OTHER_CFLAGS += kperf_helpers.c
39 kperf_backtracing: OTHER_CFLAGS += -F $(SDKROOT)/System/Library/PrivateFrameworks
40 kperf_backtracing: OTHER_LDFLAGS += -framework kperf -framework kperfdata -lktrace
41 kperf_backtracing: OTHER_LDFLAGS += -framework CoreSymbolication
42
43 mach_get_times: OTHER_LDFLAGS += -ldarwintest_utils
44
45 perf_exit: OTHER_LDFLAGS = -lktrace
46 perf_exit: INVALID_ARCHS = i386
47
48 stackshot_idle_25570396: INVALID_ARCHS = i386
49 stackshot_idle_25570396: OTHER_LDFLAGS += -lkdd -framework Foundation
50
51 include $(DEVELOPER_DIR)/AppleInternal/Makefiles/darwintest/Makefile.targets