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
14 ########################################################################
16 noinst_LTLIBRARIES = libtestgobject.la
18 libtestgobject_la_SOURCES = \
26 glib_genmarshal=$(GLIB_GENMARSHAL)
28 glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal
31 testmarshal.h: stamp-testmarshal.h
33 stamp-testmarshal.h: @REBUILD@ testmarshal.list $(glib_genmarshal)
34 $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --header >> xgen-gmh \
35 && (cmp -s xgen-gmh testmarshal.h 2>/dev/null || cp xgen-gmh testmarshal.h) \
36 && rm -f xgen-gmh xgen-gmh~ \
37 && echo timestamp > $@
38 testmarshal.c: @REBUILD@ testmarshal.list $(glib_genmarshal)
39 $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --body >> xgen-gmc \
40 && cp xgen-gmc testmarshal.c \
41 && rm -f xgen-gmc xgen-gmc~
43 BUILT_SOURCES = testmarshal.h testmarshal.c
44 CLEANFILES = stamp-testmarshal.h
46 ########################################################################
48 LDADD = libtestgobject.la $(libgobject)
66 performance_LDADD = $(libgobject) $(libgthread)
67 check_PROGRAMS = $(test_programs)
69 TESTS = $(test_programs)
70 TESTS_ENVIRONMENT = srcdir=$(srcdir) \
71 LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset \
73 MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
75 ########################################################################
84 dist-hook: $(BUILT_EXTRA_DIST)
85 files='$(BUILT_EXTRA_DIST)'; \
86 for f in $$files; do \
87 if test -f $$f; then d=.; else d=$(srcdir); fi; \
88 cp $$d/$$f $(distdir) || exit 1; done
91 if test $(srcdir) = .; then :; else \
92 rm -f $(BUILT_EXTRA_DIST); \