]>
Commit | Line | Data |
---|---|---|
2546420a A |
1 | PROJECT := libpthread |
2 | TEST_DIR := tests/ | |
964d3577 | 3 | |
2546420a A |
4 | ifeq ($(DEVELOPER_DIR),) |
5 | DEVELOPER_DIR := $(shell xcode-select -p) | |
6 | endif | |
3a6437e6 | 7 | |
2546420a | 8 | include $(DEVELOPER_DIR)/AppleInternal/Makefiles/darwintest/Makefile.common |
3a6437e6 | 9 | |
2546420a A |
10 | TARGETS := |
11 | TARGETS += atfork | |
12 | TARGETS += bsdthread_set_self | |
13 | TARGETS += cond | |
14 | #TARGETS += cond_hang3 | |
15 | #TARGETS += cond_stress | |
16 | TARGETS += cond_timed | |
17 | TARGETS += custom_stack | |
18 | TARGETS += stack_aslr | |
19 | TARGETS += join | |
20 | TARGETS += main_stack | |
21 | TARGETS += main_stack_custom | |
22 | #TARGETS += maxwidth | |
23 | TARGETS += mutex | |
24 | TARGETS += mutex_try | |
25 | TARGETS += once_cancel | |
26 | TARGETS += pthread_attr_setstacksize | |
27 | TARGETS += pthread_bulk_create | |
28 | TARGETS += pthread_cancel | |
29 | TARGETS += pthread_cwd | |
30 | TARGETS += pthread_exit | |
31 | TARGETS += pthread_introspection | |
32 | TARGETS += pthread_setspecific | |
33 | TARGETS += pthread_threadid_np | |
34 | #TARGETS += qos | |
35 | #TARGETS += rwlock-22244050 | |
36 | #TARGETS += rwlock-signal | |
37 | #TARGETS += rwlock | |
38 | TARGETS += tsd | |
39 | #TARGETS += wq_block_handoff | |
40 | #TARGETS += wq_event_manager | |
41 | #TARGETS += wq_kevent | |
42 | #TARGETS += wq_kevent_stress | |
43 | TARGETS += add_timer_termination | |
964d3577 | 44 | |
2546420a | 45 | OTHER_TARGETS := |
964d3577 | 46 | |
2546420a A |
47 | OTHER_CFLAGS := -DDARWINTEST -Weverything \ |
48 | -Wno-vla -Wno-bad-function-cast -Wno-missing-noreturn \ | |
49 | -Wno-missing-field-initializers -Wno-format-pedantic \ | |
50 | -Wno-gnu-folding-constant | |
51 | OTHER_LDFLAGS := -ldarwintest_utils | |
964d3577 | 52 | |
2546420a A |
53 | #TARGETS += main_stack_legacy // Disabled by default due to linker warnings |
54 | #main_stack_legacy: OTHER_LDFLAGS += -Wl,-stack_addr,0xc1000000 -Wl,-stack_size,0x0f00000 | |
55 | #main_stack_legacy: OTHER_CFLAGS += -DSTACKSIZE=0x0f00000 | |
56 | #main_stack_legacy: ARCH_FLAGS = -arch i386 | |
57 | #main_stack_legacy: DEPLOYMENT_TARGET_FLAGS = -mmacosx-version-min=10.7 | |
964d3577 | 58 | |
2546420a A |
59 | main_stack_custom: OTHER_LDFLAGS += -Wl,-stack_size,0x14000 |
60 | main_stack_custom: OTHER_CFLAGS += -DSTACKSIZE=0x14000 | |
964d3577 | 61 | |
2546420a | 62 | bsdthread_set_self: OTHER_CFLAGS += -D_DARWIN_FEATURE_CLOCK_GETTIME |
3a6437e6 | 63 | |
2546420a | 64 | include $(DEVELOPER_DIR)/AppleInternal/Makefiles/darwintest/Makefile.targets |