1 include $(top_srcdir)/build/Makefile.am.common
7 AM_CPPFLAGS= -I$(top_srcdir)/src \
12 h_sources= adg-adim.h \
22 adg-dress-builtins.h \
28 adg-forward-declarations.h \
55 built_h_sources= adg-type-builtins.h
56 private_h_sources= adg-adim-private.h \
57 adg-alignment-private.h \
59 adg-canvas-private.h \
60 adg-color-style-private.h \
61 adg-container-private.h \
64 adg-dim-style-private.h \
67 adg-entity-private.h \
68 adg-fill-style-private.h \
69 adg-font-style-private.h \
73 adg-line-style-private.h \
75 adg-marker-private.h \
78 adg-projection-private.h \
80 adg-ruled-fill-private.h \
81 adg-stroke-private.h \
83 adg-table-style-private.h \
85 adg-title-block-private.h \
86 adg-toy-text-private.h \
88 built_private_h_sources= adg-marshal.h
89 c_sources= adg-adim.c \
99 adg-dress-builtins.c \
131 built_c_sources= adg-type-builtins.c \
133 template_sources= adg-type-builtins.c.mkenums \
134 adg-type-builtins.h.mkenums \
135 adg-marshal.genmarshal
139 EXTRA_DIST= $(template_sources) \
140 adg-introspection.h \
142 BUILT_SOURCES= $(built_h_sources) \
143 $(built_private_h_sources)
144 # built_c_sources are properly tracked
145 # by nodist_libadg_1_la_SOURCES
146 CLEANFILES= $(built_h_sources) \
147 $(built_private_h_sources) \
151 ## Optional GTK+ related stuff
154 h_sources+= adg-gtk-area.h \
157 private_h_sources+= adg-gtk-area-private.h \
158 adg-gtk-layout-private.h
159 c_sources+= adg-gtk-utils.c
163 c_sources+= adg-gtk-area.c \
168 c_sources+= adg-gtk-area-gtk2.c \
169 adg-gtk-layout-gtk2.c
173 ## Optional pangocairo related stuff
176 h_sources+= adg-pango-style.h \
178 private_h_sources+= adg-pango-style-private.h \
180 c_sources+= adg-pango-style.c \
185 pkgconfig_DATA= adg-1.pc
187 adg_includedir= $(includedir)/adg-1/adg
188 adg_include_DATA= $(h_sources) \
191 lib_LTLIBRARIES= libadg-1.la
192 libadg_1_la_SOURCES= $(h_sources) \
193 $(private_h_sources) \
195 nodist_libadg_1_la_SOURCES= $(built_h_sources) \
196 $(built_private_h_sources) \
198 libadg_1_la_CFLAGS= $(CPML_CFLAGS) \
200 libadg_1_la_LDFLAGS= -no-undefined \
201 -version-info @ADG_LT_VERSION@
202 libadg_1_la_LIBADD= $(CPML_LIBS) \
203 $(top_builddir)/src/cpml/libcpml-1.la \
207 ## GObject introspection
209 -include $(INTROSPECTION_MAKEFILE)
211 INTROSPECTION_SCANNER_ARGS= --add-include-path=$(top_builddir)/src/cpml
212 INTROSPECTION_COMPILER_ARGS= --includedir=$(top_builddir)/src/cpml
214 if HAVE_INTROSPECTION
216 Adg-1.0.gir: libadg-1.la
218 INTROSPECTION_GIRS+= Adg-1.0.gir
219 Adg_1_0_gir_LIBS= libadg-1.la
220 Adg_1_0_gir_INCLUDES=
221 Adg_1_0_gir_PACKAGES=
224 Adg_1_0_gir_INCLUDES+= Gtk-3.0
228 Adg_1_0_gir_INCLUDES+= Gtk-2.0
229 # gir doc says INCLUDES will already fetch the packages (it works for GTK+3)
230 # but without this the build after a ./configure --with-gtk=gtk2 will fail
231 Adg_1_0_gir_PACKAGES+= gtk+-2.0
235 Adg_1_0_gir_INCLUDES+= PangoCairo-1.0
238 Adg_1_0_gir_INCLUDES+= Cpml-1.0 \
241 Adg_1_0_gir_FILES= adg-introspection.h \
244 Adg_1_0_gir_SCANNERFLAGS= $(AM_CPPFLAGS) \
245 --c-include='adg.h' \
248 dist_gir_DATA= $(INTROSPECTION_GIRS)
249 typelibdir= $(TYPELIBDIR)
250 typelib_DATA= $(INTROSPECTION_GIRS:.gir=.typelib)
251 CLEANFILES+= $(dist_gir_DATA) \
257 mkenums_command= $(AM_V_GEN)$(GLIB_MKENUMS) \
259 genmarshal_command= $(AM_V_GEN)$(GLIB_GENMARSHAL) \
260 --nostdinc --internal --prefix=adg_marshal
263 adg-type-builtins.c: $(srcdir)/adg-type-builtins.c.mkenums $(srcdir)/adg-enums.h
264 $(mkenums_command) $(srcdir)/adg-type-builtins.c.mkenums $(srcdir)/adg-enums.h > $@
266 adg-type-builtins.h: $(srcdir)/adg-type-builtins.h.mkenums $(srcdir)/adg-enums.h
267 $(mkenums_command) $(srcdir)/adg-type-builtins.h.mkenums $(srcdir)/adg-enums.h > $@
269 adg-marshal.c: $(srcdir)/adg-marshal.genmarshal
270 @echo '#include <glib-object.h>' > $@ ;
271 $(genmarshal_command) --body $(srcdir)/adg-marshal.genmarshal >> $@
273 adg-marshal.h: $(srcdir)/adg-marshal.genmarshal
274 $(genmarshal_command) --header $(srcdir)/adg-marshal.genmarshal > $@