1 SUBDIRS=gobject refcount
3 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/glib -I$(top_srcdir)/gmodule $(GLIB_DEBUG_FLAGS)
7 libglib = $(top_builddir)/glib/libglib-2.0.la
8 libgthread = $(top_builddir)/gthread/libgthread-2.0.la
9 libgmodule = $(top_builddir)/gmodule/libgmodule-2.0.la
10 libgobject = $(top_builddir)/gobject/libgobject-2.0.la
13 libadd_libgmodule = $(libgmodule)
14 libadd_libglib = $(libglib)
15 no_undefined = -no-undefined
17 module_test_exp = module-test.exp
19 module-test.exp: module-test.o
20 dlltool --output-exp module-test.exp module-test.o
22 spawn_test_win32_gui = spawn-test-win32-gui
24 spawn_test_win32_gui_LDFLAGS = -mwindows
35 iochannel-test-infile \
43 cxx_test_LDADD = $(progs_ldadd)
44 cxx_test_SOURCES = cxx-test.C
50 timeloop = timeloop timeloop-closure
52 noinst_PROGRAMS = testglib testgdate testgdateparser unicode-normalize unicode-collate $(timeloop) errorcheck-mutex-test
53 testglib_LDADD = $(libglib)
54 patterntest_LDADD = $(libglib)
55 testgdate_LDADD = $(libglib)
56 testgdateparser_LDADD = $(libglib)
57 unicode_normalize_LDADD = $(libglib)
58 errorcheck_mutex_test_LDADD = $(libglib) $(libgthread) $(G_THREAD_LIBS)
60 timeloop_LDADD = $(libglib)
61 timeloop_closure_LDADD = $(libglib) $(libgobject)
99 $(spawn_test_win32_gui) \
114 test_scripts = run-markup-tests.sh run-collate-tests.sh run-bookmark-test.sh
116 test_script_support_programs = markup-test unicode-collate bookmarkfile-test
118 check_PROGRAMS = $(test_programs) $(test_script_support_programs)
120 TESTS = $(test_programs) $(test_scripts)
121 TESTS_ENVIRONMENT = srcdir=$(srcdir) \
122 LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset \
124 MALLOC_PERTURB_=$$(($$RANDOM % 256))
126 progs_ldadd = $(EFENCE) $(libglib) $(EFENCE)
127 thread_ldadd = $(libgthread) $(G_THREAD_LIBS) $(progs_ldadd)
128 module_ldadd = $(libgmodule) $(G_MODULE_LIBS) $(progs_ldadd)
130 atomic_test_LDADD = $(progs_ldadd)
131 array_test_LDADD = $(progs_ldadd)
132 base64_test_LDADD = $(progs_ldadd)
133 bookmarkfile_test_LDADD = $(progs_ldadd)
134 child_test_LDADD = $(thread_ldadd)
135 completion_test_LDADD = $(progs_ldadd)
136 convert_test_LDADD = $(progs_ldadd)
137 date_test_LDADD = $(progs_ldadd)
138 dirname_test_LDADD = $(progs_ldadd)
139 file_test_LDADD = $(progs_ldadd)
140 env_test_LDADD = $(progs_ldadd)
141 gio_test_LDADD = $(progs_ldadd)
142 hash_test_LDADD = $(progs_ldadd)
143 iochannel_test_LDADD = $(progs_ldadd)
144 keyfile_test_LDADD = $(progs_ldadd)
145 list_test_LDADD = $(progs_ldadd)
146 mainloop_test_LDADD = $(thread_ldadd)
147 markup_test_LDADD = $(progs_ldadd)
148 mapping_test_LDADD = $(progs_ldadd)
149 markup_escape_test_LDADD = $(progs_ldadd)
150 module_test_LDADD = $(module_ldadd) $(module_test_exp)
151 module_test_LDFLAGS = $(G_MODULE_LDFLAGS)
152 node_test_LDADD = $(progs_ldadd)
153 option_test_LDADD = $(progs_ldadd)
154 printf_test_LDADD = $(progs_ldadd)
155 queue_test_LDADD = $(progs_ldadd)
156 asyncqueue_test_LDADD = $(thread_ldadd)
157 qsort_test_LDADD = $(progs_ldadd)
158 rand_test_LDADD = $(progs_ldadd)
159 relation_test_LDADD = $(progs_ldadd)
160 shell_test_LDADD = $(progs_ldadd)
161 slist_test_LDADD = $(progs_ldadd)
162 slice_test_SOURCES = slice-test.c memchunks.c
163 slice_test_LDADD = $(thread_ldadd)
164 slice_color_SOURCES = slice-color.c memchunks.c
165 slice_color_LDADD = $(thread_ldadd)
166 spawn_test_LDADD = $(progs_ldadd)
167 strfunc_test_LDADD = $(progs_ldadd)
168 string_test_LDADD = $(progs_ldadd)
169 strtod_test_LDADD = $(progs_ldadd) -lm
170 strtoll_test_LDADD = $(progs_ldadd) -lm
171 thread_test_LDADD = $(thread_ldadd)
172 threadpool_test_LDADD = $(thread_ldadd)
173 tree_test_LDADD = $(progs_ldadd)
174 type_test_LDADD = $(progs_ldadd)
175 unicode_encoding_LDADD = $(progs_ldadd)
176 unicode_caseconv_LDADD = $(progs_ldadd)
177 unicode_collate_LDADD = $(progs_ldadd)
178 utf8_validate_LDADD = $(progs_ldadd)
179 utf8_pointer_LDADD = $(progs_ldadd)
180 uri_test_LDADD = $(progs_ldadd)
182 lib_LTLIBRARIES = libmoduletestplugin_a.la libmoduletestplugin_b.la
184 # Prevent those libs from being installed
185 install-libLTLIBRARIES:
188 libmoduletestplugin_a_la_SOURCES = libmoduletestplugin_a.c
189 libmoduletestplugin_a_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined) -rpath $(libdir)
190 libmoduletestplugin_a_la_LIBADD = $(G_MODULE_LIBS) $(libadd_libgmodule) $(libadd_libglib)
192 libmoduletestplugin_b_la_SOURCES = libmoduletestplugin_b.c
193 libmoduletestplugin_b_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined) -rpath $(libdir)
194 libmoduletestplugin_b_la_LIBADD = $(G_MODULE_LIBS) $(libadd_libgmodule) $(libadd_libglib)
196 dist-hook: $(BUILT_EXTRA_DIST)
197 files='$(BUILT_EXTRA_DIST)'; \
198 for f in $$files; do \
199 if test -f $$f; then d=.; else d=$(srcdir); fi; \
200 cp $$d/$$f $(distdir) || exit 1; done
201 mkdir $(distdir)/markups; \
202 for f in $(srcdir)/markups/* ; do \
203 cp $$f $(distdir)/markups; done
204 mkdir $(distdir)/collate; \
205 for f in $(srcdir)/collate/* ; do \
206 if test -f $$f; then cp $$f $(distdir)/collate; fi; done
207 mkdir $(distdir)/bookmarks; \
208 for f in $(srcdir)/bookmarks/* ; do \
209 cp $$f $(distdir)/bookmarks; done
211 DISTCLEANFILES = iochannel-test-outfile \
212 file-test-get-contents \