1 include $(top_srcdir)/build/Makefile.am.common
7 AM_CPPFLAGS= -I$(top_srcdir)/src \
10 ## On windows, ADG_DATADIR is handled as a path relative
11 ## to the binary executable
13 AM_CPPFLAGS+= -DADG_DATADIR='""'
15 AM_CPPFLAGS+= -DADG_DATADIR='"$(pkgdatadir)"'
18 ADG_CFLAGS= $(CAIRO_CFLAGS) \
20 ADG_LDFLAGS= $(CAIRO_LIBS) \
25 h_sources= adg-adim.h \
34 adg-dress-builtins.h \
67 built_h_sources= adg-type-builtins.h
68 private_h_sources= adg-adim-private.h \
69 adg-alignment-private.h \
71 adg-canvas-private.h \
72 adg-color-style-private.h \
73 adg-container-private.h \
75 adg-dim-style-private.h \
78 adg-entity-private.h \
79 adg-fill-style-private.h \
80 adg-font-style-private.h \
84 adg-line-style-private.h \
86 adg-marker-private.h \
89 adg-projection-private.h \
91 adg-ruled-fill-private.h \
92 adg-stroke-private.h \
94 adg-table-style-private.h \
96 adg-title-block-private.h \
97 adg-toy-text-private.h \
99 built_private_h_sources= adg-marshal.h
100 c_sources= adg-adim.c \
109 adg-dress-builtins.c \
142 built_c_sources= adg-type-builtins.c \
144 template_sources= adg-type-builtins.c.mkenums \
145 adg-type-builtins.h.mkenums \
146 adg-marshal.genmarshal
150 EXTRA_DIST= $(template_sources) \
151 adg-introspection.h \
153 BUILT_SOURCES= $(built_h_sources) \
154 $(built_private_h_sources)
155 # built_c_sources are properly tracked
156 # by nodist_libadg_1_la_SOURCES
157 CLEANFILES= $(built_h_sources) \
158 $(built_private_h_sources) \
161 pkgconfig_DATA= adg-1.pc
163 adg_includedir= $(includedir)/adg-1/adg
164 adg_include_DATA= $(h_sources) \
167 lib_LTLIBRARIES= libadg-1.la
168 libadg_1_la_SOURCES= $(h_sources) \
169 $(private_h_sources) \
171 nodist_libadg_1_la_SOURCES= $(built_h_sources) \
172 $(built_private_h_sources) \
174 libadg_1_la_CFLAGS= $(ADG_CFLAGS)
175 libadg_1_la_LDFLAGS= -no-undefined \
176 -version-info @ADG_LT_VERSION@ \
178 libadg_1_la_LIBADD= $(top_builddir)/src/cpml/libcpml-1.la
181 ## Optional GTK+ related stuff
184 h_sources+= adg-gtk-area.h \
187 private_h_sources+= adg-gtk-area-private.h \
188 adg-gtk-layout-private.h
189 c_sources+= adg-gtk-utils.c
190 ADG_CFLAGS+= $(GTK3_CFLAGS) \
192 ADG_LDFLAGS+= $(GTK3_LIBS) \
199 c_sources+= adg-gtk-area.c \
206 c_sources+= adg-gtk-area-gtk2.c \
207 adg-gtk-layout-gtk2.c
212 ## Optional pangocairo related stuff
215 h_sources+= adg-pango-style.h \
217 private_h_sources+= adg-pango-style-private.h \
219 c_sources+= adg-pango-style.c \
221 ADG_CFLAGS+= $(PANGO_CFLAGS)
222 ADG_LDFLAGS+= $(PANGO_LIBS)
227 ## GObject introspection
228 -include $(INTROSPECTION_MAKEFILE)
230 INTROSPECTION_SCANNER_ARGS= --add-include-path=$(top_builddir)/src/cpml
231 INTROSPECTION_COMPILER_ARGS= --includedir=$(top_builddir)/src/cpml
233 if HAVE_INTROSPECTION
235 INTROSPECTION_GIRS+= Adg-1.0.gir
236 Adg-1.0.gir: libadg-1.la
238 Adg_1_0_gir_LIBS= libadg-1.la
239 Adg_1_0_gir_INCLUDES=
240 Adg_1_0_gir_PACKAGES=
244 ## GTK+3 includes all the needed dependencies
245 Adg_1_0_gir_INCLUDES+= Gtk-3.0
246 Adg_1_0_gir_PACKAGES+= gtk+-3.0
248 ## GTK+2 includes all the needed dependencies
249 Adg_1_0_gir_INCLUDES+= Gtk-2.0
250 Adg_1_0_gir_PACKAGES+= gtk+-2.0
254 ## pangocairo is a superset of the default dependencies
255 Adg_1_0_gir_INCLUDES+= PangoCairo-1.0
256 Adg_1_0_gir_PACKAGES+= pangocairo
258 Adg_1_0_gir_INCLUDES+= GObject-2.0
259 Adg_1_0_gir_PACKAGES+= gobject-2.0
263 Adg_1_0_gir_FILES= adg-introspection.h \
266 ## Dependency from CPML will be added manually because it is still an
267 ## internal component, hence not yet installed at this point
268 Adg_1_0_gir_CFLAGS= $(AM_CPPFLAGS)
269 Adg_1_0_gir_LDFLAGS= $(ADG_LDFLAGS)
270 Adg_1_0_gir_SCANNERFLAGS= --c-include='adg.h' \
272 --include-uninstalled=$(top_builddir)/src/cpml/Cpml-1.0.gir
274 dist_gir_DATA= $(INTROSPECTION_GIRS)
275 typelibdir= $(TYPELIBDIR)
276 typelib_DATA= $(INTROSPECTION_GIRS:.gir=.typelib)
277 CLEANFILES+= $(dist_gir_DATA) \
283 mkenums_command= $(AM_V_GEN)$(GLIB_MKENUMS) \
285 genmarshal_command= $(AM_V_GEN)$(GLIB_GENMARSHAL) \
286 --nostdinc --internal --prefix=adg_marshal
289 adg-type-builtins.c: $(srcdir)/adg-type-builtins.c.mkenums $(srcdir)/adg-enums.h
290 $(mkenums_command) $(srcdir)/adg-type-builtins.c.mkenums $(srcdir)/adg-enums.h > $@
292 adg-type-builtins.h: $(srcdir)/adg-type-builtins.h.mkenums $(srcdir)/adg-enums.h
293 $(mkenums_command) $(srcdir)/adg-type-builtins.h.mkenums $(srcdir)/adg-enums.h > $@
295 adg-marshal.c: $(srcdir)/adg-marshal.genmarshal
296 @echo '#include <glib-object.h>' > $@ ;
297 $(genmarshal_command) --body $(srcdir)/adg-marshal.genmarshal >> $@
299 adg-marshal.h: $(srcdir)/adg-marshal.genmarshal
300 $(genmarshal_command) --header $(srcdir)/adg-marshal.genmarshal > $@