1 include $(top_srcdir)/Makefile.decl
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 # libtool dependency tracking seems broken. this is currently
14 # required to get the tests to dynamic link against the in-tree
15 # libglib instead of the system one
16 libgobject += $(libglib)
18 ########################################################################
20 noinst_LTLIBRARIES = libtestgobject.la
22 libtestgobject_la_SOURCES = \
30 glib_genmarshal=$(GLIB_GENMARSHAL)
32 glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal
35 testmarshal.h: stamp-testmarshal.h
37 stamp-testmarshal.h: @REBUILD@ testmarshal.list $(glib_genmarshal)
38 $(AM_V_GEN) $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --header >> xgen-gmh \
39 && (cmp -s xgen-gmh testmarshal.h 2>/dev/null || cp xgen-gmh testmarshal.h) \
40 && rm -f xgen-gmh xgen-gmh~ \
41 && echo timestamp > $@
42 testmarshal.c: @REBUILD@ testmarshal.list $(glib_genmarshal)
43 $(AM_V_GEN) $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --body >> xgen-gmc \
44 && cp xgen-gmc testmarshal.c \
45 && rm -f xgen-gmc xgen-gmc~
47 BUILT_SOURCES = testmarshal.h testmarshal.c
48 CLEANFILES = stamp-testmarshal.h
50 ########################################################################
52 LDADD = libtestgobject.la $(libgobject)
66 performance-threaded \
70 performance_LDADD = $(libgobject) $(libgthread)
71 performance_threaded_LDADD = $(libgobject) $(libgthread)
72 check_PROGRAMS = $(test_programs)
74 TESTS = $(test_programs)
75 TESTS_ENVIRONMENT = srcdir=$(srcdir) \
76 LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset \
78 MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
80 ########################################################################
89 dist-hook: $(BUILT_EXTRA_DIST)
90 files='$(BUILT_EXTRA_DIST)'; \
91 for f in $$files; do \
92 if test -f $$f; then d=.; else d=$(srcdir); fi; \
93 cp $$d/$$f $(distdir) || exit 1; done
96 if test $(srcdir) = .; then :; else \
97 rm -f $(BUILT_EXTRA_DIST); \