source: trunk/third/glib2/tests/Makefile.am @ 18159

Revision 18159, 4.7 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18158, which included commits to RCS files with non-trunk default branches.
Line 
1INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/glib -I$(top_srcdir)/gmodule @GLIB_DEBUG_FLAGS@
2
3EFENCE=
4
5libglib = $(top_builddir)/glib/libglib-2.0.la
6libgthread = $(top_builddir)/gthread/libgthread-2.0.la
7libgmodule = $(top_builddir)/gmodule/libgmodule-2.0.la
8libgobject = $(top_builddir)/gobject/libgobject-2.0.la
9
10if PLATFORM_WIN32
11libadd_libgmodule = $(libgmodule)
12libadd_libglib = $(libglib)
13no_undefined = -no-undefined
14
15module_test_exp = module-test.exp
16
17module-test.exp: module-test.o
18        dlltool --output-exp module-test.exp module-test.o
19
20spawn_test_win32_gui = spawn-test-win32-gui
21
22spawn_test_win32_gui_LDFLAGS = -mwindows
23
24endif
25
26EXTRA_DIST =                                    \
27        $(test_scripts)                         \
28        makefile.msc.in                         \
29        makefile.mingw.in                       \
30        casefold.txt                            \
31        casemap.txt                             \
32        gen-casefold-txt.pl                     \
33        gen-casemap-txt.pl                      \
34        iochannel-test-infile                   \
35        utf8.txt
36
37BUILT_EXTRA_DIST =                              \
38        makefile.mingw                          \
39        makefile.msc
40
41if HAVE_CXX
42CXX_TEST = cxx-test
43cxx_test_LDADD = $(progs_ldadd)
44cxx_test_SOURCES = cxx-test.C
45else
46CXX_TEST =
47endif
48
49if ENABLE_TIMELOOP
50timeloop = timeloop timeloop-closure
51endif
52noinst_PROGRAMS = testglib patterntest testgdate testgdateparser unicode-normalize unicode-collate $(timeloop)
53testglib_LDADD = $(libglib)
54patterntest_LDADD = $(libglib)
55testgdate_LDADD = $(libglib)
56testgdateparser_LDADD = $(libglib)
57unicode_normalize_LDADD = $(libglib)
58unicode_collate_LDADD = $(libglib)
59if ENABLE_TIMELOOP
60timeloop_LDADD = $(libglib)
61timeloop_closure_LDADD = $(libglib) $(libgobject)
62endif
63
64test_programs =                                 \
65        array-test                              \
66        $(CXX_TEST)                             \
67        date-test                               \
68        dirname-test                            \
69        gio-test                                \
70        hash-test                               \
71        iochannel-test                          \
72        list-test                               \
73        mainloop-test                           \
74        module-test                             \
75        node-test                               \
76        queue-test                              \
77        qsort-test                              \
78        rand-test                               \
79        relation-test                           \
80        shell-test                              \
81        slist-test                              \
82        spawn-test                              \
83        $(spawn_test_win32_gui)                 \
84        strfunc-test                            \
85        string-test                             \
86        strtod-test                             \
87        thread-test                             \
88        threadpool-test                         \
89        tree-test                               \
90        type-test                               \
91        unicode-caseconv                        \
92        unicode-encoding                        \
93        uri-test
94
95test_scripts = run-markup-tests.sh
96
97test_script_support_programs = markup-test
98
99check_PROGRAMS = $(test_programs) $(test_script_support_programs)
100
101TESTS = $(test_programs) $(test_scripts)
102TESTS_ENVIRONMENT = srcdir=$(srcdir) \
103        LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset
104
105progs_ldadd = $(EFENCE) $(libglib) $(EFENCE)
106thread_ldadd = $(libgthread) @G_THREAD_LIBS@ $(progs_ldadd)
107module_ldadd = $(libgmodule) @G_MODULE_LIBS@ $(progs_ldadd)
108
109array_test_LDADD = $(progs_ldadd)
110date_test_LDADD = $(progs_ldadd)
111dirname_test_LDADD = $(progs_ldadd)
112gio_test_LDADD = $(progs_ldadd)
113hash_test_LDADD = $(progs_ldadd)
114iochannel_test_LDADD = $(progs_ldadd)
115list_test_LDADD = $(progs_ldadd)
116mainloop_test_LDADD = $(thread_ldadd)
117markup_test_LDADD = $(progs_ldadd)
118module_test_LDADD = $(module_ldadd) $(module_test_exp)
119module_test_LDFLAGS = @G_MODULE_LDFLAGS@
120node_test_LDADD = $(progs_ldadd)
121queue_test_LDADD = $(progs_ldadd)
122qsort_test_LDADD = $(progs_ldadd)
123rand_test_LDADD = $(progs_ldadd)
124relation_test_LDADD = $(progs_ldadd)
125shell_test_LDADD = $(progs_ldadd)
126slist_test_LDADD = $(progs_ldadd)
127spawn_test_LDADD = $(progs_ldadd)
128strfunc_test_LDADD = $(progs_ldadd)
129string_test_LDADD = $(progs_ldadd)
130strtod_test_LDADD = $(progs_ldadd) -lm
131thread_test_LDADD = $(thread_ldadd)
132threadpool_test_LDADD = $(thread_ldadd)
133tree_test_LDADD = $(progs_ldadd)
134type_test_LDADD = $(progs_ldadd)
135unicode_encoding_LDADD = $(progs_ldadd)
136unicode_caseconv_LDADD = $(progs_ldadd)
137uri_test_LDADD = $(progs_ldadd)
138
139lib_LTLIBRARIES = libmoduletestplugin_a.la libmoduletestplugin_b.la
140
141# Prevent those libs from being installed
142install-libLTLIBRARIES:
143        :
144
145libmoduletestplugin_a_la_SOURCES = libmoduletestplugin_a.c
146libmoduletestplugin_a_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module $(no_undefined) -rpath $(libdir)
147libmoduletestplugin_a_la_LIBADD = @G_MODULE_LIBS@ $(libadd_libgmodule) $(libadd_libglib)
148
149libmoduletestplugin_b_la_SOURCES = libmoduletestplugin_b.c
150libmoduletestplugin_b_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module $(no_undefined) -rpath $(libdir)
151libmoduletestplugin_b_la_LIBADD = @G_MODULE_LIBS@ $(libadd_libgmodule) $(libadd_libglib)
152
153makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/tests/makefile.mingw.in
154        cd $(top_builddir) && CONFIG_FILES=tests/$@ CONFIG_HEADERS= $(SHELL) ./config.status
155
156makefile.msc: $(top_builddir)/config.status $(top_srcdir)/tests/makefile.msc.in
157        cd $(top_builddir) && CONFIG_FILES=tests/$@ CONFIG_HEADERS= $(SHELL) ./config.status
158
159dist-hook: $(BUILT_EXTRA_DIST)
160        files='$(BUILT_EXTRA_DIST)'; \
161        for f in $$files; do \
162          if test -f $$f; then d=.; else d=$(srcdir); fi; \
163          cp $$d/$$f $(distdir) || exit 1; done
164        mkdir $(distdir)/markups;          \
165        for f in $(srcdir)/markups/* ; do  \
166          cp $$f $(distdir)/markups;       \
167        done
Note: See TracBrowser for help on using the repository browser.