1 SUBDIRS=gobject refcount
4 enable_regex = -DENABLE_REGEX
9 INCLUDES = -g -I$(top_srcdir) -I$(top_srcdir)/glib -I$(top_srcdir)/gmodule $(GLIB_DEBUG_FLAGS) $(enable_regex)
13 libglib = $(top_builddir)/glib/libglib-2.0.la
14 libgthread = $(top_builddir)/gthread/libgthread-2.0.la
15 libgmodule = $(top_builddir)/gmodule/libgmodule-2.0.la
16 libgobject = $(top_builddir)/gobject/libgobject-2.0.la
18 libadd_libgmodule = $(libgmodule)
19 libadd_libglib = $(libglib)
21 no_undefined = -no-undefined
23 module_test_exp = module-test.exp
25 module-test.exp: module-test.o
26 dlltool --output-exp module-test.exp module-test.o
28 spawn_test_win32_gui = spawn-test-win32-gui
30 spawn_test_win32_gui_LDFLAGS = -mwindows
41 iochannel-test-infile \
50 cxx_test_LDADD = $(progs_ldadd)
51 cxx_test_SOURCES = cxx-test.C
57 timeloop = timeloop timeloop-closure
59 noinst_PROGRAMS = testglib testgdate testgdateparser unicode-normalize unicode-collate $(timeloop) errorcheck-mutex-test
60 testglib_LDADD = $(libglib)
61 patterntest_LDADD = $(libglib)
62 testgdate_LDADD = $(libglib)
63 testgdateparser_LDADD = $(libglib)
64 unicode_normalize_LDADD = $(libglib)
65 errorcheck_mutex_test_LDADD = $(libglib) $(libgthread) $(G_THREAD_LIBS)
67 timeloop_LDADD = $(libglib)
68 timeloop_closure_LDADD = $(libglib) $(libgobject)
109 $(spawn_test_win32_gui) \
125 test_scripts = run-markup-tests.sh run-collate-tests.sh run-bookmark-test.sh
127 test_script_support_programs = markup-test unicode-collate bookmarkfile-test
129 check_PROGRAMS = $(test_programs) $(test_script_support_programs)
131 TESTS = $(test_programs) $(test_scripts)
132 TESTS_ENVIRONMENT = srcdir=$(srcdir) \
133 LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset \
135 MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
137 progs_ldadd = $(EFENCE) $(libglib) $(EFENCE)
138 thread_ldadd = $(libgthread) $(G_THREAD_LIBS) $(progs_ldadd)
139 module_ldadd = $(libgmodule) $(G_MODULE_LIBS) $(progs_ldadd)
141 atomic_test_LDADD = $(progs_ldadd)
142 array_test_LDADD = $(progs_ldadd)
143 base64_test_LDADD = $(progs_ldadd)
144 bit_test_LDADD = $(progs_ldadd)
145 bookmarkfile_test_LDADD = $(progs_ldadd)
146 child_test_LDADD = $(thread_ldadd)
147 completion_test_LDADD = $(progs_ldadd)
148 convert_test_LDADD = $(progs_ldadd)
149 date_test_LDADD = $(progs_ldadd)
150 dirname_test_LDADD = $(progs_ldadd)
151 file_test_LDADD = $(progs_ldadd)
152 env_test_LDADD = $(progs_ldadd)
153 gio_test_LDADD = $(progs_ldadd)
154 hash_test_LDADD = $(progs_ldadd)
155 iochannel_test_LDADD = $(progs_ldadd)
156 keyfile_test_LDADD = $(progs_ldadd)
157 list_test_LDADD = $(progs_ldadd)
158 mainloop_test_LDADD = $(thread_ldadd)
159 markup_test_LDADD = $(progs_ldadd)
160 mapping_test_LDADD = $(progs_ldadd)
161 markup_escape_test_LDADD = $(progs_ldadd)
162 module_test_LDADD = $(module_ldadd) $(module_test_exp)
163 module_test_LDFLAGS = $(G_MODULE_LDFLAGS)
164 node_test_LDADD = $(progs_ldadd)
165 option_test_LDADD = $(progs_ldadd)
166 printf_test_LDADD = $(progs_ldadd)
167 queue_test_LDADD = $(progs_ldadd)
168 asyncqueue_test_LDADD = $(thread_ldadd)
169 qsort_test_LDADD = $(progs_ldadd)
170 rand_test_LDADD = $(progs_ldadd)
171 relation_test_LDADD = $(progs_ldadd)
172 sequence_test_LDADD = $(progs_ldadd)
173 shell_test_LDADD = $(progs_ldadd)
174 slist_test_LDADD = $(progs_ldadd)
175 slice_test_SOURCES = slice-test.c memchunks.c
176 slice_test_LDADD = $(thread_ldadd)
177 slice_color_SOURCES = slice-color.c memchunks.c
178 slice_color_LDADD = $(thread_ldadd)
179 slice_threadinit_SOURCES = slice-threadinit.c
180 slice_threadinit_LDADD = $(thread_ldadd)
181 spawn_test_LDADD = $(progs_ldadd)
182 strfunc_test_LDADD = $(progs_ldadd)
183 string_test_LDADD = $(progs_ldadd)
184 strtod_test_LDADD = $(progs_ldadd) -lm
185 strtoll_test_LDADD = $(progs_ldadd) -lm
186 thread_test_LDADD = $(thread_ldadd)
187 threadpool_test_LDADD = $(thread_ldadd)
188 tree_test_LDADD = $(progs_ldadd)
189 type_test_LDADD = $(progs_ldadd)
190 unicode_encoding_LDADD = $(progs_ldadd)
191 unicode_caseconv_LDADD = $(progs_ldadd)
192 unicode_collate_LDADD = $(progs_ldadd)
193 utf8_validate_LDADD = $(progs_ldadd)
194 utf8_pointer_LDADD = $(progs_ldadd)
195 uri_test_LDADD = $(progs_ldadd)
196 regex_test_LDADD = $(progs_ldadd)
198 lib_LTLIBRARIES = libmoduletestplugin_a.la libmoduletestplugin_b.la
200 # Prevent those libs from being installed
201 install-libLTLIBRARIES:
204 libmoduletestplugin_a_la_SOURCES = libmoduletestplugin_a.c
205 libmoduletestplugin_a_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined) -rpath $(libdir)
206 libmoduletestplugin_a_la_LIBADD = $(G_MODULE_LIBS) $(libadd_libgmodule) $(libadd_libglib)
208 libmoduletestplugin_b_la_SOURCES = libmoduletestplugin_b.c
209 libmoduletestplugin_b_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined) -rpath $(libdir)
210 libmoduletestplugin_b_la_LIBADD = $(G_MODULE_LIBS) $(libadd_libgmodule) $(libadd_libglib)
212 dist-hook: $(BUILT_EXTRA_DIST)
213 files='$(BUILT_EXTRA_DIST)'; \
214 for f in $$files; do \
215 if test -f $$f; then d=.; else d=$(srcdir); fi; \
216 cp $$d/$$f $(distdir) || exit 1; done
217 mkdir $(distdir)/markups; \
218 for f in $(srcdir)/markups/* ; do \
219 cp $$f $(distdir)/markups; done
220 mkdir $(distdir)/collate; \
221 for f in $(srcdir)/collate/* ; do \
222 if test -f $$f; then cp $$f $(distdir)/collate; fi; done
223 mkdir $(distdir)/bookmarks; \
224 for f in $(srcdir)/bookmarks/* ; do \
225 cp $$f $(distdir)/bookmarks; done
227 DISTCLEANFILES = iochannel-test-outfile \
228 file-test-get-contents \