File: Makefile.am

package info (click to toggle)
libdispatch 0~svn188-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,448 kB
  • ctags: 1,652
  • sloc: sh: 10,139; ansic: 8,999; makefile: 229; objc: 37; cpp: 14
file content (89 lines) | stat: -rw-r--r-- 1,746 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#
#
#

noinst_LTLIBRARIES=libtest.la

libtest_la_SOURCES=			\
	dispatch_test.c

TESTS=					\
	dispatch_api			\
	dispatch_c99			\
	dispatch_cascade		\
	dispatch_debug 		    \
	dispatch_starfish		\
	queue_finalizer

# FIXME: These tests are disabled because they cause high CPU load
#        and/or crashes:
#    
#	        dispatch_priority		
#       	dispatch_priority2		
#           dispatch_read
#
#dispatch_priority2_SOURCES=dispatch_priority.c
#dispatch_priority2_CFLAGS=-DUSE_SET_TARGET_QUEUE=1

dispatch_c99_CFLAGS=-std=c99

if HAVE_CBLOCKS
CBLOCKS_TESTS=				\
	dispatch_after			\
	dispatch_apply			\
	dispatch_drift			\
	dispatch_group			\
	dispatch_pingpong		\
	dispatch_readsync		\
	dispatch_sema			\
	dispatch_timer_bit31		\
	dispatch_timer_bit63
endif
TESTS+=$(CBLOCKS_TESTS)

if HAVE_CXXBLOCKS
CXXBLOCKS_TESTS=			\
	dispatch_plusplus
dispatch_plusplus_SOURCES=dispatch_plusplus.cpp
endif
TESTS+=$(CXXBLOCKS_TESTS)

if HAVE_CORESERVICES
CORESERVICES_TESTS=			\
	dispatch_cffd
dispatch_cffd_LDFLAGS=-framework CoreFoundation
endif
TESTS+=$(CORESERVICES_TESTS)

if HAVE_POSIX_SPAWN_START_SUSPENDED
POSIX_SPAWN_START_SUSPENDED_TESTS=	\
	dispatch_proc
endif
TESTS+=$(POSIX_SPAWN_START_SUSPENDED_TESTS)

if USE_LEGACY_API
LEGACY_TESTS=				\
	dispatch_timer_set_time
endif
TESTS+=$(LEGACY_TESTS)

#
# XXX: By broken, we mean non-portable.  We should instead test for the OS
# features they depend on, or port them as required.
#
BROKEN_TOOLS=				\
	harness				\
	nsoperation

noinst_PROGRAMS=$(TESTS)

TOOLS=					\
	summarize

noinst_PROGRAMS+=$(TOOLS)

INCLUDES=-I$(top_builddir) -I$(top_srcdir)
LDADD=libtest.la ../src/libdispatch.la -lbsd -lm
CFLAGS=-Wall $(MARCH_FLAGS) $(CBLOCKS_FLAGS)
CXXFLAGS=-Wall $(MARCH_FLAGS) $(CXXBLOCKS_FLAGS)