1 include $(top_srcdir)/build/Makefile.am.common
7 AM_CPPFLAGS= -I$(top_srcdir)/src \
9 ADG_CFLAGS= $(CAIRO_CFLAGS) \
11 ADG_LDFLAGS= $(CAIRO_LIBS) \
16 h_sources= adg-adim.h \
25 adg-dress-builtins.h \
58 built_h_sources= adg-type-builtins.h
59 private_h_sources= adg-adim-private.h \
60 adg-alignment-private.h \
62 adg-canvas-private.h \
63 adg-color-style-private.h \
64 adg-container-private.h \
66 adg-dim-style-private.h \
69 adg-entity-private.h \
70 adg-fill-style-private.h \
71 adg-font-style-private.h \
75 adg-line-style-private.h \
77 adg-marker-private.h \
80 adg-projection-private.h \
82 adg-ruled-fill-private.h \
83 adg-stroke-private.h \
85 adg-table-style-private.h \
87 adg-title-block-private.h \
88 adg-toy-text-private.h \
90 built_private_h_sources= adg-marshal.h
91 c_sources= adg-adim.c \
100 adg-dress-builtins.c \
133 built_c_sources= adg-type-builtins.c \
135 template_sources= adg-type-builtins.c.mkenums \
136 adg-type-builtins.h.mkenums \
137 adg-marshal.genmarshal
141 EXTRA_DIST= $(template_sources) \
142 adg-introspection.h \
144 BUILT_SOURCES= $(built_h_sources) \
145 $(built_private_h_sources)
146 # built_c_sources are properly tracked
147 # by nodist_libadg_1_la_SOURCES
148 CLEANFILES= $(built_h_sources) \
149 $(built_private_h_sources) \
152 pkgconfig_DATA= adg-1.pc
154 adg_includedir= $(includedir)/adg-1/adg
155 adg_include_DATA= $(h_sources) \
158 lib_LTLIBRARIES= libadg-1.la
159 libadg_1_la_SOURCES= $(h_sources) \
160 $(private_h_sources) \
162 nodist_libadg_1_la_SOURCES= $(built_h_sources) \
163 $(built_private_h_sources) \
165 libadg_1_la_CFLAGS= $(ADG_CFLAGS)
166 libadg_1_la_LDFLAGS= -no-undefined \
167 -version-info @ADG_LT_VERSION@ \
169 libadg_1_la_LIBADD= $(top_builddir)/src/cpml/libcpml-1.la
172 ## Optional GTK+ related stuff
175 h_sources+= adg-gtk-area.h \
178 private_h_sources+= adg-gtk-area-private.h \
179 adg-gtk-layout-private.h
180 c_sources+= adg-gtk-utils.c
181 ADG_CFLAGS+= $(GTK3_CFLAGS) \
183 ADG_LDFLAGS+= $(GTK3_LIBS) \
190 c_sources+= adg-gtk-area.c \
197 c_sources+= adg-gtk-area-gtk2.c \
198 adg-gtk-layout-gtk2.c
203 ## Optional pangocairo related stuff
206 h_sources+= adg-pango-style.h \
208 private_h_sources+= adg-pango-style-private.h \
210 c_sources+= adg-pango-style.c \
212 ADG_CFLAGS+= $(PANGO_CFLAGS)
213 ADG_LDFLAGS+= $(PANGO_LIBS)
218 ## GObject introspection
219 -include $(INTROSPECTION_MAKEFILE)
221 INTROSPECTION_SCANNER_ARGS= --add-include-path=$(top_builddir)/src/cpml
222 INTROSPECTION_COMPILER_ARGS= --includedir=$(top_builddir)/src/cpml
224 if HAVE_INTROSPECTION
226 INTROSPECTION_GIRS+= Adg-1.0.gir
227 Adg-1.0.gir: libadg-1.la
229 Adg_1_0_gir_LIBS= libadg-1.la
230 Adg_1_0_gir_INCLUDES=
231 Adg_1_0_gir_PACKAGES=
235 ## GTK+3 includes all the needed dependencies
236 Adg_1_0_gir_INCLUDES+= Gtk-3.0
237 Adg_1_0_gir_PACKAGES+= gtk+-3.0
239 ## GTK+2 includes all the needed dependencies
240 Adg_1_0_gir_INCLUDES+= Gtk-2.0
241 Adg_1_0_gir_PACKAGES+= gtk+-2.0
245 ## pangocairo is a superset of the default dependencies
246 Adg_1_0_gir_INCLUDES+= PangoCairo-1.0
247 Adg_1_0_gir_PACKAGES+= pangocairo
249 Adg_1_0_gir_INCLUDES+= GObject-2.0
250 Adg_1_0_gir_PACKAGES+= gobject-2.0
254 Adg_1_0_gir_FILES= adg-introspection.h \
257 ## Dependency from CPML will be added manually because it is still an
258 ## internal component, hence not yet installed at this point
259 Adg_1_0_gir_CFLAGS= $(AM_CPPFLAGS)
260 Adg_1_0_gir_LDFLAGS= $(ADG_LDFLAGS)
261 Adg_1_0_gir_SCANNERFLAGS= --c-include='adg.h' \
263 --include-uninstalled=$(top_builddir)/src/cpml/Cpml-1.0.gir
264 girdir= $(datadir)/gir-1.0
265 dist_gir_DATA= $(INTROSPECTION_GIRS)
266 typelibdir= $(libdir)/girepository-1.0
267 typelib_DATA= $(INTROSPECTION_GIRS:.gir=.typelib)
268 CLEANFILES+= $(dist_gir_DATA) \
274 mkenums_command= $(AM_V_GEN)$(GLIB_MKENUMS) \
276 genmarshal_command= $(AM_V_GEN)$(GLIB_GENMARSHAL) \
277 --nostdinc --internal --prefix=adg_marshal
280 adg-type-builtins.c: $(srcdir)/adg-type-builtins.c.mkenums $(srcdir)/adg-enums.h
281 $(mkenums_command) $(srcdir)/adg-type-builtins.c.mkenums $(srcdir)/adg-enums.h > $@
283 adg-type-builtins.h: $(srcdir)/adg-type-builtins.h.mkenums $(srcdir)/adg-enums.h
284 $(mkenums_command) $(srcdir)/adg-type-builtins.h.mkenums $(srcdir)/adg-enums.h > $@
286 adg-marshal.c: $(srcdir)/adg-marshal.genmarshal
287 @echo '#include <glib-object.h>' > $@ ;
288 $(genmarshal_command) --body $(srcdir)/adg-marshal.genmarshal >> $@
290 adg-marshal.h: $(srcdir)/adg-marshal.genmarshal
291 $(genmarshal_command) --header $(srcdir)/adg-marshal.genmarshal > $@