4 -I$(top_srcdir)/gmodule \
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
12 ########################################################################
14 noinst_LTLIBRARIES = libtestgobject.la
16 libtestgobject_la_SOURCES = \
24 glib_genmarshal=$(GLIB_GENMARSHAL)
26 glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal
29 testmarshal.h: stamp-testmarshal.h
31 stamp-testmarshal.h: @REBUILD@ testmarshal.list $(glib_genmarshal)
32 $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --header >> xgen-gmh \
33 && (cmp -s xgen-gmh testmarshal.h 2>/dev/null || cp xgen-gmh testmarshal.h) \
34 && rm -f xgen-gmh xgen-gmh~ \
35 && echo timestamp > $@
36 testmarshal.c: @REBUILD@ testmarshal.list $(glib_genmarshal)
37 $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --body >> xgen-gmc \
38 && cp xgen-gmc testmarshal.c \
39 && rm -f xgen-gmc xgen-gmc~
41 BUILT_SOURCES = testmarshal.h testmarshal.c
43 ########################################################################
45 LDADD = $(libgobject) libtestgobject.la
55 check_PROGRAMS = $(test_programs)
57 TESTS = $(test_programs)
58 TESTS_ENVIRONMENT = srcdir=$(srcdir) \
59 LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset
61 ########################################################################
67 dist-hook: $(BUILT_EXTRA_DIST) \
68 files='$(BUILT_EXTRA_DIST)'; \
69 for f in $$files; do \
70 if test -f $$f; then d=.; else d=$(srcdir); fi; \
71 cp $$d/$$f $(distdir) || exit 1; done
74 if test $(srcdir) = .; then :; else \
75 rm -f $(BUILT_EXTRA_DIST); \