1 include $(top_srcdir)/build/Makefile.am.common
9 AM_CFLAGS= $(CPML_CFLAGS) \
11 AM_CPPFLAGS= -I$(top_srcdir)/src \
12 -I$(top_builddir)/src \
13 -DLOCALEDIR=\""$(localedir)"\"
17 h_sources= adg-adim.h \
20 $(builddir)/adg-canvas.h \
30 adg-cairo-fallback.h \
33 adg-forward-declarations.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 \
67 adg-dim-style-private.h \
70 adg-entity-private.h \
71 adg-fill-style-private.h \
72 adg-font-style-private.h \
76 adg-line-style-private.h \
78 adg-marker-private.h \
81 adg-projection-private.h \
83 adg-ruled-fill-private.h \
84 adg-stroke-private.h \
86 adg-table-style-private.h \
88 adg-title-block-private.h \
89 adg-toy-text-private.h \
91 built_private_h_sources= adg-marshal.h
92 c_sources= adg-adim.c \
95 adg-cairo-fallback.c \
132 built_c_sources= adg-type-builtins.c \
134 template_sources= adg-type-builtins.c.mkenums \
135 adg-type-builtins.h.mkenums \
136 adg-marshal.genmarshal
140 EXTRA_DIST= $(template_sources) \
141 adg-introspection.h \
143 BUILT_SOURCES= $(built_h_sources) \
144 $(built_private_h_sources)
145 # built_c_sources are properly tracked
146 # by nodist_libadg_1_la_SOURCES
147 CLEANFILES= $(built_h_sources) \
148 $(built_private_h_sources) \
152 ## Optional GTK+ related stuff
155 h_sources+= adg-gtk-area.h \
158 private_h_sources+= adg-gtk-area-private.h \
159 adg-gtk-layout-private.h
160 c_sources+= adg-gtk-area.c \
166 ## Optional pangocairo related stuff
169 h_sources+= adg-pango-style.h \
171 private_h_sources+= adg-pango-style-private.h \
173 c_sources+= adg-pango-style.c \
178 pkgconfig_DATA= adg-1.pc
180 adg_includedir= $(includedir)/adg-1/adg
181 adg_include_DATA= $(h_sources) \
184 lib_LTLIBRARIES= libadg-1.la
185 libadg_1_la_SOURCES= $(h_sources) \
186 $(private_h_sources) \
188 nodist_libadg_1_la_SOURCES= $(built_c_sources)
189 libadg_1_la_LDFLAGS= -no-undefined \
190 -version-info $(ADG_LT_VERSION)
191 libadg_1_la_LIBADD= $(CPML_LIBS) \
192 $(top_builddir)/src/cpml/libcpml-1.la \
196 ## GObject introspection
198 -include $(INTROSPECTION_MAKEFILE)
200 INTROSPECTION_SCANNER_ARGS= --add-include-path=$(top_builddir)/src/cpml
201 INTROSPECTION_COMPILER_ARGS= --includedir=$(top_builddir)/src/cpml
203 if HAVE_INTROSPECTION
205 Adg-1.0.gir: libadg-1.la
207 INTROSPECTION_GIRS+= Adg-1.0.gir
208 Adg_1_0_gir_LIBS= libadg-1.la
209 Adg_1_0_gir_INCLUDES=
210 Adg_1_0_gir_PACKAGES=
213 Adg_1_0_gir_INCLUDES+= Gtk-3.0
217 Adg_1_0_gir_INCLUDES+= Gtk-2.0
218 # gir doc says INCLUDES will already fetch the packages (it works for GTK+3)
219 # but without this the build after a ./configure --with-gtk=gtk2 will fail
220 Adg_1_0_gir_PACKAGES+= gtk+-2.0
224 Adg_1_0_gir_INCLUDES+= PangoCairo-1.0
227 Adg_1_0_gir_INCLUDES+= Cpml-1.0 \
230 Adg_1_0_gir_FILES= adg-introspection.h \
233 Adg_1_0_gir_SCANNERFLAGS= $(AM_CPPFLAGS) \
234 --c-include='adg.h' \
237 dist_gir_DATA= $(INTROSPECTION_GIRS)
238 typelibdir= $(TYPELIBDIR)
239 typelib_DATA= $(INTROSPECTION_GIRS:.gir=.typelib)
240 CLEANFILES+= $(dist_gir_DATA) \
246 mkenums_command= $(AM_V_GEN)$(GLIB_MKENUMS) \
248 genmarshal_command= $(AM_V_GEN)$(GLIB_GENMARSHAL) \
249 --nostdinc --internal --prefix=adg_marshal
252 adg-type-builtins.c: $(srcdir)/adg-type-builtins.c.mkenums $(srcdir)/adg-enums.h
253 $(mkenums_command) $(srcdir)/adg-type-builtins.c.mkenums $(srcdir)/adg-enums.h > $@
255 adg-type-builtins.h: $(srcdir)/adg-type-builtins.h.mkenums $(srcdir)/adg-enums.h
256 $(mkenums_command) $(srcdir)/adg-type-builtins.h.mkenums $(srcdir)/adg-enums.h > $@
258 adg-marshal.c: $(srcdir)/adg-marshal.genmarshal
259 @echo '#include <glib-object.h>' > $@ ;
260 $(genmarshal_command) --body $(srcdir)/adg-marshal.genmarshal >> $@
262 adg-marshal.h: $(srcdir)/adg-marshal.genmarshal
263 $(genmarshal_command) --header $(srcdir)/adg-marshal.genmarshal > $@
267 $(GCOV) $(srcdir)/*.c -s $(srcdir) -o .libs
269 # Possibly remove files created by 'make coverage'