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 \
54 built_h_sources= adg-type-builtins.h
55 private_h_sources= adg-adim-private.h \
56 adg-alignment-private.h \
58 adg-canvas-private.h \
59 adg-color-style-private.h \
60 adg-container-private.h \
63 adg-dim-style-private.h \
66 adg-entity-private.h \
67 adg-fill-style-private.h \
68 adg-font-style-private.h \
72 adg-line-style-private.h \
74 adg-marker-private.h \
77 adg-projection-private.h \
79 adg-ruled-fill-private.h \
80 adg-stroke-private.h \
82 adg-table-style-private.h \
84 adg-title-block-private.h \
85 adg-toy-text-private.h \
87 built_private_h_sources= adg-marshal.h
88 c_sources= adg-adim.c \
98 adg-dress-builtins.c \
129 built_c_sources= adg-type-builtins.c \
131 template_sources= adg-type-builtins.c.mkenums \
132 adg-type-builtins.h.mkenums \
133 adg-marshal.genmarshal
137 EXTRA_DIST= $(template_sources) \
138 adg-introspection.h \
140 BUILT_SOURCES= $(built_h_sources) \
141 $(built_private_h_sources)
142 # built_c_sources are properly tracked
143 # by nodist_libadg_1_la_SOURCES
144 CLEANFILES= $(built_h_sources) \
145 $(built_private_h_sources) \
149 ## Optional GTK+ related stuff
152 h_sources+= adg-gtk-area.h \
155 private_h_sources+= adg-gtk-area-private.h \
156 adg-gtk-layout-private.h
157 c_sources+= adg-gtk-utils.c
161 c_sources+= adg-gtk-area.c \
166 c_sources+= adg-gtk-area-gtk2.c \
167 adg-gtk-layout-gtk2.c
171 ## Optional pangocairo related stuff
174 h_sources+= adg-pango-style.h \
176 private_h_sources+= adg-pango-style-private.h \
178 c_sources+= adg-pango-style.c \
183 pkgconfig_DATA= adg-1.pc
185 adg_includedir= $(includedir)/adg-1/adg
186 adg_include_DATA= $(h_sources) \
189 lib_LTLIBRARIES= libadg-1.la
190 libadg_1_la_SOURCES= $(h_sources) \
191 $(private_h_sources) \
193 nodist_libadg_1_la_SOURCES= $(built_h_sources) \
194 $(built_private_h_sources) \
196 libadg_1_la_CFLAGS= $(CPML_CFLAGS) \
198 libadg_1_la_LDFLAGS= -no-undefined \
199 -version-info @ADG_LT_VERSION@
200 libadg_1_la_LIBADD= $(CPML_LIBS) \
201 $(top_builddir)/src/cpml/libcpml-1.la \
205 ## GObject introspection
207 -include $(INTROSPECTION_MAKEFILE)
209 INTROSPECTION_SCANNER_ARGS= --add-include-path=$(top_builddir)/src/cpml
210 INTROSPECTION_COMPILER_ARGS= --includedir=$(top_builddir)/src/cpml
212 if HAVE_INTROSPECTION
214 Adg-1.0.gir: libadg-1.la
216 INTROSPECTION_GIRS+= Adg-1.0.gir
217 Adg_1_0_gir_LIBS= libadg-1.la
218 Adg_1_0_gir_INCLUDES=
219 Adg_1_0_gir_PACKAGES=
222 Adg_1_0_gir_INCLUDES+= Gtk-3.0
226 Adg_1_0_gir_INCLUDES+= Gtk-2.0
227 # gir doc says INCLUDES will already fetch the packages (it works for GTK+3)
228 # but without this the build after a ./configure --with-gtk=gtk2 will fail
229 Adg_1_0_gir_PACKAGES+= gtk+-2.0
233 Adg_1_0_gir_INCLUDES+= PangoCairo-1.0
236 Adg_1_0_gir_INCLUDES+= Cpml-1.0 \
239 Adg_1_0_gir_FILES= adg-introspection.h \
242 Adg_1_0_gir_SCANNERFLAGS= $(AM_CPPFLAGS) \
243 --c-include='adg.h' \
246 dist_gir_DATA= $(INTROSPECTION_GIRS)
247 typelibdir= $(TYPELIBDIR)
248 typelib_DATA= $(INTROSPECTION_GIRS:.gir=.typelib)
249 CLEANFILES+= $(dist_gir_DATA) \
255 mkenums_command= $(AM_V_GEN)$(GLIB_MKENUMS) \
257 genmarshal_command= $(AM_V_GEN)$(GLIB_GENMARSHAL) \
258 --nostdinc --internal --prefix=adg_marshal
261 adg-type-builtins.c: $(srcdir)/adg-type-builtins.c.mkenums $(srcdir)/adg-enums.h
262 $(mkenums_command) $(srcdir)/adg-type-builtins.c.mkenums $(srcdir)/adg-enums.h > $@
264 adg-type-builtins.h: $(srcdir)/adg-type-builtins.h.mkenums $(srcdir)/adg-enums.h
265 $(mkenums_command) $(srcdir)/adg-type-builtins.h.mkenums $(srcdir)/adg-enums.h > $@
267 adg-marshal.c: $(srcdir)/adg-marshal.genmarshal
268 @echo '#include <glib-object.h>' > $@ ;
269 $(genmarshal_command) --body $(srcdir)/adg-marshal.genmarshal >> $@
271 adg-marshal.h: $(srcdir)/adg-marshal.genmarshal
272 $(genmarshal_command) --header $(srcdir)/adg-marshal.genmarshal > $@