1 include $(top_srcdir)/Makefile.decl
6 -I$(top_srcdir)/gmodule \
9 libglib = $(top_builddir)/glib/libglib-2.0.la
10 libgthread = $(top_builddir)/gthread/libgthread-2.0.la
11 libgmodule = $(top_builddir)/gmodule/libgmodule-2.0.la
12 libgobject = $(top_builddir)/gobject/libgobject-2.0.la
15 # libtool dependency tracking seems broken. this is currently
16 # required to get the tests to dynamic link against the in-tree
17 # libglib instead of the system one
18 libgobject += $(libglib)
20 ########################################################################
22 noinst_LTLIBRARIES = libtestgobject.la
24 libtestgobject_la_SOURCES = \
32 glib_genmarshal=$(GLIB_GENMARSHAL)
34 glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal
37 testmarshal.h: stamp-testmarshal.h
39 stamp-testmarshal.h: @REBUILD@ testmarshal.list $(glib_genmarshal)
40 $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --header >> xgen-gmh \
41 && (cmp -s xgen-gmh testmarshal.h 2>/dev/null || cp xgen-gmh testmarshal.h) \
42 && rm -f xgen-gmh xgen-gmh~ \
43 && echo timestamp > $@
44 testmarshal.c: @REBUILD@ testmarshal.list $(glib_genmarshal)
45 $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --body >> xgen-gmc \
46 && cp xgen-gmc testmarshal.c \
47 && rm -f xgen-gmc xgen-gmc~
49 BUILT_SOURCES = testmarshal.h testmarshal.c
50 CLEANFILES = stamp-testmarshal.h
52 ########################################################################
54 LDADD = libtestgobject.la $(libgobject)
69 performance-threaded \
73 performance_LDADD = $(libgobject) $(libgthread)
74 performance_threaded_LDADD = $(libgobject) $(libgthread)
75 check_PROGRAMS = $(test_programs)
77 TESTS = $(test_programs)
78 TESTS_ENVIRONMENT = srcdir=$(srcdir) \
79 LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset \
81 MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
83 ########################################################################
92 dist-hook: $(BUILT_EXTRA_DIST)
93 files='$(BUILT_EXTRA_DIST)'; \
94 for f in $$files; do \
95 if test -f $$f; then d=.; else d=$(srcdir); fi; \
96 cp $$d/$$f $(distdir) || exit 1; done
99 if test $(srcdir) = .; then :; else \
100 rm -f $(BUILT_EXTRA_DIST); \