1 include $(top_srcdir)/Makefile.decl
3 SUBDIRS=gobject refcount
6 enable_regex = -DENABLE_REGEX
13 -I$(top_srcdir)/glib \
14 -I$(top_srcdir)/gmodule \
22 libglib = $(top_builddir)/glib/libglib-2.0.la
23 libgthread = $(top_builddir)/gthread/libgthread-2.0.la
24 libgmodule = $(top_builddir)/gmodule/libgmodule-2.0.la
25 libgobject = $(top_builddir)/gobject/libgobject-2.0.la
27 libadd_libgmodule = $(libgmodule)
28 libadd_libglib = $(libglib)
30 no_undefined = -no-undefined
32 module_test_exp = module-test.exp
34 module-test.exp: module-test.o
35 dlltool --output-exp module-test.exp module-test.o
37 spawn_test_win32_gui = spawn-test-win32-gui
39 spawn_test_win32_gui_LDFLAGS = -mwindows
50 iochannel-test-infile \
59 cxx_test_LDADD = $(progs_ldadd)
60 cxx_test_SOURCES = cxx-test.C
66 timeloop = timeloop timeloop-closure
68 noinst_PROGRAMS = $(TEST_PROGS) \
76 TEST_PROGS += scannerapi
77 scannerapi_SOURCES = scannerapi.c
78 scannerapi_LDADD = $(progs_ldadd)
79 TEST_PROGS += testglib
80 testglib_SOURCES = testglib.c
81 testglib_LDADD = $(libglib)
82 TEST_PROGS += testingbase64
83 testingbase64_SOURCES = testingbase64.c
84 testingbase64_LDADD = $(progs_ldadd)
87 patterntest_LDADD = $(libglib)
88 testgdate_LDADD = $(libglib)
89 testgdateparser_LDADD = $(libglib)
90 unicode_normalize_LDADD = $(libglib)
91 errorcheck_mutex_test_LDADD = $(libglib) $(libgthread) $(G_THREAD_LIBS)
93 timeloop_LDADD = $(libglib)
94 timeloop_closure_LDADD = $(libglib) $(libgobject)
134 $(spawn_test_win32_gui) \
146 test_scripts = run-markup-tests.sh run-collate-tests.sh run-bookmark-test.sh
148 test_script_support_programs = markup-test unicode-collate bookmarkfile-test
150 check_PROGRAMS = $(test_programs) $(test_script_support_programs)
152 TESTS = $(test_programs) $(test_scripts)
153 TESTS_ENVIRONMENT = srcdir=$(srcdir) \
154 LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset \
156 MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
158 progs_ldadd = $(EFENCE) $(libglib) $(EFENCE)
159 thread_ldadd = $(libgthread) $(G_THREAD_LIBS) $(progs_ldadd)
160 module_ldadd = $(libgmodule) $(G_MODULE_LIBS) $(progs_ldadd)
162 atomic_test_LDADD = $(progs_ldadd)
163 base64_test_LDADD = $(progs_ldadd)
164 bit_test_LDADD = $(progs_ldadd)
165 bookmarkfile_test_LDADD = $(progs_ldadd)
166 checksum_test_LDADD = $(progs_ldadd)
167 child_test_LDADD = $(thread_ldadd)
168 completion_test_LDADD = $(progs_ldadd)
169 convert_test_LDADD = $(progs_ldadd)
170 date_test_LDADD = $(progs_ldadd)
171 dirname_test_LDADD = $(progs_ldadd)
172 file_test_LDADD = $(progs_ldadd)
173 env_test_LDADD = $(progs_ldadd)
174 gio_test_LDADD = $(progs_ldadd)
175 hash_test_LDADD = $(progs_ldadd)
176 iochannel_test_LDADD = $(progs_ldadd)
177 list_test_LDADD = $(progs_ldadd)
178 mainloop_test_LDADD = $(thread_ldadd)
179 markup_test_LDADD = $(progs_ldadd)
180 mapping_test_LDADD = $(progs_ldadd)
181 markup_escape_test_LDADD = $(progs_ldadd)
182 module_test_LDADD = $(module_ldadd) $(module_test_exp)
183 module_test_LDFLAGS = $(G_MODULE_LDFLAGS)
184 node_test_LDADD = $(progs_ldadd)
185 onceinit_LDADD = $(thread_ldadd)
186 queue_test_LDADD = $(progs_ldadd)
187 asyncqueue_test_LDADD = $(thread_ldadd)
188 qsort_test_LDADD = $(progs_ldadd)
189 relation_test_LDADD = $(progs_ldadd)
190 sequence_test_LDADD = $(progs_ldadd)
191 shell_test_LDADD = $(progs_ldadd)
192 slist_test_LDADD = $(progs_ldadd)
193 slice_test_SOURCES = slice-test.c memchunks.c
194 slice_test_LDADD = $(thread_ldadd)
195 slice_color_SOURCES = slice-color.c memchunks.c
196 slice_color_LDADD = $(thread_ldadd)
197 slice_concurrent_SOURCES = slice-concurrent.c
198 slice_concurrent_LDADD = $(thread_ldadd)
199 slice_threadinit_SOURCES = slice-threadinit.c
200 slice_threadinit_LDADD = $(thread_ldadd)
201 spawn_test_LDADD = $(progs_ldadd)
202 thread_test_LDADD = $(thread_ldadd)
203 threadpool_test_LDADD = $(thread_ldadd)
204 tree_test_LDADD = $(progs_ldadd)
205 type_test_LDADD = $(progs_ldadd)
206 unicode_encoding_LDADD = $(progs_ldadd)
207 unicode_caseconv_LDADD = $(progs_ldadd)
208 unicode_collate_LDADD = $(progs_ldadd)
209 utf8_validate_LDADD = $(progs_ldadd)
210 utf8_pointer_LDADD = $(progs_ldadd)
211 uri_test_LDADD = $(progs_ldadd)
212 regex_test_LDADD = $(progs_ldadd)
213 markup_collect_LDADD = $(progs_ldadd)
215 noinst_LTLIBRARIES = libmoduletestplugin_a.la libmoduletestplugin_b.la
217 libmoduletestplugin_a_la_SOURCES = libmoduletestplugin_a.c
218 libmoduletestplugin_a_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined) -rpath $(libdir)
219 libmoduletestplugin_a_la_LIBADD = $(G_MODULE_LIBS) $(libadd_libgmodule) $(libadd_libglib)
221 libmoduletestplugin_b_la_SOURCES = libmoduletestplugin_b.c
222 libmoduletestplugin_b_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined) -rpath $(libdir)
223 libmoduletestplugin_b_la_LIBADD = $(G_MODULE_LIBS) $(libadd_libgmodule) $(libadd_libglib)
225 dist-hook: $(BUILT_EXTRA_DIST)
226 files='$(BUILT_EXTRA_DIST)'; \
227 for f in $$files; do \
228 if test -f $$f; then d=.; else d=$(srcdir); fi; \
229 cp $$d/$$f $(distdir) || exit 1; done
230 mkdir $(distdir)/markups; \
231 for f in $(srcdir)/markups/* ; do \
232 cp $$f $(distdir)/markups; done
233 mkdir $(distdir)/collate; \
234 for f in $(srcdir)/collate/* ; do \
235 if test -f $$f; then cp $$f $(distdir)/collate; fi; done
236 mkdir $(distdir)/bookmarks; \
237 for f in $(srcdir)/bookmarks/* ; do \
238 cp $$f $(distdir)/bookmarks; done
241 iochannel-test-outfile \
242 file-test-get-contents \