Merge branch 'master' of ssh://git.stderr.nl/projects/chimara/chimara
[projects/chimara/chimara.git] / tests / Makefile.am
1 AM_CFLAGS = -Wall
2 AM_CPPFLAGS = -I$(top_srcdir)
3
4 # The rpath is necessary because stoopid libtool won't build a shared library
5 # if it's noinst_, because what POSSIBLE reason could you have to do that?
6 TEST_PLUGIN_LIBTOOL_FLAGS = \
7         -module \
8         -shared \
9         -avoid-version \
10         -export-symbols-regex "^glk_main$$" \
11         -rpath $(abs_builddir)
12
13 noinst_PROGRAMS = test-multisession glulxercise plugin-loader test-close
14
15 test_multisession_SOURCES = test-multisession.c
16 test_multisession_CFLAGS = @TEST_CFLAGS@ $(AM_CFLAGS)
17 test_multisession_LDADD = @TEST_LIBS@ $(top_builddir)/libchimara/libchimara.la
18
19 glulxercise_SOURCES = glulxercise.c
20 glulxercise_CPPFLAGS = $(AM_CPPFLAGS) -DPACKAGE_SRC_DIR=\""$(srcdir)"\"
21 glulxercise_CFLAGS = @TEST_CFLAGS@ $(AM_CFLAGS) 
22 glulxercise_LDADD = @TEST_LIBS@ $(top_builddir)/libchimara/libchimara.la
23
24 plugin_loader_SOURCES = plugin-loader.c
25 plugin_loader_CFLAGS = @TEST_CFLAGS@ $(AM_CFLAGS)
26 plugin_loader_LDADD = @TEST_LIBS@ $(top_builddir)/libchimara/libchimara.la
27
28 test_close_SOURCES = test-close.c
29 test_close_CFLAGS = @TEST_CFLAGS@ $(AM_CFLAGS)
30 test_close_LDADD = @TEST_LIBS@ $(top_builddir)/libchimara/libchimara.la
31
32 noinst_LTLIBRARIES = first.la model.la gridtest.la splittest.la multiwin.la \
33         styletest.la soundtest.la test-userstyle.la
34
35 first_la_SOURCES = first.c
36 first_la_LDFLAGS = $(TEST_PLUGIN_LIBTOOL_FLAGS)
37
38 model_la_SOURCES = model.c
39 model_la_LDFLAGS = $(TEST_PLUGIN_LIBTOOL_FLAGS)
40
41 gridtest_la_SOURCES = gridtest.c
42 gridtest_la_LDFLAGS = $(TEST_PLUGIN_LIBTOOL_FLAGS)
43
44 splittest_la_SOURCES = splittest.c
45 splittest_la_LDFLAGS = $(TEST_PLUGIN_LIBTOOL_FLAGS)
46
47 multiwin_la_SOURCES = multiwin.c
48 multiwin_la_LDFLAGS = $(TEST_PLUGIN_LIBTOOL_FLAGS)
49
50 styletest_la_SOURCES = styletest.c
51 styletest_la_LDFLAGS = $(TEST_PLUGIN_LIBTOOL_FLAGS)
52
53 test_userstyle_la_SOURCES = test-userstyle.c
54 test_userstyle_la_LDFLAGS = $(TEST_PLUGIN_LIBTOOL_FLAGS)
55
56 soundtest_la_SOURCES = soundtest.c
57 soundtest_la_LDFLAGS = $(TEST_PLUGIN_LIBTOOL_FLAGS)
58
59
60 -include $(top_srcdir)/git.mk