78895ff2f9654029c13dea3b16646d7f188fe01c
[platform/upstream/glib.git] / gobject / tests / Makefile.am
1 include $(top_srcdir)/glib.mk
2
3 LDADD = ../libgobject-2.0.la $(top_builddir)/glib/libglib-2.0.la
4 AM_CPPFLAGS = -g $(gobject_INCLUDES) $(GLIB_DEBUG_FLAGS)
5 DEFS = -DG_LOG_DOMAIN=\"GLib-GObject\"
6 AM_CFLAGS = $(GLIB_WARN_CFLAGS)
7
8 # -----------------------------------------------------------------------------
9
10 test_programs = \
11         qdata                           \
12         boxed                           \
13         enums                           \
14         param                           \
15         threadtests                     \
16         dynamictests                    \
17         binding                         \
18         properties                      \
19         reference                       \
20         valuearray                      \
21         type                            \
22         private                         \
23         closure                         \
24         $(NULL)
25
26 # -----------------------------------------------------------------------------
27
28 test_programs += ifaceproperties
29 ifaceproperties_SOURCES = ifaceproperties.c testcommon.h
30
31 # -----------------------------------------------------------------------------
32
33 test_programs += signals
34 signals_SOURCES = signals.c
35 nodist_signals_SOURCES = marshalers.c marshalers.h
36 signals.o: marshalers.h
37 CLEANFILES += marshalers.h marshalers.c
38 EXTRA_DIST += marshalers.list
39
40 if CROSS_COMPILING
41   glib_genmarshal=$(GLIB_GENMARSHAL)
42 else
43   glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal
44 endif
45
46 marshalers.h: Makefile.am marshalers.list
47         $(AM_V_GEN) $(glib_genmarshal) --prefix=test $(srcdir)/marshalers.list --header --valist-marshallers > marshalers.h
48
49 marshalers.c: Makefile.am marshalers.h marshalers.list
50         $(AM_V_GEN) (echo "#include \"marshalers.h\""; $(glib_genmarshal) --prefix=test $(srcdir)/marshalers.list --body --valist-marshallers) > $@.tmp && mv $@.tmp $@