1 include $(top_srcdir)/Makefile.decl
3 SUBDIRS=gobject refcount
7 -DGLIB_DISABLE_DEPRECATION_WARNINGS \
14 libglib = $(top_builddir)/glib/libglib-2.0.la
15 libgthread = $(top_builddir)/gthread/libgthread-2.0.la
16 libgmodule = $(top_builddir)/gmodule/libgmodule-2.0.la
17 libgobject = $(top_builddir)/gobject/libgobject-2.0.la
19 libadd_libgmodule = $(libgmodule)
20 libadd_libglib = $(libglib)
22 no_undefined = -no-undefined
24 module_test_exp = module-test.exp
26 module-test.exp: module-test.o
27 dlltool --output-exp module-test.exp module-test.o
29 spawn_test_win32_gui = spawn-test-win32-gui
31 spawn_test_win32_gui_LDFLAGS = -mwindows
42 iochannel-test-infile \
51 cxx_test_LDADD = $(progs_ldadd)
52 cxx_test_SOURCES = cxx-test.C
58 timeloop = timeloop timeloop-closure
60 noinst_PROGRAMS = $(TEST_PROGS) \
69 TEST_PROGS += testglib
70 testglib_SOURCES = testglib.c
71 testglib_LDADD = $(libglib)
74 testgdate_LDADD = $(libglib)
75 testgdateparser_LDADD = $(libglib)
76 unicode_normalize_LDADD = $(libglib)
77 unicode_collate_LDADD = $(libglib)
78 assert_msg_test_LDADD = $(libglib)
80 timeloop_LDADD = $(libglib)
81 timeloop_closure_LDADD = $(libglib) $(libgobject)
83 datetime_LDADD = $(libglib)
109 $(spawn_test_win32_gui) \
116 test_scripts = run-collate-tests.sh run-assert-msg-test.sh
118 test_script_support_programs = unicode-collate
120 check_PROGRAMS = $(test_programs) $(test_script_support_programs)
122 TESTS = $(test_programs) $(test_scripts)
123 TESTS_ENVIRONMENT = srcdir=$(srcdir) \
124 LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset \
126 MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
128 progs_ldadd = $(EFENCE) $(libglib) $(EFENCE)
129 thread_ldadd = $(libgthread) $(G_THREAD_LIBS) $(progs_ldadd)
130 module_ldadd = $(libgmodule) $(G_MODULE_LIBS) $(progs_ldadd)
132 atomic_test_LDADD = $(progs_ldadd)
133 bit_test_LDADD = $(progs_ldadd)
134 child_test_LDADD = $(thread_ldadd)
135 completion_test_LDADD = $(progs_ldadd)
136 dirname_test_LDADD = $(progs_ldadd)
137 file_test_LDADD = $(progs_ldadd)
138 env_test_LDADD = $(progs_ldadd)
139 gio_test_LDADD = $(progs_ldadd)
140 iochannel_test_LDADD = $(progs_ldadd)
141 mainloop_test_LDADD = $(thread_ldadd)
142 mapping_test_LDADD = $(progs_ldadd)
143 module_test_LDADD = $(module_ldadd) $(module_test_exp)
144 module_test_LDFLAGS = $(G_MODULE_LDFLAGS)
145 onceinit_LDADD = $(thread_ldadd)
146 asyncqueue_test_LDADD = $(thread_ldadd)
147 qsort_test_LDADD = $(progs_ldadd)
148 relation_test_LDADD = $(progs_ldadd)
149 slice_test_SOURCES = slice-test.c memchunks.c
150 slice_test_LDADD = $(thread_ldadd)
151 slice_color_SOURCES = slice-color.c memchunks.c
152 slice_color_LDADD = $(thread_ldadd)
153 slice_concurrent_SOURCES = slice-concurrent.c
154 slice_concurrent_LDADD = $(thread_ldadd)
155 slice_threadinit_SOURCES = slice-threadinit.c
156 slice_threadinit_LDADD = $(thread_ldadd)
157 sources_LDADD = $(progs_ldadd)
158 spawn_test_LDADD = $(progs_ldadd)
159 thread_test_LDADD = $(thread_ldadd)
160 threadpool_test_LDADD = $(thread_ldadd)
161 type_test_LDADD = $(progs_ldadd)
162 unicode_encoding_LDADD = $(progs_ldadd)
163 unicode_caseconv_LDADD = $(progs_ldadd)
165 noinst_LTLIBRARIES = libmoduletestplugin_a.la libmoduletestplugin_b.la
167 libmoduletestplugin_a_la_SOURCES = libmoduletestplugin_a.c
168 libmoduletestplugin_a_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined) -rpath $(libdir)
169 libmoduletestplugin_a_la_LIBADD = $(G_MODULE_LIBS) $(libadd_libgmodule) $(libadd_libglib)
171 libmoduletestplugin_b_la_SOURCES = libmoduletestplugin_b.c
172 libmoduletestplugin_b_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined) -rpath $(libdir)
173 libmoduletestplugin_b_la_LIBADD = $(G_MODULE_LIBS) $(libadd_libgmodule) $(libadd_libglib)
175 dist-hook: $(BUILT_EXTRA_DIST)
176 files='$(BUILT_EXTRA_DIST)'; \
177 for f in $$files; do \
178 if test -f $$f; then d=.; else d=$(srcdir); fi; \
179 cp $$d/$$f $(distdir) || exit 1; done
180 mkdir $(distdir)/collate; \
181 for f in $(srcdir)/collate/* ; do \
182 if test -f $$f; then cp $$f $(distdir)/collate; fi; done
185 iochannel-test-outfile \
186 file-test-get-contents \