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 = \
22 glib_genmarshal=$(GLIB_GENMARSHAL)
24 glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal
27 testmarshal.h: stamp-testmarshal.h
29 stamp-testmarshal.h: @REBUILD@ testmarshal.list $(glib_genmarshal)
30 $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --header >> xgen-gmh \
31 && (cmp -s xgen-gmh testmarshal.h 2>/dev/null || cp xgen-gmh testmarshal.h) \
32 && rm -f xgen-gmh xgen-gmh~ \
33 && echo timestamp > $@
34 testmarshal.c: @REBUILD@ testmarshal.list $(glib_genmarshal)
35 $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --body >> xgen-gmc \
36 && cp xgen-gmc testmarshal.c \
37 && rm -f xgen-gmc xgen-gmc~
39 BUILT_SOURCES = testmarshal.h testmarshal.c
41 ########################################################################
43 LDADD = $(libgobject) libtestgobject.la
50 check_PROGRAMS = $(test_programs)
52 TESTS = $(test_programs)
53 TESTS_ENVIRONMENT = srcdir=$(srcdir) \
54 LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset
56 ########################################################################
62 dist-hook: $(BUILT_EXTRA_DIST) \
63 files='$(BUILT_EXTRA_DIST)'; \
64 for f in $$files; do \
65 if test -f $$f; then d=.; else d=$(srcdir); fi; \
66 cp $$d/$$f $(distdir) || exit 1; done
69 if test $(srcdir) = .; then :; else \
70 rm -f $(BUILT_EXTRA_DIST); \