]> git.saurik.com Git - apple/xnu.git/blame - tests/Makefile
xnu-6153.101.6.tar.gz
[apple/xnu.git] / tests / 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
5ba3f43e
A
9ENABLE_LTE_TESTS=YES
10
11OTHER_LTE_INCLUDE_FILES += \
12 /System/Library/PrivateFrameworks/LoggingSupport.framework, \
13 /System/Library/PrivateFrameworks/MobileKeyBag.framework, \
cb323159 14 /System/Library/Frameworks/IOSurface.framework, \
5ba3f43e
A
15 /usr/local/lib/libdarwintest_utils.dylib, \
16 /usr/lib/libapple_crypto.dylib,
17
d9a64523 18DEVELOPER_DIR ?= $(shell xcode-select -p)
39037602
A
19
20# the xnu build system will only ever call us with the default target
21.DEFAULT_GOAL := install
22
23include $(DEVELOPER_DIR)/AppleInternal/Makefiles/darwintest/Makefile.common
24
25OTHER_CFLAGS = -Weverything -Wno-gnu-union-cast -Wno-missing-field-initializers -Wno-partial-availability
26OTHER_CFLAGS += -Wno-missing-noreturn -Wno-vla -Wno-reserved-id-macro -Wno-documentation-unknown-command
5ba3f43e 27OTHER_CFLAGS += -Wno-padded -Wno-used-but-marked-unused -Wno-covered-switch-default -Wno-nullability-extension
cb323159 28OTHER_CFLAGS += -Wno-gnu-empty-initializer -Wno-unused-macros -Wno-undef -Wno-fixed-enum-extension
39037602 29OTHER_CFLAGS += --std=gnu11 -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
d9a64523 30OTHER_CFLAGS += -UT_NAMESPACE_PREFIX -DT_NAMESPACE_PREFIX=xnu
5ba3f43e 31OTHER_CFLAGS += -F $(SDKROOT)/System/Library/PrivateFrameworks
813fb2f6
A
32
33CODESIGN:=$(shell xcrun -sdk "$(TARGETSDK)" -find codesign)
34CODESIGN_ALLOCATE:=$(shell xcrun -sdk "$(TARGETSDK)" -find codesign_allocate)
39037602
A
35
36# to have custom compiler flags to
37# target: OTHER_CFLAGS += <my flags>
38
a39ff7e2
A
39atm_diagnostic_flag: OTHER_CFLAGS += drop_priv.c
40
c6bf4f31
A
41atm_diagnostic_flag_entitled: CODE_SIGN_ENTITLEMENTS = atm_diagnostic_flag.entitlements
42atm_diagnostic_flag_entitled: OTHER_CFLAGS += drop_priv.c
43
0a7de745
A
44testposixshm: INVALID_ARCHS = i386
45
5ba3f43e
A
46avx: INVALID_ARCHS = i386
47avx: OTHER_CFLAGS += -mavx512f -mavx512bw -mavx512vl
48avx: OTHER_CFLAGS += -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
49avx: CONFIG_FLAGS := $(filter-out -O%,$(CONFIG_FLAGS))
50# Level 2 optimization must be used to prevent compiler from generating
51# invalid instructions when compiling with AVX-512 flags.
52avx: CONFIG_FLAGS += -O2
a39ff7e2
A
53# Disable vzeroupper insertion to work around rdar://problem/35035096
54avx: CONFIG_FLAGS += -mllvm -x86-use-vzeroupper=0
5ba3f43e
A
55ifneq (osx,$(TARGET_NAME))
56EXCLUDED_SOURCES += avx.c
57endif
58
39037602
A
59backtracing: OTHER_LDFLAGS += -framework CoreSymbolication
60
a39ff7e2 61data_protection: OTHER_LDFLAGS += -ldarwintest_utils -framework IOKit
813fb2f6 62
cb323159
A
63immovable_send: excserver
64immovable_send: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT)
65immovable_send: OTHER_LDFLAGS += -ldarwintest_utils -lpthread -framework IOKit
66
67CUSTOM_TARGETS += immovable_send_client
68immovable_send: immovable_send_client
69
70immovable_send_client: immovable_send_client.c
71 $(CC) $(DT_CFLAGS) -I $(OBJROOT) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) immovable_send_client.c -o $(SYMROOT)/immovable_send_client
72
73install-immovable_send_client: immovable_send_client
74 mkdir -p $(INSTALLDIR)
75 cp $(SYMROOT)/immovable_send_client $(INSTALLDIR)/
76
39037602 77kdebug: INVALID_ARCHS = i386
d9a64523 78kdebug: OTHER_LDFLAGS = -framework ktrace -ldarwintest_utils -framework kperf
39037602 79
ea3f0419 80EXCLUDED_SOURCES += drop_priv.c kperf_helpers.c xnu_quick_test_helpers.c memorystatus_assertion_helpers.c bpflib.c in_cksum.c
39037602 81
0a7de745
A
82ifneq ($(PLATFORM),iPhoneOS)
83EXCLUDED_SOURCES += jumbo_va_spaces_28530648.c perf_compressor.c memorystatus_freeze_test.c
813fb2f6
A
84endif
85
a39ff7e2 86perf_compressor: OTHER_LDFLAGS += -ldarwintest_utils
5ba3f43e
A
87perf_compressor: CODE_SIGN_ENTITLEMENTS=./private_entitlement.plist
88
cb323159 89memorystatus_freeze_test: CODE_SIGN_ENTITLEMENTS=./task_for_pid_entitlement.plist
d9a64523 90memorystatus_freeze_test: OTHER_LDFLAGS += -ldarwintest_utils
cb323159 91memorystatus_freeze_test: OTHER_CFLAGS += -ldarwintest_utils memorystatus_assertion_helpers.c
d9a64523 92
cb323159
A
93memorystatus_is_assertion: OTHER_LDFLAGS += -ldarwintest_utils
94memorystatus_is_assertion: OTHER_CFLAGS += memorystatus_assertion_helpers.c
95
96shared_cache_tests: INVALID_ARCHS = i386
97shared_cache_tests: OTHER_LDFLAGS += -ldarwintest_utils
98
99stackshot_tests: OTHER_CFLAGS += -Wno-objc-messaging-id
100stackshot_tests: OTHER_LDFLAGS += -lkdd -ldarwintest_utils -framework Foundation
101stackshot_tests: INVALID_ARCHS = i386
5ba3f43e 102
4ba76501
A
103stackshot_accuracy: OTHER_CFLAGS += -ldarwintest_utils -Wno-objc-messaging-id
104stackshot_accuracy: OTHER_LDFLAGS += -lkdd -ldarwintest_utils -framework Foundation
105stackshot_accuracy: INVALID_ARCHS = i386
106
0a7de745 107telemetry: OTHER_LDFLAGS = -framework ktrace -framework CoreFoundation
d9a64523
A
108telemetry: INVALID_ARCHS = i386
109
5ba3f43e
A
110memorystatus_zone_test: INVALID_ARCHS = i386
111memorystatus_zone_test: OTHER_CFLAGS += -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
112memorystatus_zone_test: OTHER_LDFLAGS += -framework ktrace
113memorystatus_zone_test: OTHER_LDFLAGS += -ldarwintest_utils
114
ea3f0419
A
115kpc: OTHER_LDFLAGS += -framework kperf -framework ktrace
116kpc: INVALID_ARCHS = i386
813fb2f6 117
39037602
A
118kperf: INVALID_ARCHS = i386
119kperf: OTHER_CFLAGS += kperf_helpers.c
5ba3f43e 120kperf: OTHER_LDFLAGS += -framework kperf -framework kperfdata -framework ktrace -ldarwintest_utils
39037602
A
121
122kperf_backtracing: INVALID_ARCHS = i386
123kperf_backtracing: OTHER_CFLAGS += kperf_helpers.c
5ba3f43e 124kperf_backtracing: OTHER_LDFLAGS += -framework kperf -framework kperfdata -framework ktrace
39037602
A
125kperf_backtracing: OTHER_LDFLAGS += -framework CoreSymbolication
126
5ba3f43e
A
127kevent_qos: OTHER_CFLAGS += -Wno-unused-macros
128kevent_qos: OTHER_CFLAGS += -I $(OBJROOT)/
129
39037602
A
130mach_get_times: OTHER_LDFLAGS += -ldarwintest_utils
131
5ba3f43e
A
132monotonic_core: OTHER_LDFLAGS += -framework ktrace
133monotonic_core: INVALID_ARCHS = i386
134
d9a64523 135perf_exit: perf_exit_proc
0a7de745 136perf_exit: OTHER_LDFLAGS = -framework ktrace -ldarwintest_utils
39037602 137perf_exit: INVALID_ARCHS = i386
5ba3f43e
A
138perf_exit: CODE_SIGN_ENTITLEMENTS=./private_entitlement.plist
139
cb323159
A
140CUSTOM_TARGETS += prioritize_process_launch_helper
141prioritize_process_launch: prioritize_process_launch_helper
142
143prioritize_process_launch_helper: prioritize_process_launch_helper.c
144 $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) prioritize_process_launch_helper.c -o $(SYMROOT)/prioritize_process_launch_helper
145 echo $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; \
146 env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@;
147
148install-prioritize_process_launch_helper: prioritize_process_launch_helper
149 mkdir -p $(INSTALLDIR)
150 cp $(SYMROOT)/prioritize_process_launch_helper $(INSTALLDIR)/
151
152
5ba3f43e
A
153perf_spawn_fork: CODE_SIGN_ENTITLEMENTS=./private_entitlement.plist
154
cb323159
A
155mach_exception_reply: OTHER_CFLAGS += -Wno-cast-align
156
5ba3f43e
A
157os_thread_self_restrict: os_thread_self_restrict.c os_thread_self_restrict-entitlements.plist
158os_thread_self_restrict: CODE_SIGN_ENTITLEMENTS=os_thread_self_restrict-entitlements.plist
39037602 159
cb323159
A
160osptr: OTHER_CXXFLAGS += -I$(SRCROOT)/../libkern -std=c++98
161osptr: OTHER_CXXFLAGS += osptr_helper.cpp
162
163osptr_dumb: OTHER_CXXFLAGS += -I$(SRCROOT)/../libkern -std=c++17
164
165osptr_11: OTHER_CXXFLAGS += -I$(SRCROOT)/../libkern -std=c++11
166osptr_11: OTHER_CXXFLAGS += osptr_helper.cpp
167osptr_11: osptr.cpp
168 $(CXX) $(DT_CXXFLAGS) $(OTHER_CXXFLAGS) $(CXXFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@
169
170osptr_17: OTHER_CXXFLAGS += -I$(SRCROOT)/../libkern -std=c++17
171osptr_17: OTHER_CXXFLAGS += osptr_helper.cpp
172osptr_17: osptr.cpp
173 $(CXX) $(DT_CXXFLAGS) $(OTHER_CXXFLAGS) $(CXXFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@
174
175EXCLUDED_SOURCES += osptr_helper.cpp
176
177os_refcnt: OTHER_CFLAGS += -I$(SRCROOT)/../libkern/ -Wno-gcc-compat -Wno-undef -O3 -flto
178
813fb2f6
A
179task_inspect: CODE_SIGN_ENTITLEMENTS = task_inspect.entitlements
180task_inspect: OTHER_CFLAGS += -DENTITLED=1
181
d9a64523
A
182turnstile_multihop: OTHER_CFLAGS += -Wno-unused-macros
183turnstile_multihop: OTHER_CFLAGS += -I $(OBJROOT)/
184
813fb2f6
A
185CUSTOM_TARGETS += perf_exit_proc
186
187perf_exit_proc:
188 $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) perf_exit_proc.c -o $(SYMROOT)/perf_exit_proc
189
190install-perf_exit_proc: perf_exit_proc
191 mkdir -p $(INSTALLDIR)
192 cp $(SYMROOT)/perf_exit_proc $(INSTALLDIR)/
193
39037602
A
194stackshot_idle_25570396: INVALID_ARCHS = i386
195stackshot_idle_25570396: OTHER_LDFLAGS += -lkdd -framework Foundation
196
813fb2f6
A
197stackshot_block_owner_14362384: INVALID_ARCHS = i386
198stackshot_block_owner_14362384: OTHER_LDFLAGS += -framework Foundation -lpthread -lkdd
a39ff7e2
A
199ifeq ($(PLATFORM),MacOSX)
200stackshot_block_owner_14362384: OTHER_LDFLAGS += -lpcre
201endif
202
203all: $(DSTROOT)/usr/local/bin/kcdata
204
d9a64523 205$(DSTROOT)/usr/local/bin/kcdata: $(SRCROOT)/../tools/lldbmacros/kcdata.py
a39ff7e2
A
206 mkdir -p $(dir $@)
207 cp $< $@
208 chmod a+x $@
813fb2f6 209
5ba3f43e 210xnu_quick_test: OTHER_CFLAGS += xnu_quick_test_helpers.c
a39ff7e2 211
d9a64523
A
212xnu_quick_test_entitled: CODE_SIGN_ENTITLEMENTS = xnu_quick_test.entitlements
213
214CUSTOM_TARGETS += vm_set_max_addr_helper
215
216vm_set_max_addr_helper: vm_set_max_addr_helper.c
217 $(CC) $(OTHER_CFLAGS) $(CFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) vm_set_max_addr_helper.c -o $(SYMROOT)/vm_set_max_addr_helper; \
218 echo $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; \
219 env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@;
220
221install-vm_set_max_addr_helper: vm_set_max_addr_helper
222 mkdir -p $(INSTALLDIR)
223 cp $(SYMROOT)/vm_set_max_addr_helper $(INSTALLDIR)/
224
813fb2f6 225ifeq ($(PLATFORM),iPhoneOS)
cb323159 226OTHER_TEST_TARGETS += jumbo_va_spaces_28530648_unentitled vm_phys_footprint_legacy
813fb2f6
A
227jumbo_va_spaces_28530648: CODE_SIGN_ENTITLEMENTS = jumbo_va_spaces_28530648.entitlements
228jumbo_va_spaces_28530648: OTHER_CFLAGS += -DENTITLED=1
229jumbo_va_spaces_28530648: OTHER_LDFLAGS += -ldarwintest_utils
230
231jumbo_va_spaces_28530648_unentitled: OTHER_LDFLAGS += -ldarwintest_utils
232jumbo_va_spaces_28530648_unentitled: jumbo_va_spaces_28530648.c
233 $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@
cb323159
A
234
235vm_phys_footprint_legacy: OTHER_LDFLAGS += -framework CoreFoundation -framework IOSurface
236vm_phys_footprint_legacy: OTHER_CFLAGS += -DLEGACY_FOOTPRINT_ENTITLED=1
237vm_phys_footprint_legacy: CODE_SIGN_ENTITLEMENTS=./legacy_footprint.entitlement
238vm_phys_footprint_legacy: vm_phys_footprint.c
239 $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@
240
813fb2f6
A
241endif
242
5ba3f43e
A
243task_info_28439149: CODE_SIGN_ENTITLEMENTS = ./task_for_pid_entitlement.plist
244
a39ff7e2
A
245proc_info: CODE_SIGN_ENTITLEMENTS = ./task_for_pid_entitlement.plist
246proc_info: OTHER_LDFLAGS += -ldarwintest_utils
247
d9a64523
A
248proc_info_list_kthreads: CODE_SIGN_ENTITLEMENTS = ./proc_info_list_kthreads.entitlements
249
cb323159
A
250proc_info_44873309: CODE_SIGN_ENTITLEMENTS = ./proc_info_44873309.entitlements
251
5ba3f43e
A
252disk_mount_conditioner: disk_mount_conditioner*
253disk_mount_conditioner: CODE_SIGN_ENTITLEMENTS=./disk_mount_conditioner-entitlements.plist
254disk_mount_conditioner: OTHER_LDFLAGS += -ldarwintest_utils
255
cb323159 256disk_mount_conditioner: OTHER_TEST_TARGETS += disk_mount_conditioner_unentitled
5ba3f43e
A
257disk_mount_conditioner_unentitled: OTHER_CFLAGS += -DTEST_UNENTITLED
258disk_mount_conditioner_unentitled: OTHER_LDFLAGS += -ldarwintest_utils
259disk_mount_conditioner_unentitled: disk_mount_conditioner.c
260 $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@
261
262work_interval_test: CODE_SIGN_ENTITLEMENTS = work_interval_test.entitlements
263work_interval_test: OTHER_CFLAGS += -DENTITLED=1
264
a39ff7e2
A
265settimeofday_29193041: OTHER_CFLAGS += drop_priv.c
266
5ba3f43e 267settimeofday_29193041_entitled: CODE_SIGN_ENTITLEMENTS = settimeofday_29193041.entitlements
a39ff7e2
A
268settimeofday_29193041_entitled: OTHER_CFLAGS += drop_priv.c
269
5ba3f43e
A
270thread_group_set_32261625: OTHER_LDFLAGS = -framework ktrace
271thread_group_set_32261625: INVALID_ARCHS = i386
272
273task_info: CODE_SIGN_ENTITLEMENTS = task_for_pid_entitlement.plist
274
cb323159
A
275task_vm_info_decompressions: INVALID_ARCHS = x86_64 i386
276
a39ff7e2
A
277socket_bind_35243417: CODE_SIGN_ENTITLEMENTS = network_entitlements.plist
278socket_bind_35685803: CODE_SIGN_ENTITLEMENTS = network_entitlements.plist
279
d9a64523
A
280net_tuntests: CODE_SIGN_ENTITLEMENTS = network_entitlements.plist
281
ea3f0419
A
282net_bridge: OTHER_CFLAGS += bpflib.c in_cksum.c
283net_bridge: OTHER_LDFLAGS += -ldarwintest_utils
284
a39ff7e2
A
285ifneq (osx,$(TARGET_NAME))
286EXCLUDED_SOURCES += no32exec_35914211.c no32exec_35914211_helper.c
94ff46dc
A
287else # target = osx
288CUSTOM_TARGETS += no32exec_35914211_helper no32exec_35914211_helper_binprefs
289
290no32exec_35914211_helper: INVALID_ARCHS = x86_64 i386
291no32exec_35914211_helper:
292 $(CC) $(LDFLAGS) $(CFLAGS) -arch i386 no32exec_35914211_helper.c -o $(SYMROOT)/$@;
293 env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@;
294
295install-no32exec_35914211_helper:
296 mkdir -p $(INSTALLDIR)
297 cp $(SYMROOT)/no32exec_35914211_helper $(INSTALLDIR)/
a39ff7e2 298
94ff46dc 299no32exec_35914211_helper_binprefs: INVALID_ARCHS = x86_64 i386
cb323159 300no32exec_35914211_helper_binprefs:
94ff46dc
A
301 $(CC) $(OTHER_CFLAGS) $(CFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) -arch i386 -arch x86_64 no32exec_35914211_helper.c -o $(SYMROOT)/$@;
302 env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@;
303
304install-no32exec_35914211_helper_binprefs:
305 mkdir -p $(INSTALLDIR)
306 cp $(SYMROOT)/no32exec_35914211_helper_binprefs $(INSTALLDIR)/
cb323159
A
307
308no32exec_35914211: INVALID_ARCHS = i386
309no32exec_35914211: no32exec_35914211_helper
310no32exec_35914211: no32exec_35914211_helper_binprefs
94ff46dc 311endif # (osx,$(TARGET_NAME)))
a39ff7e2 312
d9a64523
A
313MIG:=SDKROOT=$(SDKROOT) $(shell xcrun -sdk "$(TARGETSDK)" -find mig)
314
315CUSTOM_TARGETS += excserver
316
317excserver:
318 $(MIG) $(CFLAGS) \
319 -sheader $(OBJROOT)/excserver.h \
320 -server $(OBJROOT)/excserver.c \
321 -header /dev/null -user /dev/null \
322 excserver.defs
323install-excserver: ;
324
325exc_resource_threads: excserver
326exc_resource_threads: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT)
327
cb323159
A
328fp_exception: excserver
329fp_exception: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT)
330
0a7de745
A
331ifneq (osx,$(TARGET_NAME))
332EXCLUDED_SOURCES += ldt_code32.s ldt.c
333else
334$(OBJROOT)/ldt_mach_exc_server.c:
335 $(MIG) $(CFLAGS) \
336 -user /dev/null \
337 -server $(OBJROOT)/ldt_mach_exc_server.c \
338 -header $(OBJROOT)/ldt_mach_exc.h \
339 mach_exc.defs
340
341ldt: INVALID_ARCHS = i386
342ldt: $(OBJROOT)/ldt_mach_exc_server.c
cb323159
A
343ldt: OTHER_CFLAGS += -I $(OBJROOT) $(SRCROOT)/ldt_code32.s -Wl,-pagezero_size,0x1000 -Wno-missing-variable-declarations
344ldt: CODE_SIGN_ENTITLEMENTS=ldt_entitlement.plist
0a7de745
A
345endif
346
d26ffc64
A
347ifneq ($(PLATFORM),BridgeOS)
348EXCLUDED_SOURCES += remote_time.c
349else
350remote_time: INVALID_ARCHS = armv7 armv7s arm64_32
351endif
352
0a7de745 353vm_phys_footprint: OTHER_LDFLAGS += -framework CoreFoundation -framework IOSurface
cb323159
A
354
355debug_control_port_for_pid: CODE_SIGN_ENTITLEMENTS = ./debug_control_port_for_pid_entitlement.plist
356
357prng: OTHER_LDFLAGS += -ldarwintest_utils
0a7de745 358
ea3f0419
A
359OTHER_TEST_TARGETS += io_catalog_send_data
360
361io_catalog_send_data: INVALID_ARCHS = i386
362io_catalog_send_data: OTHER_CFLAGS += -DTEST_UNENTITLED -framework IOKit -framework CoreFoundation -framework Foundation
363io_catalog_send_data: iokit/io_catalog_send_data.m
364 $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@
365
366task_create_suid_cred: CODE_SIGN_ENTITLEMENTS = ./task_create_suid_cred_entitlement.plist
367
368OTHER_TEST_TARGETS += task_create_suid_cred_unentitled
369task_create_suid_cred_unentitled: OTHER_CFLAGS += -DUNENTITLED
370task_create_suid_cred_unentitled: task_create_suid_cred.c
371 $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@
372
39037602 373include $(DEVELOPER_DIR)/AppleInternal/Makefiles/darwintest/Makefile.targets