1 include $(top_srcdir)/Makefile.decl
3 SUBDIRS=gobject refcount
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 = $(TEST_PROGS) \
65 errorcheck-mutex-test \
68 TEST_PROGS += testglib
69 testglib_SOURCES = testglib.c
70 testglib_LDADD = $(libglib)
73 testgdate_LDADD = $(libglib)
74 testgdateparser_LDADD = $(libglib)
75 unicode_normalize_LDADD = $(libglib)
76 unicode_collate_LDADD = $(libglib)
77 errorcheck_mutex_test_LDADD = $(libglib) $(libgthread) $(G_THREAD_LIBS)
78 assert_msg_test_LDADD = $(libglib)
80 timeloop_LDADD = $(libglib)
81 timeloop_closure_LDADD = $(libglib) $(libgobject)
107 $(spawn_test_win32_gui) \
114 test_scripts = run-collate-tests.sh run-assert-msg-test.sh
116 test_script_support_programs = unicode-collate
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} % 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 noinst_LTLIBRARIES = libmoduletestplugin_a.la libmoduletestplugin_b.la
132 libmoduletestplugin_a_la_SOURCES = libmoduletestplugin_a.c
133 libmoduletestplugin_a_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined) -rpath $(libdir)
134 libmoduletestplugin_a_la_LIBADD = $(G_MODULE_LIBS) $(libadd_libgmodule) $(libadd_libglib)
136 libmoduletestplugin_b_la_SOURCES = libmoduletestplugin_b.c
137 libmoduletestplugin_b_la_LDFLAGS = $(G_MODULE_LDFLAGS) -avoid-version -module $(no_undefined) -rpath $(libdir)
138 libmoduletestplugin_b_la_LIBADD = $(G_MODULE_LIBS) $(libadd_libgmodule) $(libadd_libglib)
140 dist-hook: $(BUILT_EXTRA_DIST)
141 files='$(BUILT_EXTRA_DIST)'; \
142 for f in $$files; do \
143 if test -f $$f; then d=.; else d=$(srcdir); fi; \
144 cp $$d/$$f $(distdir) || exit 1; done
145 mkdir $(distdir)/collate; \
146 for f in $(srcdir)/collate/* ; do \
147 if test -f $$f; then cp $$f $(distdir)/collate; fi; done
150 iochannel-test-outfile \
151 file-test-get-contents \