summaryrefslogtreecommitdiff
path: root/gthread/tests/Makefile.am
blob: 825e97e88f0393eb3d5ea546bf9b4d0dac55a706 (plain)
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
include $(top_srcdir)/Makefile.decl

INCLUDES = -g $(gthread_INCLUDES) $(GLIB_DEBUG_FLAGS)

noinst_PROGRAMS = $(TEST_PROGS) test-spawn-echo
progs_ldadd     = $(top_builddir)/glib/libglib-2.0.la \
		  $(top_builddir)/gthread/libgthread-2.0.la

test_spawn_echo_SOURCES = test-spawn-echo.c
test_spawn_echo_LDADD = $(progs_ldadd)

TEST_PROGS	 += 1bit-mutex
1bit_mutex_LDADD  = $(progs_ldadd) $(top_builddir)/gthread/libgthread-2.0.la

TEST_PROGS	 += 642026
642026_LDADD	  = $(progs_ldadd)

TEST_PROGS	      += 1bit-emufutex
1bit_emufutex_SOURCES  = 1bit-mutex.c
1bit_emufutex_CFLAGS   = -DTEST_EMULATED_FUTEX
1bit_emufutex_LDADD    = $(progs_ldadd) $(top_builddir)/gthread/libgthread-2.0.la

if OS_UNIX
TEST_PROGS += unix-multithreaded
unix_multithreaded_SOURCES = $(top_srcdir)/glib/tests/unix.c
unix_multithreaded_CFLAGS   = -DTEST_THREADED
unix_multithreaded_LDADD    = $(progs_ldadd) $(top_builddir)/gthread/libgthread-2.0.la
endif

TEST_PROGS += atomic
atomic_SOURCES = atomic.c
atomic_LDADD = $(progs_ldadd) $(top_builddir)/gthread/libgthread-2.0.la

TEST_PROGS += spawn-multithreaded
spawn_multithreaded_SOURCES = spawn-multithreaded.c
spawn_multithreaded_LDADD    = $(progs_ldadd) $(top_builddir)/gthread/libgthread-2.0.la

TEST_PROGS += spawn-singlethread
spawn_singlethread_SOURCES = spawn-singlethread.c
spawn_singlethread_LDADD    = $(progs_ldadd) $(top_builddir)/gthread/libgthread-2.0.la