2003-09-12 22:37:09 +02:00
|
|
|
INCLUDES = \
|
|
|
|
-I$(top_srcdir) \
|
|
|
|
-I$(top_srcdir)/glib \
|
|
|
|
-I$(top_srcdir)/gmodule \
|
|
|
|
$(GLIB_DEBUG_FLAGS)
|
|
|
|
|
|
|
|
libglib = $(top_builddir)/glib/libglib-2.0.la
|
|
|
|
libgthread = $(top_builddir)/gthread/libgthread-2.0.la
|
|
|
|
libgmodule = $(top_builddir)/gmodule/libgmodule-2.0.la
|
|
|
|
libgobject = $(top_builddir)/gobject/libgobject-2.0.la
|
|
|
|
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES = libtestgobject.la
|
|
|
|
|
|
|
|
libtestgobject_la_SOURCES = \
|
|
|
|
testcommon.h \
|
|
|
|
testmarshal.h \
|
2003-09-29 16:54:39 +02:00
|
|
|
testmarshal.c \
|
|
|
|
testmodule.c \
|
|
|
|
testmodule.h
|
2003-09-12 22:37:09 +02:00
|
|
|
|
|
|
|
if CROSS_COMPILING
|
|
|
|
glib_genmarshal=$(GLIB_GENMARSHAL)
|
|
|
|
else
|
|
|
|
glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal
|
|
|
|
endif
|
|
|
|
|
|
|
|
testmarshal.h: stamp-testmarshal.h
|
|
|
|
@true
|
|
|
|
stamp-testmarshal.h: @REBUILD@ testmarshal.list $(glib_genmarshal)
|
|
|
|
$(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --header >> xgen-gmh \
|
|
|
|
&& (cmp -s xgen-gmh testmarshal.h 2>/dev/null || cp xgen-gmh testmarshal.h) \
|
|
|
|
&& rm -f xgen-gmh xgen-gmh~ \
|
|
|
|
&& echo timestamp > $@
|
|
|
|
testmarshal.c: @REBUILD@ testmarshal.list $(glib_genmarshal)
|
|
|
|
$(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --body >> xgen-gmc \
|
|
|
|
&& cp xgen-gmc testmarshal.c \
|
|
|
|
&& rm -f xgen-gmc xgen-gmc~
|
|
|
|
|
|
|
|
BUILT_SOURCES = testmarshal.h testmarshal.c
|
2003-10-24 00:42:31 +02:00
|
|
|
CLEANFILES = stamp-testmarshal.h
|
2003-09-12 22:37:09 +02:00
|
|
|
|
|
|
|
########################################################################
|
|
|
|
|
2003-10-24 05:41:22 +02:00
|
|
|
LDADD = libtestgobject.la $(libgobject)
|
2003-09-12 22:37:09 +02:00
|
|
|
|
|
|
|
test_programs = \
|
2006-05-02 15:01:10 +02:00
|
|
|
deftype \
|
2005-08-09 21:20:33 +02:00
|
|
|
gvalue-test \
|
2006-02-18 22:07:18 +01:00
|
|
|
paramspec-test \
|
2003-09-12 22:37:09 +02:00
|
|
|
accumulator \
|
2003-09-29 16:54:39 +02:00
|
|
|
defaultiface \
|
2003-10-02 07:28:00 +02:00
|
|
|
ifacecheck \
|
2003-09-12 22:37:09 +02:00
|
|
|
ifaceinit \
|
2003-10-02 06:03:57 +02:00
|
|
|
ifaceinherit \
|
2003-10-21 21:15:07 +02:00
|
|
|
ifaceproperties \
|
2005-05-05 16:57:29 +02:00
|
|
|
override \
|
2006-08-16 14:11:03 +02:00
|
|
|
singleton \
|
2005-05-05 16:57:29 +02:00
|
|
|
references
|
2003-09-12 22:37:09 +02:00
|
|
|
|
|
|
|
check_PROGRAMS = $(test_programs)
|
|
|
|
|
|
|
|
TESTS = $(test_programs)
|
|
|
|
TESTS_ENVIRONMENT = srcdir=$(srcdir) \
|
2005-12-05 17:39:34 +01:00
|
|
|
LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset \
|
|
|
|
MALLOC_CHECK_=2 \
|
|
|
|
MALLOC_PERTURB_=$$(($$RANDOM % 256))
|
2003-09-12 22:37:09 +02:00
|
|
|
|
|
|
|
########################################################################
|
|
|
|
|
2003-10-24 00:42:31 +02:00
|
|
|
EXTRA_DIST = \
|
|
|
|
testmarshal.list
|
|
|
|
|
2003-09-12 22:37:09 +02:00
|
|
|
BUILT_EXTRA_DIST = \
|
|
|
|
testmarshal.h \
|
|
|
|
testmarshal.c
|
|
|
|
|
2003-10-24 00:42:31 +02:00
|
|
|
dist-hook: $(BUILT_EXTRA_DIST)
|
2003-09-12 22:37:09 +02:00
|
|
|
files='$(BUILT_EXTRA_DIST)'; \
|
|
|
|
for f in $$files; do \
|
|
|
|
if test -f $$f; then d=.; else d=$(srcdir); fi; \
|
|
|
|
cp $$d/$$f $(distdir) || exit 1; done
|
|
|
|
|
2003-10-24 00:42:31 +02:00
|
|
|
distclean-local:
|
2003-09-12 22:37:09 +02:00
|
|
|
if test $(srcdir) = .; then :; else \
|
|
|
|
rm -f $(BUILT_EXTRA_DIST); \
|
|
|
|
fi
|