1 include $(top_srcdir)/Makefile.decl
6 -I$(top_srcdir)/gmodule \
7 -I$(top_builddir)/glib \
10 libglib = $(top_builddir)/glib/libglib-2.0.la
11 libgthread = $(top_builddir)/gthread/libgthread-2.0.la
12 libgmodule = $(top_builddir)/gmodule/libgmodule-2.0.la
13 libgobject = $(top_builddir)/gobject/libgobject-2.0.la
16 # libtool dependency tracking seems broken. this is currently
17 # required to get the tests to dynamic link against the in-tree
18 # libglib instead of the system one
19 libgobject += $(libglib)
21 ########################################################################
23 noinst_LTLIBRARIES = libtestgobject.la
25 libtestgobject_la_SOURCES = \
33 glib_genmarshal=$(GLIB_GENMARSHAL)
35 glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal
38 testmarshal.h: stamp-testmarshal.h
40 stamp-testmarshal.h: @REBUILD@ testmarshal.list $(glib_genmarshal)
41 $(AM_V_GEN) $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --header >> xgen-gmh \
42 && (cmp -s xgen-gmh testmarshal.h 2>/dev/null || cp xgen-gmh testmarshal.h) \
43 && rm -f xgen-gmh xgen-gmh~ \
44 && echo timestamp > $@
45 testmarshal.c: @REBUILD@ testmarshal.list $(glib_genmarshal)
46 $(AM_V_GEN) $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --body >> xgen-gmc \
47 && cp xgen-gmc testmarshal.c \
48 && rm -f xgen-gmc xgen-gmc~
50 BUILT_SOURCES = testmarshal.h testmarshal.c
51 CLEANFILES = stamp-testmarshal.h
53 ########################################################################
55 LDADD = libtestgobject.la $(libgobject)
70 performance-threaded \
74 performance_LDADD = $(libgobject) $(libgthread)
75 performance_threaded_LDADD = $(libgobject) $(libgthread)
76 check_PROGRAMS = $(test_programs)
78 TESTS = $(test_programs)
79 TESTS_ENVIRONMENT = srcdir=$(srcdir) \
80 LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset \
82 MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
84 ########################################################################
93 dist-hook: $(BUILT_EXTRA_DIST)
94 files='$(BUILT_EXTRA_DIST)'; \
95 for f in $$files; do \
96 if test -f $$f; then d=.; else d=$(srcdir); fi; \
97 cp $$d/$$f $(distdir) || exit 1; done
100 if test $(srcdir) = .; then :; else \
101 rm -f $(BUILT_EXTRA_DIST); \