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