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 \
52 built_h_sources= adg-type-builtins.h
53 private_h_sources= adg-adim-private.h \
54 adg-alignment-private.h \
56 adg-canvas-private.h \
57 adg-color-style-private.h \
58 adg-container-private.h \
61 adg-dim-style-private.h \
64 adg-entity-private.h \
65 adg-fill-style-private.h \
66 adg-font-style-private.h \
70 adg-line-style-private.h \
72 adg-marker-private.h \
75 adg-projection-private.h \
77 adg-ruled-fill-private.h \
78 adg-stroke-private.h \
80 adg-table-style-private.h \
82 adg-title-block-private.h \
83 adg-toy-text-private.h \
85 built_private_h_sources= adg-marshal.h
86 c_sources= adg-adim.c \
96 adg-dress-builtins.c \
125 built_c_sources= adg-type-builtins.c \
127 template_sources= adg-type-builtins.c.mkenums \
128 adg-type-builtins.h.mkenums \
129 adg-marshal.genmarshal
133 EXTRA_DIST= $(template_sources) \
134 adg-introspection.h \
136 BUILT_SOURCES= $(built_h_sources) \
137 $(built_private_h_sources)
138 # built_c_sources are properly tracked
139 # by nodist_libadg_1_la_SOURCES
140 CLEANFILES= $(built_h_sources) \
141 $(built_private_h_sources) \
145 ## Optional GTK+ related stuff
148 h_sources+= adg-gtk-area.h \
151 private_h_sources+= adg-gtk-area-private.h \
152 adg-gtk-layout-private.h
153 c_sources+= adg-gtk-utils.c
157 c_sources+= adg-gtk-area.c \
162 c_sources+= adg-gtk-area-gtk2.c \
163 adg-gtk-layout-gtk2.c
167 ## Optional pangocairo related stuff
170 h_sources+= adg-pango-style.h \
172 private_h_sources+= adg-pango-style-private.h \
174 c_sources+= adg-pango-style.c \
179 pkgconfig_DATA= adg-1.pc
181 adg_includedir= $(includedir)/adg-1/adg
182 adg_include_DATA= $(h_sources) \
185 lib_LTLIBRARIES= libadg-1.la
186 libadg_1_la_SOURCES= $(h_sources) \
187 $(private_h_sources) \
189 nodist_libadg_1_la_SOURCES= $(built_h_sources) \
190 $(built_private_h_sources) \
192 libadg_1_la_CFLAGS= $(CPML_CFLAGS) \
194 libadg_1_la_LDFLAGS= -no-undefined \
195 -version-info @ADG_LT_VERSION@
196 libadg_1_la_LIBADD= $(CPML_LIBS) \
197 $(top_builddir)/src/cpml/libcpml-1.la \
201 ## GObject introspection
203 -include $(INTROSPECTION_MAKEFILE)
205 INTROSPECTION_SCANNER_ARGS= --add-include-path=$(top_builddir)/src/cpml
206 INTROSPECTION_COMPILER_ARGS= --includedir=$(top_builddir)/src/cpml
208 if HAVE_INTROSPECTION
210 Adg-1.0.gir: libadg-1.la
212 INTROSPECTION_GIRS+= Adg-1.0.gir
213 Adg_1_0_gir_LIBS= libadg-1.la
214 Adg_1_0_gir_INCLUDES=
215 Adg_1_0_gir_PACKAGES=
218 Adg_1_0_gir_INCLUDES+= Gtk-3.0
222 Adg_1_0_gir_INCLUDES+= Gtk-2.0
223 # gir doc says INCLUDES will already fetch the packages (it works for GTK+3)
224 # but without this the build after a ./configure --with-gtk=gtk2 will fail
225 Adg_1_0_gir_PACKAGES+= gtk+-2.0
229 Adg_1_0_gir_INCLUDES+= PangoCairo-1.0
232 Adg_1_0_gir_INCLUDES+= Cpml-1.0 \
235 Adg_1_0_gir_FILES= adg-introspection.h \
238 Adg_1_0_gir_SCANNERFLAGS= $(AM_CPPFLAGS) \
239 --c-include='adg.h' \
242 dist_gir_DATA= $(INTROSPECTION_GIRS)
243 typelibdir= $(TYPELIBDIR)
244 typelib_DATA= $(INTROSPECTION_GIRS:.gir=.typelib)
245 CLEANFILES+= $(dist_gir_DATA) \
251 mkenums_command= $(AM_V_GEN)$(GLIB_MKENUMS) \
253 genmarshal_command= $(AM_V_GEN)$(GLIB_GENMARSHAL) \
254 --nostdinc --internal --prefix=adg_marshal
257 adg-type-builtins.c: $(srcdir)/adg-type-builtins.c.mkenums $(srcdir)/adg-enums.h
258 $(mkenums_command) $(srcdir)/adg-type-builtins.c.mkenums $(srcdir)/adg-enums.h > $@
260 adg-type-builtins.h: $(srcdir)/adg-type-builtins.h.mkenums $(srcdir)/adg-enums.h
261 $(mkenums_command) $(srcdir)/adg-type-builtins.h.mkenums $(srcdir)/adg-enums.h > $@
263 adg-marshal.c: $(srcdir)/adg-marshal.genmarshal
264 @echo '#include <glib-object.h>' > $@ ;
265 $(genmarshal_command) --body $(srcdir)/adg-marshal.genmarshal >> $@
267 adg-marshal.h: $(srcdir)/adg-marshal.genmarshal
268 $(genmarshal_command) --header $(srcdir)/adg-marshal.genmarshal > $@