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