2010-01-29 00:41:19 +01:00
|
|
|
include $(top_srcdir)/Makefile.decl
|
|
|
|
|
2010-08-06 19:09:26 +02:00
|
|
|
INCLUDES = -g $(gthread_INCLUDES) $(GLIB_DEBUG_FLAGS)
|
2010-01-29 00:41:19 +01:00
|
|
|
|
2011-06-02 17:53:25 +02:00
|
|
|
noinst_PROGRAMS = $(TEST_PROGS) test-spawn-echo
|
2010-01-29 00:41:19 +01:00
|
|
|
progs_ldadd = $(top_builddir)/glib/libglib-2.0.la \
|
|
|
|
$(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
2011-06-02 17:53:25 +02:00
|
|
|
test_spawn_echo_SOURCES = test-spawn-echo.c
|
|
|
|
test_spawn_echo_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-01-29 00:41:19 +01:00
|
|
|
TEST_PROGS += 1bit-mutex
|
|
|
|
1bit_mutex_LDADD = $(progs_ldadd) $(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
|
2011-05-24 12:04:42 +02:00
|
|
|
TEST_PROGS += 642026
|
|
|
|
642026_LDADD = $(progs_ldadd)
|
|
|
|
|
2011-06-21 06:51:57 +02:00
|
|
|
TEST_PROGS += 642026-ec
|
|
|
|
642026_ec_SOURCES = 642026.c
|
|
|
|
642026_ec_LDADD = $(progs_ldadd)
|
|
|
|
642026_ec_CFLAGS = -DG_ERRORCHECK_MUTEXES
|
|
|
|
|
2010-01-29 00:41:19 +01:00
|
|
|
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
|
2011-03-17 15:11:41 +01:00
|
|
|
|
2011-05-11 16:42:14 +02:00
|
|
|
if OS_UNIX
|
2011-03-17 15:11:41 +01:00
|
|
|
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
|
2011-05-11 16:42:14 +02:00
|
|
|
endif
|
2011-05-22 07:29:22 +02:00
|
|
|
|
|
|
|
TEST_PROGS += atomic
|
|
|
|
atomic_SOURCES = atomic.c
|
|
|
|
atomic_LDADD = $(progs_ldadd) $(top_builddir)/gthread/libgthread-2.0.la
|
2011-06-02 17:53:25 +02:00
|
|
|
|
|
|
|
TEST_PROGS += spawn-multithreaded
|
|
|
|
spawn_multithreaded_SOURCES = spawn-multithreaded.c
|
|
|
|
spawn_multithreaded_LDADD = $(progs_ldadd) $(top_builddir)/gthread/libgthread-2.0.la
|
2011-06-10 13:29:28 +02:00
|
|
|
|
|
|
|
TEST_PROGS += spawn-singlethread
|
|
|
|
spawn_singlethread_SOURCES = spawn-singlethread.c
|
|
|
|
spawn_singlethread_LDADD = $(progs_ldadd) $(top_builddir)/gthread/libgthread-2.0.la
|
2011-07-25 15:07:16 +02:00
|
|
|
|
|
|
|
TEST_PROGS += gwakeup
|
2011-07-25 18:50:45 +02:00
|
|
|
gwakeup_SOURCES = gwakeuptest.c ../../glib/gwakeup.c
|
2011-07-25 15:07:16 +02:00
|
|
|
gwakeup_LDADD = $(progs_ldadd) $(top_builddir)/gthread/libgthread-2.0.la
|
2011-07-25 17:43:28 +02:00
|
|
|
|
|
|
|
if HAVE_EVENTFD
|
|
|
|
TEST_PROGS += gwakeup-fallback
|
2011-07-25 18:50:45 +02:00
|
|
|
gwakeup_fallback_SOURCES = gwakeuptest.c ../../glib/gwakeup.c
|
2011-07-25 17:43:28 +02:00
|
|
|
gwakeup_fallback_CFLAGS = $(AM_CFLAGS) -DTEST_EVENTFD_FALLBACK
|
|
|
|
gwakeup_fallback_LDADD = $(progs_ldadd) $(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
endif
|