]> git.saurik.com Git - apple/xnu.git/blame - tools/tests/darwintests/Makefile
xnu-3789.41.3.tar.gz
[apple/xnu.git] / tools / tests / darwintests / Makefile
CommitLineData
39037602
A
1PROJECT := 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.
5ifdef BASEDSTROOT
6override DSTROOT = $(BASEDSTROOT)
7endif
8
9DEVELOPER_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
14include $(DEVELOPER_DIR)/AppleInternal/Makefiles/darwintest/Makefile.common
15
16OTHER_CFLAGS = -Weverything -Wno-gnu-union-cast -Wno-missing-field-initializers -Wno-partial-availability
17OTHER_CFLAGS += -Wno-missing-noreturn -Wno-vla -Wno-reserved-id-macro -Wno-documentation-unknown-command
18OTHER_CFLAGS += -Wno-padded -Wno-used-but-marked-unused
19OTHER_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
24backtracing: OTHER_CFLAGS += -F $(SDKROOT)/System/Library/PrivateFrameworks
25backtracing: OTHER_LDFLAGS += -framework CoreSymbolication
26
27kdebug: INVALID_ARCHS = i386
28kdebug: OTHER_LDFLAGS = -lktrace
29
30EXCLUDED_SOURCES += kperf_helpers.c
31
32kperf: INVALID_ARCHS = i386
33kperf: OTHER_CFLAGS += kperf_helpers.c
34kperf: OTHER_CFLAGS += -F $(SDKROOT)/System/Library/PrivateFrameworks
35kperf: OTHER_LDFLAGS += -framework kperf -framework kperfdata -lktrace
36
37kperf_backtracing: INVALID_ARCHS = i386
38kperf_backtracing: OTHER_CFLAGS += kperf_helpers.c
39kperf_backtracing: OTHER_CFLAGS += -F $(SDKROOT)/System/Library/PrivateFrameworks
40kperf_backtracing: OTHER_LDFLAGS += -framework kperf -framework kperfdata -lktrace
41kperf_backtracing: OTHER_LDFLAGS += -framework CoreSymbolication
42
43mach_get_times: OTHER_LDFLAGS += -ldarwintest_utils
44
45perf_exit: OTHER_LDFLAGS = -lktrace
46perf_exit: INVALID_ARCHS = i386
47
48stackshot_idle_25570396: INVALID_ARCHS = i386
49stackshot_idle_25570396: OTHER_LDFLAGS += -lkdd -framework Foundation
50
51include $(DEVELOPER_DIR)/AppleInternal/Makefiles/darwintest/Makefile.targets