1 include $(top_srcdir)/Makefile.decl
3 SUBDIRS=gobject refcount
8 -I$(top_srcdir)/gmodule \
15 libglib = $(top_builddir)/glib/libglib-2.0.la
16 libgthread = $(top_builddir)/gthread/libgthread-2.0.la
17 libgmodule = $(top_builddir)/gmodule/libgmodule-2.0.la
18 libgobject = $(top_builddir)/gobject/libgobject-2.0.la
20 libadd_libgmodule = $(libgmodule)
21 libadd_libglib = $(libglib)
23 no_undefined = -no-undefined
25 module_test_exp = module-test.exp
27 module-test.exp: module-test.o
28 dlltool --output-exp module-test.exp module-test.o
30 spawn_test_win32_gui = spawn-test-win32-gui
32 spawn_test_win32_gui_LDFLAGS = -mwindows
43 iochannel-test-infile \
52 cxx_test_LDADD = $(progs_ldadd)
53 cxx_test_SOURCES = cxx-test.C
59 timeloop = timeloop timeloop-closure
61 noinst_PROGRAMS = $(TEST_PROGS) \
67 errorcheck-mutex-test \
70 TEST_PROGS += testglib
71 testglib_SOURCES = testglib.c
72 testglib_LDADD = $(libglib)
75 patterntest_LDADD = $(libglib)
76 testgdate_LDADD = $(libglib)
77 testgdateparser_LDADD = $(libglib)
78 unicode_normalize_LDADD = $(libglib)
79 errorcheck_mutex_test_LDADD = $(libglib) $(libgthread) $(G_THREAD_LIBS)
80 assert_msg_test_LDADD = $(libglib)
82 timeloop_LDADD = $(libglib)
83 timeloop_closure_LDADD = $(libglib) $(libgobject)
121 $(spawn_test_win32_gui) \
131 test_scripts = run-markup-tests.sh run-collate-tests.sh run-bookmark-test.sh run-assert-msg-test.sh
133 test_script_support_programs = markup-test unicode-collate bookmarkfile-test
135 check_PROGRAMS = $(test_programs) $(test_script_support_programs)
137 TESTS = $(test_programs) $(test_scripts)
138 TESTS_ENVIRONMENT = srcdir=$(srcdir) \
139 LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset \
141 MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
143 progs_ldadd = $(EFENCE) $(libglib) $(EFENCE)
144 thread_ldadd = $(libgthread) $(G_THREAD_LIBS) $(progs_ldadd)
145 module_ldadd = $(libgmodule) $(G_MODULE_LIBS) $(progs_ldadd)
147 atomic_test_LDADD = $(progs_ldadd)
148 bit_test_LDADD = $(progs_ldadd)
149 bookmarkfile_test_LDADD = $(progs_ldadd)
150 checksum_test_LDADD = $(progs_ldadd)
151 child_test_LDADD = $(thread_ldadd)
152 completion_test_LDADD = $(progs_ldadd)
153 convert_test_LDADD = $(progs_ldadd)
154 date_test_LDADD = $(progs_ldadd)
155 dirname_test_LDADD = $(progs_ldadd)
156 file_test_LDADD = $(progs_ldadd)
157 env_test_LDADD = $(progs_ldadd)
158 gio_test_LDADD = $(progs_ldadd)
159 hash_test_LDADD = $(progs_ldadd)
160 iochannel_test_LDADD = $(progs_ldadd)
161 list_test_LDADD = $(progs_ldadd)
162 mainloop_test_LDADD = $(thread_ldadd)
163 markup_test_LDADD = $(progs_ldadd)
164 mapping_test_LDADD = $(progs_ldadd)
165 markup_escape_test_LDADD = $(progs_ldadd)
166 module_test_LDADD = $(module_ldadd) $(module_test_exp)
167 module_test_LDFLAGS = $(G_MODULE_LDFLAGS)
168 node_test_LDADD = $(progs_ldadd)
169 onceinit_LDADD = $(thread_ldadd)
170 queue_test_LDADD = $(progs_ldadd)
171 asyncqueue_test_LDADD = $(thread_ldadd)
172 qsort_test_LDADD = $(progs_ldadd)
173 relation_test_LDADD = $(progs_ldadd)
174 shell_test_LDADD = $(progs_ldadd)
175 slist_test_LDADD = $(progs_ldadd)
176 slice_test_SOURCES = slice-test.c memchunks.c
177 slice_test_LDADD = $(thread_ldadd)
178 slice_color_SOURCES = slice-color.c memchunks.c
179 slice_color_LDADD = $(thread_ldadd)
180 slice_concurrent_SOURCES = slice-concurrent.c
181 slice_concurrent_LDADD = $(thread_ldadd)
182 slice_threadinit_SOURCES = slice-threadinit.c
183 slice_threadinit_LDADD = $(thread_ldadd)
184 spawn_test_LDADD = $(progs_ldadd)
185 thread_test_LDADD = $(thread_ldadd)
186 threadpool_test_LDADD = $(thread_ldadd)
187 tree_test_LDADD = $(progs_ldadd)
188 type_test_LDADD = $(progs_ldadd)
189 unicode_encoding_LDADD = $(progs_ldadd)
190 unicode_caseconv_LDADD = $(progs_ldadd)
191 unicode_collate_LDADD = $(progs_ldadd)
192 utf8_validate_LDADD = $(progs_ldadd)
193 utf8_pointer_LDADD = $(progs_ldadd)
194 uri_test_LDADD = $(progs_ldadd)
195 markup_collect_LDADD = $(progs_ldadd)
197 noinst_LTLIBRARIES = libmoduletestplugin_a.la libmoduletestplugin_b.la
199 libmoduletestplugin_a_la_SOURCES = libmoduletestplugin_a.c
200 libmoduletestplugin_a_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined) -rpath $(libdir)
201 libmoduletestplugin_a_la_LIBADD = $(G_MODULE_LIBS) $(libadd_libgmodule) $(libadd_libglib)
203 libmoduletestplugin_b_la_SOURCES = libmoduletestplugin_b.c
204 libmoduletestplugin_b_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined) -rpath $(libdir)
205 libmoduletestplugin_b_la_LIBADD = $(G_MODULE_LIBS) $(libadd_libgmodule) $(libadd_libglib)
207 dist-hook: $(BUILT_EXTRA_DIST)
208 files='$(BUILT_EXTRA_DIST)'; \
209 for f in $$files; do \
210 if test -f $$f; then d=.; else d=$(srcdir); fi; \
211 cp $$d/$$f $(distdir) || exit 1; done
212 mkdir $(distdir)/markups; \
213 for f in $(srcdir)/markups/* ; do \
214 cp $$f $(distdir)/markups; done
215 mkdir $(distdir)/collate; \
216 for f in $(srcdir)/collate/* ; do \
217 if test -f $$f; then cp $$f $(distdir)/collate; fi; done
218 mkdir $(distdir)/bookmarks; \
219 for f in $(srcdir)/bookmarks/* ; do \
220 cp $$f $(distdir)/bookmarks; done
223 iochannel-test-outfile \
224 file-test-get-contents \