1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
|
BUILT_SOURCES = \
champlain-marshal.h \
champlain-marshal.c \
champlain-enum-types.h \
champlain-enum-types.c \
stamp-enum-types \
champlain-version.h
CLEANFILES = $(BUILT_SOURCES)
CHAMPLAIN_MARSHAL = champlain-marshal
CHAMPLAIN_MARSHAL_LIST = champlain-marshal.list
lib_LTLIBRARIES = libchamplain-0.4.la
libchamplain_headers = \
champlain.h \
champlain-defines.h \
champlain-point.h \
champlain-view.h \
champlain-layer.h \
champlain-selection-layer.h \
champlain-base-marker.h \
champlain-marker.h \
champlain-map.h \
champlain-enum-types.h \
champlain-tile.h \
champlain-map-source.h \
champlain-network-map-source.h \
champlain-map-source-factory.h \
champlain-map-source-desc.h \
champlain-polygon.h \
champlain-version.h
libchamplain_0_4_la_SOURCES = \
$(CHAMPLAIN_MARSHAL_LIST) \
$(BUILT_SOURCES) \
champlain-debug.c \
champlain-view.c \
champlain-layer.c \
champlain-selection-layer.c \
champlain-base-marker.c \
champlain-marker.c \
champlain-map.c \
champlain-zoom-level.c \
champlain-tile.c \
champlain-map-source.c \
champlain-network-map-source.c \
champlain-map-source-factory.c \
champlain-map-source-desc.c \
champlain-point.c \
champlain-cache.c \
champlain-polygon.c
noinst_HEADERS = \
champlain-debug.h \
champlain-view.h \
champlain-base-marker.h \
champlain-marker.h \
champlain-private.h \
champlain-point.h \
champlain-map.h \
champlain-zoom-level.h \
champlain-tile.h \
champlain-enum-types.h \
champlain-map-source.h \
champlain-network-map-source.h \
champlain-map-source-factory.h \
champlain-map-source-desc.h \
champlain-cache.h \
champlain-polygon.h \
champlain-version.h
libchamplain_include_HEADERS = \
champlain.h \
champlain-view.h \
champlain-defines.h \
champlain-point.h \
champlain-enum-types.h \
champlain-layer.h \
champlain-selection-layer.h \
champlain-map-source.h \
champlain-network-map-source.h \
champlain-map-source-factory.h \
champlain-map-source-desc.h \
champlain-tile.h \
champlain-zoom-level.h \
champlain-base-marker.h \
champlain-marker.h \
champlain-cache.h \
champlain-polygon.h \
champlain-version.h
libchamplain_0_4_la_LIBADD = $(DEPS_LIBS) $(SOUP_LIBS) ../tidy/libtidy-1.0.la
libchamplain_includedir = $(includedir)/libchamplain-0.4/champlain
libchamplain_0_4_la_LDFLAGS = -version-info $(LIBRARY_VERSION) \
-export-symbols-regex \
^champlain_.*
AM_CPPFLAGS = \
$(DEPS_CFLAGS) \
$(SOUP_CFLAGS) \
-DDATADIR=\""$(datadir)"\" \
-I$(top_srcdir)/tidy \
-I$(top_srcdir) \
-DCHAMPLAIN_COMPILATION \
$(WARN_CFLAGS)
EXTRA_DIST = $(CHAMPLAIN_MARSHAL_LIST)
champlain-marshal.h: $(CHAMPLAIN_MARSHAL_LIST)
@GLIB_GENMARSHAL@ --header --prefix=cpl_marshal $< > $(CHAMPLAIN_MARSHAL).h
champlain-marshal.c: $(CHAMPLAIN_MARSHAL_LIST)
@GLIB_GENMARSHAL@ --body --prefix=cpl_marshal $< > $(CHAMPLAIN_MARSHAL).c
champlain-enum-types.h: stamp-enum-types
@true
stamp-enum-types: $(libchamplain_headers) Makefile
(cd $(srcdir) \
&& glib-mkenums \
--fhead "#ifndef __CHAMPLAIN_ENUM_TYPES_H__\n" \
--fhead "#define __CHAMPLAIN_ENUM_TYPES_H__ 1\n\n" \
--fhead "#include <glib-object.h>\n\n" \
--fhead "G_BEGIN_DECLS\n\n" \
--ftail "G_END_DECLS\n\n" \
--ftail "#endif /* __CHAMPLAIN_ENUM_TYPES_H__ */\n" \
--fprod "#include <champlain/@filename@>\n" \
--eprod "#define CHAMPLAIN_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
--eprod "GType @enum_name@_get_type (void);\n" \
$(libchamplain_headers) ) > xgen-gth \
&& (cmp -s xgen-gth champlain-enum-type.h || cp xgen-gth champlain-enum-types.h) \
&& rm -f xgen-gth \
&& echo timestamp > $(@F)
champlain-enum-types.c: $(libchamplain_headers) Makefile
(cd $(srcdir) \
&& glib-mkenums \
--fhead "#include <config.h>\n" \
--fhead "#include <glib-object.h>\n" \
--fhead "#include \"champlain-enum-types.h\"\n\n" \
--fprod "\n/* enumerations from \"@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" \
$(libchamplain_headers) ) > xgen-gtc \
&& cp xgen-gtc $(@F) \
&& rm -f xgen-gtc
if HAVE_INTROSPECTION
BUILT_GIRSOURCES =
Champlain-0.4.gir: $(INTROSPECTION_SCANNER) libchamplain-0.4.la
$(QUIET_GEN)$(INTROSPECTION_SCANNER) -v \
--namespace Champlain --nsversion=0.4 \
--strip-prefix=Champlain \
$(DEPS_CFLAGS) \
$(SOUP_CFLAGS) \
-I$(top_srcdir)/tidy \
-I$(top_srcdir) \
-DCHAMPLAIN_COMPILATION \
--add-include-path=$(builddir) \
--c-include="$(libchamplain_include_HEADERS)" \
--include=Clutter-1.0 \
--include=Gtk-2.0 \
--library=champlain-0.4 \
--libtool="$(LIBTOOL)" \
--output $@ \
--pkg gobject-2.0 \
--pkg gtk+-2.0 \
$(addprefix $(srcdir)/,$(libchamplain_0_4_la_SOURCES)) \
$(addprefix $(srcdir)/,$(libchamplain_include_HEADERS))
BUILT_GIRSOURCES += Champlain-0.4.gir
# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
# install anything - we need to install inside our prefix.
girdir = $(datadir)/gir-1.0
gir_DATA = $(BUILT_GIRSOURCES)
typelibsdir = $(libdir)/girepository-1.0/
typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
%.typelib: %.gir $(INTROSPECTION_COMPILER)
$(QUIET_GEN)$(DEBUG) $(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=. $(INTROSPECTION_COMPILER_OPTS) $< -o $(builddir)/$(@F)
CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
endif
|