2007-03-22 14:21:59 -04:00
|
|
|
NULL =
|
|
|
|
|
2007-03-26 19:18:39 -04:00
|
|
|
SUBDIRS = cogl pango $(clutterbackend)
|
2007-03-22 14:21:59 -04:00
|
|
|
|
2007-07-06 09:56:01 -04:00
|
|
|
DIST_SUBDIRS = pango glx eglx eglnative cogl sdl
|
2007-03-22 14:21:59 -04:00
|
|
|
|
|
|
|
target = $(clutterbackend)
|
2006-10-03 17:59:30 -04:00
|
|
|
|
2006-05-29 04:59:36 -04:00
|
|
|
MARSHALFILES = clutter-marshal.c clutter-marshal.h
|
|
|
|
ENUMFILES = clutter-enum-types.c clutter-enum-types.h
|
2006-11-20 07:02:24 -05:00
|
|
|
STAMPFILES = stamp-clutter-marshal.h stamp-clutter-enum-types.h
|
2006-05-29 04:59:36 -04:00
|
|
|
GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
|
|
|
|
GLIB_MKENUMS=`pkg-config --variable=glib_mkenums glib-2.0`
|
|
|
|
|
2007-03-22 14:21:59 -04:00
|
|
|
INCLUDES = \
|
|
|
|
-I$(top_srcdir) \
|
|
|
|
-I$(top_srcdir)/clutter/pango \
|
2007-04-27 17:13:06 -04:00
|
|
|
-I$(top_srcdir)/clutter/cogl \
|
|
|
|
-I$(top_srcdir)/clutter/cogl/@CLUTTER_COGL@ \
|
2007-03-22 14:21:59 -04:00
|
|
|
-DPREFIX=\""$(prefix)"\" \
|
|
|
|
-DLIBDIR=\""$(libdir)"\" \
|
|
|
|
-DDATADIR=\""$(datadir)"\" \
|
|
|
|
-DG_DISABLE_DEPRECATED \
|
|
|
|
-DG_LOG_DOMAIN=\"Clutter\" \
|
|
|
|
$(GCC_FLAGS) \
|
|
|
|
$(CLUTTER_CFLAGS) \
|
|
|
|
$(CLUTTER_DEBUG_CFLAGS) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
LDADD = \
|
2007-03-23 11:20:35 -04:00
|
|
|
-version-info $(CLUTTER_LT_VERSION) \
|
2007-03-22 14:21:59 -04:00
|
|
|
-export-dynamic \
|
|
|
|
-rpath $(libdir) \
|
|
|
|
$(NULL)
|
|
|
|
|
2006-05-29 04:59:36 -04:00
|
|
|
BUILT_SOURCES = $(MARSHALFILES) $(ENUMFILES)
|
|
|
|
|
2007-06-09 09:20:22 -04:00
|
|
|
# please, keep this sorted alphabetically
|
2006-11-15 18:37:53 -05:00
|
|
|
source_h = \
|
|
|
|
$(srcdir)/clutter-actor.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(srcdir)/clutter-alpha.h \
|
2007-07-04 05:34:24 -04:00
|
|
|
$(srcdir)/clutter-backend.h \
|
2006-11-15 18:37:53 -05:00
|
|
|
$(srcdir)/clutter-behaviour.h \
|
2007-04-16 06:25:30 -04:00
|
|
|
$(srcdir)/clutter-behaviour-bspline.h \
|
2007-07-09 17:38:43 -04:00
|
|
|
$(srcdir)/clutter-behaviour-depth.h \
|
2007-04-30 04:39:20 -04:00
|
|
|
$(srcdir)/clutter-behaviour-ellipse.h \
|
2006-11-15 18:37:53 -05:00
|
|
|
$(srcdir)/clutter-behaviour-opacity.h \
|
|
|
|
$(srcdir)/clutter-behaviour-path.h \
|
2007-04-16 06:25:30 -04:00
|
|
|
$(srcdir)/clutter-behaviour-rotate.h \
|
2006-11-15 18:37:53 -05:00
|
|
|
$(srcdir)/clutter-behaviour-scale.h \
|
2007-06-14 11:29:52 -04:00
|
|
|
$(srcdir)/clutter-box.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(srcdir)/clutter-clone-texture.h \
|
|
|
|
$(srcdir)/clutter-color.h \
|
2007-06-07 10:41:35 -04:00
|
|
|
$(srcdir)/clutter-container.h \
|
2007-05-31 14:33:42 -04:00
|
|
|
$(srcdir)/clutter-entry.h \
|
2007-06-07 10:41:35 -04:00
|
|
|
$(srcdir)/clutter-event.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(srcdir)/clutter-feature.h \
|
|
|
|
$(srcdir)/clutter-fixed.h \
|
|
|
|
$(srcdir)/clutter-group.h \
|
2007-06-14 11:29:52 -04:00
|
|
|
$(srcdir)/clutter-hbox.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(srcdir)/clutter-keysyms.h \
|
|
|
|
$(srcdir)/clutter-label.h \
|
2007-06-07 10:41:35 -04:00
|
|
|
$(srcdir)/clutter-layout.h \
|
|
|
|
$(srcdir)/clutter-main.h \
|
2006-11-15 18:37:53 -05:00
|
|
|
$(srcdir)/clutter-media.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(srcdir)/clutter-rectangle.h \
|
|
|
|
$(srcdir)/clutter-stage.h \
|
|
|
|
$(srcdir)/clutter-texture.h \
|
|
|
|
$(srcdir)/clutter-timeline.h \
|
2007-06-09 09:19:52 -04:00
|
|
|
$(srcdir)/clutter-timeout-pool.h \
|
2007-05-14 05:11:23 -04:00
|
|
|
$(srcdir)/clutter-effect.h \
|
2007-05-22 05:31:40 -04:00
|
|
|
$(srcdir)/clutter-units.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(srcdir)/clutter-util.h \
|
2007-06-14 11:29:52 -04:00
|
|
|
$(srcdir)/clutter-vbox.h \
|
2006-11-20 07:02:24 -05:00
|
|
|
$(srcdir)/clutter-version.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(NULL)
|
2007-01-23 15:29:11 -05:00
|
|
|
|
2006-11-20 07:02:24 -05:00
|
|
|
clutter-marshal.h: stamp-clutter-marshal.h
|
|
|
|
@true
|
|
|
|
stamp-clutter-marshal.h: clutter-marshal.list
|
|
|
|
$(GLIB_GENMARSHAL) \
|
|
|
|
--prefix=clutter_marshal \
|
|
|
|
--header \
|
|
|
|
$(srcdir)/clutter-marshal.list > xgen-cmh \
|
|
|
|
&& (cmp -s xgen-cmh clutter-marshal.h || cp xgen-cmh clutter-marshal.h ) \
|
|
|
|
&& rm -f xgen-cmh \
|
|
|
|
&& echo timestamp > $(@F)
|
2006-05-29 04:59:36 -04:00
|
|
|
|
2006-11-20 07:02:24 -05:00
|
|
|
clutter-marshal.c: clutter-marshal.h Makefile
|
|
|
|
( echo "#include \"clutter-marshal.h\"" ; \
|
|
|
|
$(GLIB_GENMARSHAL) \
|
|
|
|
--prefix=clutter_marshal \
|
|
|
|
--body \
|
|
|
|
$(srcdir)/clutter-marshal.list --body ) >> xgen-cmc \
|
|
|
|
&& cp xgen-cmc clutter-marshal.c \
|
|
|
|
&& rm -f xgen-cmc
|
2006-05-29 04:59:36 -04:00
|
|
|
|
|
|
|
clutter-enum-types.h: stamp-clutter-enum-types.h
|
|
|
|
@true
|
|
|
|
stamp-clutter-enum-types.h: $(source_h) Makefile
|
|
|
|
$(GLIB_MKENUMS) \
|
|
|
|
--fhead "#ifndef __CLUTTER_ENUM_TYPES_H__\n" \
|
|
|
|
--fhead "#define __CLUTTER_ENUM_TYPES_H__\n\n" \
|
|
|
|
--fhead "G_BEGIN_DECLS\n\n" \
|
|
|
|
--ftail "G_END_DECLS\n\n" \
|
|
|
|
--ftail "#endif\n" \
|
|
|
|
--fprod "/* --- @filename@ --- */\n" \
|
|
|
|
--eprod "#define CLUTTER_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
|
|
|
|
--eprod "GType @enum_name@_get_type (void);\n\n" \
|
|
|
|
$(source_h) >> xgen-ceth \
|
|
|
|
&& (cmp xgen-ceth clutter-enum-types.h || cp xgen-ceth clutter-enum-types.h) \
|
|
|
|
&& rm -f xgen-ceth \
|
|
|
|
&& echo timestamp > $(@F)
|
|
|
|
|
|
|
|
clutter-enum-types.c: clutter-enum-types.h
|
|
|
|
$(GLIB_MKENUMS) \
|
|
|
|
--fhead "#include <glib-object.h>\n" \
|
|
|
|
--fhead "#include \"clutter-enum-types.h\"\n" \
|
|
|
|
--fprod "\n/* enumerations from \"@filename@\" */" \
|
|
|
|
--fprod "\n#include \"@filename@\"" \
|
|
|
|
--vhead "static const G@Type@Value _@enum_name@_values[] = {" \
|
|
|
|
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
|
|
|
--vtail " { 0, NULL, NULL }\n};\n\n" \
|
|
|
|
--vtail "GType\n@enum_name@_get_type (void)\n{\n" \
|
|
|
|
--vtail " static GType type = 0;\n\n" \
|
|
|
|
--vtail " if (!type)\n" \
|
|
|
|
--vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
|
|
|
|
--vtail " return type;\n}\n\n" \
|
|
|
|
$(source_h) >> xgen-cetc \
|
|
|
|
&& cp xgen-cetc clutter-enum-types.c \
|
|
|
|
&& rm -f xgen-cetc
|
|
|
|
|
2007-03-22 14:21:59 -04:00
|
|
|
CLEANFILES = $(STAMPFILES)
|
|
|
|
|
2007-06-09 09:20:22 -04:00
|
|
|
# please, keep this sorted alphabetically
|
2007-03-22 14:21:59 -04:00
|
|
|
source_c = \
|
|
|
|
clutter-actor.c \
|
|
|
|
clutter-alpha.c \
|
|
|
|
clutter-backend.c \
|
|
|
|
clutter-behaviour.c \
|
2007-04-16 06:25:30 -04:00
|
|
|
clutter-behaviour-bspline.c \
|
2007-07-09 17:38:43 -04:00
|
|
|
clutter-behaviour-depth.c \
|
2007-04-30 04:39:20 -04:00
|
|
|
clutter-behaviour-ellipse.c \
|
2007-03-22 14:21:59 -04:00
|
|
|
clutter-behaviour-opacity.c \
|
|
|
|
clutter-behaviour-path.c \
|
2007-04-16 06:25:30 -04:00
|
|
|
clutter-behaviour-rotate.c \
|
2007-03-22 14:21:59 -04:00
|
|
|
clutter-behaviour-scale.c \
|
2007-06-14 11:29:52 -04:00
|
|
|
clutter-box.c \
|
2007-03-22 14:21:59 -04:00
|
|
|
clutter-color.c \
|
2007-06-07 10:41:35 -04:00
|
|
|
clutter-container.c \
|
2007-03-22 14:21:59 -04:00
|
|
|
clutter-clone-texture.c \
|
2007-06-14 11:29:52 -04:00
|
|
|
clutter-effect.c \
|
|
|
|
clutter-entry.c \
|
2007-03-22 14:21:59 -04:00
|
|
|
clutter-enum-types.c \
|
|
|
|
clutter-event.c \
|
|
|
|
clutter-feature.c \
|
|
|
|
clutter-fixed.c \
|
|
|
|
clutter-group.c \
|
2007-06-14 11:29:52 -04:00
|
|
|
clutter-hbox.c \
|
2007-03-22 14:21:59 -04:00
|
|
|
clutter-label.c \
|
2007-06-07 10:41:35 -04:00
|
|
|
clutter-layout.c \
|
2007-03-22 14:21:59 -04:00
|
|
|
clutter-main.c \
|
|
|
|
clutter-marshal.c \
|
|
|
|
clutter-media.c \
|
|
|
|
clutter-stage.c \
|
|
|
|
clutter-rectangle.c \
|
|
|
|
clutter-texture.c \
|
|
|
|
clutter-timeline.c \
|
2007-06-09 09:19:52 -04:00
|
|
|
clutter-timeout-pool.c \
|
2007-03-22 14:21:59 -04:00
|
|
|
clutter-util.c \
|
2007-06-14 11:29:52 -04:00
|
|
|
clutter-vbox.c \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
source_h_priv = \
|
|
|
|
clutter-keysyms-table.h \
|
|
|
|
clutter-debug.h \
|
|
|
|
clutter-private.h \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
2007-05-22 05:31:40 -04:00
|
|
|
libclutter_@CLUTTER_FLAVOUR@_@CLUTTER_API_VERSION@_la_LIBADD = \
|
2007-03-26 19:18:39 -04:00
|
|
|
$(CLUTTER_LIBS) pango/libpangoclutter.la \
|
|
|
|
@CLUTTER_FLAVOUR@/libclutter-@CLUTTER_FLAVOUR@.la \
|
2007-04-27 20:37:11 -04:00
|
|
|
cogl/@CLUTTER_COGL@/libclutter-cogl.la
|
2007-03-22 14:21:59 -04:00
|
|
|
|
2007-05-22 05:31:40 -04:00
|
|
|
libclutter_@CLUTTER_FLAVOUR@_@CLUTTER_API_VERSION@_la_SOURCES = \
|
2007-03-26 19:18:39 -04:00
|
|
|
$(source_c) $(source_h) $(source_h_priv)
|
|
|
|
|
2007-05-22 05:31:40 -04:00
|
|
|
libclutter_@CLUTTER_FLAVOUR@_@CLUTTER_API_VERSION@_la_LDFLAGS = $(LDADD)
|
2007-03-22 14:21:59 -04:00
|
|
|
|
|
|
|
lib_LTLIBRARIES = $(clutterbackendlib)
|
|
|
|
|
2007-05-22 05:31:40 -04:00
|
|
|
EXTRA_LTLIBRARIES = libclutter-@CLUTTER_FLAVOUR@-@CLUTTER_API_VERSION@.la
|
2007-03-22 14:21:59 -04:00
|
|
|
|
2007-03-23 11:20:35 -04:00
|
|
|
clutterdir = $(includedir)/clutter-@CLUTTER_API_VERSION@/clutter
|
2007-03-26 19:18:39 -04:00
|
|
|
|
2007-03-22 14:21:59 -04:00
|
|
|
clutter_HEADERS = \
|
|
|
|
$(source_h) \
|
|
|
|
clutter-enum-types.h \
|
|
|
|
clutter-version.h \
|
|
|
|
clutter.h
|
|
|
|
|
|
|
|
DISTCLEANFILES = \
|
|
|
|
$(ENUMFILES) \
|
|
|
|
$(MARSHALFILES) \
|
|
|
|
clutter-version.h \
|
|
|
|
$(NULL)
|
2006-05-29 04:59:36 -04:00
|
|
|
|
2006-11-20 07:02:24 -05:00
|
|
|
EXTRA_DIST = clutter-marshal.list clutter-version.h.in
|