source: xplcommon/test/Makefile.am@ 36:46f9ddb1e286

Last change on this file since 36:46f9ddb1e286 was 35:f8a5b321d0c3, checked in by István Váradi <ivaradi@…>, 12 years ago

Added support for detached threads

File size: 1.5 KB
Line 
1INCLUDES=-I$(top_srcdir)/src
2
3noinst_PROGRAMS=testthread testevent testlocsock testblkstream testmutex testcondvar
4if TARGET_API_POSIX
5noinst_PROGRAMS+=testrandom
6endif
7
8testthread_SOURCES=testthread.cc
9testthread_LDADD=../src/xplcommon/libxplcommon.la
10if TARGET_API_POSIX
11testthread_LDADD+=-lpthread
12endif
13if TARGET_API_WIN32
14testthread_LDFLAGS=-static-libgcc -static-libstdc++
15endif
16
17testevent_SOURCES=testevent.cc
18testevent_LDADD=../src/xplcommon/libxplcommon.la
19if TARGET_API_POSIX
20testevent_LDADD+=-lpthread
21endif
22if TARGET_API_WIN32
23testevent_LDFLAGS=-static-libgcc -static-libstdc++
24endif
25
26testlocsock_SOURCES=testlocsock.cc
27testlocsock_LDADD=../src/xplcommon/libxplcommon.la
28if TARGET_API_POSIX
29testlocsock_LDADD+=-lpthread
30endif
31if TARGET_API_WIN32
32testlocsock_LDFLAGS=-static-libgcc -static-libstdc++
33endif
34
35testblkstream_SOURCES=testblkstream.cc
36testblkstream_LDADD=../src/xplcommon/libxplcommon.la
37if TARGET_API_POSIX
38testblkstream_LDADD+=-lpthread
39endif
40if TARGET_API_WIN32
41testblkstream_LDFLAGS=-static-libgcc -static-libstdc++
42endif
43
44testmutex_SOURCES=testmutex.cc
45testmutex_LDADD=../src/xplcommon/libxplcommon.la
46if TARGET_API_POSIX
47testmutex_LDADD+=-lpthread
48endif
49if TARGET_API_WIN32
50testmutex_LDFLAGS=-static-libgcc -static-libstdc++
51endif
52
53testcondvar_SOURCES=testcondvar.cc
54testcondvar_LDADD=../src/xplcommon/libxplcommon.la
55if TARGET_API_POSIX
56testcondvar_LDADD+=-lpthread
57endif
58if TARGET_API_WIN32
59testcondvar_LDFLAGS=-static-libgcc -static-libstdc++
60endif
61
62testrandom_SOURCES=testrandom.cc
63testrandom_LDADD=../src/xplcommon/libxplcommon.la
Note: See TracBrowser for help on using the repository browser.