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
77 testglib_LDADD = $(libglib)
78 patterntest_LDADD = $(libglib)
79 testgdate_LDADD = $(libglib)
80 testgdateparser_LDADD = $(libglib)
81 unicode_normalize_LDADD = $(libglib)
82 errorcheck_mutex_test_LDADD = $(libglib) $(libgthread) $(G_THREAD_LIBS)
84 timeloop_LDADD = $(libglib)
85 timeloop_closure_LDADD = $(libglib) $(libgobject)
129 $(spawn_test_win32_gui) \
145 test_scripts = run-markup-tests.sh run-collate-tests.sh run-bookmark-test.sh
147 test_script_support_programs = markup-test unicode-collate bookmarkfile-test
149 check_PROGRAMS = $(test_programs) $(test_script_support_programs)
151 TESTS = $(test_programs) $(test_scripts)
152 TESTS_ENVIRONMENT = srcdir=$(srcdir) \
153 LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset \
155 MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
157 progs_ldadd = $(EFENCE) $(libglib) $(EFENCE)
158 thread_ldadd = $(libgthread) $(G_THREAD_LIBS) $(progs_ldadd)
159 module_ldadd = $(libgmodule) $(G_MODULE_LIBS) $(progs_ldadd)
161 atomic_test_LDADD = $(progs_ldadd)
162 array_test_LDADD = $(progs_ldadd)
163 base64_test_LDADD = $(progs_ldadd)
164 bit_test_LDADD = $(progs_ldadd)
165 bookmarkfile_test_LDADD = $(progs_ldadd)
166 child_test_LDADD = $(thread_ldadd)
167 completion_test_LDADD = $(progs_ldadd)
168 convert_test_LDADD = $(progs_ldadd)
169 date_test_LDADD = $(progs_ldadd)
170 dirname_test_LDADD = $(progs_ldadd)
171 file_test_LDADD = $(progs_ldadd)
172 env_test_LDADD = $(progs_ldadd)
173 gio_test_LDADD = $(progs_ldadd)
174 hash_test_LDADD = $(progs_ldadd)
175 iochannel_test_LDADD = $(progs_ldadd)
176 keyfile_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 option_test_LDADD = $(progs_ldadd)
187 printf_test_LDADD = $(progs_ldadd)
188 queue_test_LDADD = $(progs_ldadd)
189 asyncqueue_test_LDADD = $(thread_ldadd)
190 qsort_test_LDADD = $(progs_ldadd)
191 rand_test_LDADD = $(progs_ldadd)
192 relation_test_LDADD = $(progs_ldadd)
193 sequence_test_LDADD = $(progs_ldadd)
194 shell_test_LDADD = $(progs_ldadd)
195 slist_test_LDADD = $(progs_ldadd)
196 slice_test_SOURCES = slice-test.c memchunks.c
197 slice_test_LDADD = $(thread_ldadd)
198 slice_color_SOURCES = slice-color.c memchunks.c
199 slice_color_LDADD = $(thread_ldadd)
200 slice_concurrent_SOURCES = slice-concurrent.c
201 slice_concurrent_LDADD = $(thread_ldadd)
202 slice_threadinit_SOURCES = slice-threadinit.c
203 slice_threadinit_LDADD = $(thread_ldadd)
204 spawn_test_LDADD = $(progs_ldadd)
205 strfunc_test_LDADD = $(progs_ldadd)
206 string_test_LDADD = $(progs_ldadd)
207 strtod_test_LDADD = $(progs_ldadd) -lm
208 strtoll_test_LDADD = $(progs_ldadd) -lm
209 thread_test_LDADD = $(thread_ldadd)
210 threadpool_test_LDADD = $(thread_ldadd)
211 tree_test_LDADD = $(progs_ldadd)
212 type_test_LDADD = $(progs_ldadd)
213 unicode_encoding_LDADD = $(progs_ldadd)
214 unicode_caseconv_LDADD = $(progs_ldadd)
215 unicode_collate_LDADD = $(progs_ldadd)
216 utf8_validate_LDADD = $(progs_ldadd)
217 utf8_pointer_LDADD = $(progs_ldadd)
218 uri_test_LDADD = $(progs_ldadd)
219 regex_test_LDADD = $(progs_ldadd)
220 markup_collect_LDADD = $(progs_ldadd)
222 lib_LTLIBRARIES = libmoduletestplugin_a.la libmoduletestplugin_b.la
224 # Prevent those libs from being installed
225 install-libLTLIBRARIES:
228 libmoduletestplugin_a_la_SOURCES = libmoduletestplugin_a.c
229 libmoduletestplugin_a_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined) -rpath $(libdir)
230 libmoduletestplugin_a_la_LIBADD = $(G_MODULE_LIBS) $(libadd_libgmodule) $(libadd_libglib)
232 libmoduletestplugin_b_la_SOURCES = libmoduletestplugin_b.c
233 libmoduletestplugin_b_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined) -rpath $(libdir)
234 libmoduletestplugin_b_la_LIBADD = $(G_MODULE_LIBS) $(libadd_libgmodule) $(libadd_libglib)
236 dist-hook: $(BUILT_EXTRA_DIST)
237 files='$(BUILT_EXTRA_DIST)'; \
238 for f in $$files; do \
239 if test -f $$f; then d=.; else d=$(srcdir); fi; \
240 cp $$d/$$f $(distdir) || exit 1; done
241 mkdir $(distdir)/markups; \
242 for f in $(srcdir)/markups/* ; do \
243 cp $$f $(distdir)/markups; done
244 mkdir $(distdir)/collate; \
245 for f in $(srcdir)/collate/* ; do \
246 if test -f $$f; then cp $$f $(distdir)/collate; fi; done
247 mkdir $(distdir)/bookmarks; \
248 for f in $(srcdir)/bookmarks/* ; do \
249 cp $$f $(distdir)/bookmarks; done
252 iochannel-test-outfile \
253 file-test-get-contents \