]> git.saurik.com Git - apple/libpthread.git/blame - tests/Makefile
libpthread-218.20.1.tar.gz
[apple/libpthread.git] / tests / Makefile
CommitLineData
2546420a
A
1PROJECT := libpthread
2TEST_DIR := tests/
964d3577 3
2546420a
A
4ifeq ($(DEVELOPER_DIR),)
5 DEVELOPER_DIR := $(shell xcode-select -p)
6endif
3a6437e6 7
2546420a 8include $(DEVELOPER_DIR)/AppleInternal/Makefiles/darwintest/Makefile.common
3a6437e6 9
2546420a
A
10TARGETS :=
11TARGETS += atfork
12TARGETS += bsdthread_set_self
13TARGETS += cond
14#TARGETS += cond_hang3
15#TARGETS += cond_stress
16TARGETS += cond_timed
17TARGETS += custom_stack
18TARGETS += stack_aslr
19TARGETS += join
20TARGETS += main_stack
21TARGETS += main_stack_custom
22#TARGETS += maxwidth
23TARGETS += mutex
24TARGETS += mutex_try
25TARGETS += once_cancel
26TARGETS += pthread_attr_setstacksize
27TARGETS += pthread_bulk_create
28TARGETS += pthread_cancel
29TARGETS += pthread_cwd
30TARGETS += pthread_exit
31TARGETS += pthread_introspection
32TARGETS += pthread_setspecific
33TARGETS += pthread_threadid_np
34#TARGETS += qos
35#TARGETS += rwlock-22244050
36#TARGETS += rwlock-signal
37#TARGETS += rwlock
38TARGETS += tsd
39#TARGETS += wq_block_handoff
40#TARGETS += wq_event_manager
41#TARGETS += wq_kevent
42#TARGETS += wq_kevent_stress
43TARGETS += add_timer_termination
964d3577 44
2546420a 45OTHER_TARGETS :=
964d3577 46
2546420a
A
47OTHER_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
51OTHER_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
59main_stack_custom: OTHER_LDFLAGS += -Wl,-stack_size,0x14000
60main_stack_custom: OTHER_CFLAGS += -DSTACKSIZE=0x14000
964d3577 61
2546420a 62bsdthread_set_self: OTHER_CFLAGS += -D_DARWIN_FEATURE_CLOCK_GETTIME
3a6437e6 63
2546420a 64include $(DEVELOPER_DIR)/AppleInternal/Makefiles/darwintest/Makefile.targets