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)
128 $(spawn_test_win32_gui) \
144 test_scripts = run-markup-tests.sh run-collate-tests.sh run-bookmark-test.sh
146 test_script_support_programs = markup-test unicode-collate bookmarkfile-test
148 check_PROGRAMS = $(test_programs) $(test_script_support_programs)
150 TESTS = $(test_programs) $(test_scripts)
151 TESTS_ENVIRONMENT = srcdir=$(srcdir) \
152 LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset \
154 MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
156 progs_ldadd = $(EFENCE) $(libglib) $(EFENCE)
157 thread_ldadd = $(libgthread) $(G_THREAD_LIBS) $(progs_ldadd)
158 module_ldadd = $(libgmodule) $(G_MODULE_LIBS) $(progs_ldadd)
160 atomic_test_LDADD = $(progs_ldadd)
161 array_test_LDADD = $(progs_ldadd)
162 base64_test_LDADD = $(progs_ldadd)
163 bit_test_LDADD = $(progs_ldadd)
164 bookmarkfile_test_LDADD = $(progs_ldadd)
165 child_test_LDADD = $(thread_ldadd)
166 completion_test_LDADD = $(progs_ldadd)
167 convert_test_LDADD = $(progs_ldadd)
168 date_test_LDADD = $(progs_ldadd)
169 dirname_test_LDADD = $(progs_ldadd)
170 file_test_LDADD = $(progs_ldadd)
171 env_test_LDADD = $(progs_ldadd)
172 gio_test_LDADD = $(progs_ldadd)
173 hash_test_LDADD = $(progs_ldadd)
174 iochannel_test_LDADD = $(progs_ldadd)
175 keyfile_test_LDADD = $(progs_ldadd)
176 list_test_LDADD = $(progs_ldadd)
177 mainloop_test_LDADD = $(thread_ldadd)
178 markup_test_LDADD = $(progs_ldadd)
179 mapping_test_LDADD = $(progs_ldadd)
180 markup_escape_test_LDADD = $(progs_ldadd)
181 module_test_LDADD = $(module_ldadd) $(module_test_exp)
182 module_test_LDFLAGS = $(G_MODULE_LDFLAGS)
183 node_test_LDADD = $(progs_ldadd)
184 onceinit_LDADD = $(thread_ldadd)
185 option_test_LDADD = $(progs_ldadd)
186 printf_test_LDADD = $(progs_ldadd)
187 queue_test_LDADD = $(progs_ldadd)
188 asyncqueue_test_LDADD = $(thread_ldadd)
189 qsort_test_LDADD = $(progs_ldadd)
190 rand_test_LDADD = $(progs_ldadd)
191 relation_test_LDADD = $(progs_ldadd)
192 sequence_test_LDADD = $(progs_ldadd)
193 shell_test_LDADD = $(progs_ldadd)
194 slist_test_LDADD = $(progs_ldadd)
195 slice_test_SOURCES = slice-test.c memchunks.c
196 slice_test_LDADD = $(thread_ldadd)
197 slice_color_SOURCES = slice-color.c memchunks.c
198 slice_color_LDADD = $(thread_ldadd)
199 slice_concurrent_SOURCES = slice-concurrent.c
200 slice_concurrent_LDADD = $(thread_ldadd)
201 slice_threadinit_SOURCES = slice-threadinit.c
202 slice_threadinit_LDADD = $(thread_ldadd)
203 spawn_test_LDADD = $(progs_ldadd)
204 strfunc_test_LDADD = $(progs_ldadd)
205 string_test_LDADD = $(progs_ldadd)
206 strtod_test_LDADD = $(progs_ldadd) -lm
207 strtoll_test_LDADD = $(progs_ldadd) -lm
208 thread_test_LDADD = $(thread_ldadd)
209 threadpool_test_LDADD = $(thread_ldadd)
210 tree_test_LDADD = $(progs_ldadd)
211 type_test_LDADD = $(progs_ldadd)
212 unicode_encoding_LDADD = $(progs_ldadd)
213 unicode_caseconv_LDADD = $(progs_ldadd)
214 unicode_collate_LDADD = $(progs_ldadd)
215 utf8_validate_LDADD = $(progs_ldadd)
216 utf8_pointer_LDADD = $(progs_ldadd)
217 uri_test_LDADD = $(progs_ldadd)
218 regex_test_LDADD = $(progs_ldadd)
220 lib_LTLIBRARIES = libmoduletestplugin_a.la libmoduletestplugin_b.la
222 # Prevent those libs from being installed
223 install-libLTLIBRARIES:
226 libmoduletestplugin_a_la_SOURCES = libmoduletestplugin_a.c
227 libmoduletestplugin_a_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined) -rpath $(libdir)
228 libmoduletestplugin_a_la_LIBADD = $(G_MODULE_LIBS) $(libadd_libgmodule) $(libadd_libglib)
230 libmoduletestplugin_b_la_SOURCES = libmoduletestplugin_b.c
231 libmoduletestplugin_b_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined) -rpath $(libdir)
232 libmoduletestplugin_b_la_LIBADD = $(G_MODULE_LIBS) $(libadd_libgmodule) $(libadd_libglib)
234 dist-hook: $(BUILT_EXTRA_DIST)
235 files='$(BUILT_EXTRA_DIST)'; \
236 for f in $$files; do \
237 if test -f $$f; then d=.; else d=$(srcdir); fi; \
238 cp $$d/$$f $(distdir) || exit 1; done
239 mkdir $(distdir)/markups; \
240 for f in $(srcdir)/markups/* ; do \
241 cp $$f $(distdir)/markups; done
242 mkdir $(distdir)/collate; \
243 for f in $(srcdir)/collate/* ; do \
244 if test -f $$f; then cp $$f $(distdir)/collate; fi; done
245 mkdir $(distdir)/bookmarks; \
246 for f in $(srcdir)/bookmarks/* ; do \
247 cp $$f $(distdir)/bookmarks; done
250 iochannel-test-outfile \
251 file-test-get-contents \