1 MSG_GEN= echo ' GEN '$@;
2 mkenums_to_c= $(MSG_GEN)$(GLIB_MKENUMS) --template $^ > $@
3 mkenums_to_h= $(mkenums_to_c)
4 genmarshal_to_c= $(MSG_GEN)$(GLIB_GENMARSHAL) --body --prefix=adg_marshal $< > $@
5 genmarshal_to_h= $(MSG_GEN)$(GLIB_GENMARSHAL) --header --prefix=adg_marshal $< > $@
6 AM_CFLAGS= -I$(top_srcdir) \
13 h_sources= adg-adim.h \
22 adg-dress-builtins.h \
52 built_h_sources= $(builddir)/adg-type-builtins.h \
53 $(builddir)/adg-marshal.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 \
62 adg-dim-style-private.h \
65 adg-entity-private.h \
66 adg-fill-style-private.h \
67 adg-font-style-private.h \
71 adg-line-style-private.h \
73 adg-marker-private.h \
76 adg-projection-private.h \
78 adg-ruled-fill-private.h \
79 adg-stroke-private.h \
81 adg-table-style-private.h \
82 adg-title-block-private.h \
84 adg-toy-text-private.h
85 built_private_h_sources=
86 c_sources= adg-adim.c \
95 adg-dress-builtins.c \
125 built_c_sources= $(builddir)/adg-type-builtins.c \
126 $(builddir)/adg-marshal.c
127 EXTRA_DIST= adg-type-builtins.c.mkenums \
128 adg-type-builtins.h.mkenums \
129 adg-marshal.genmarshal \
132 AM_CFLAGS+= @GTK2_CFLAGS@
133 AM_LDFLAGS+= @GTK2_LIBS@
134 h_sources+= adg-widget.h
135 private_h_sources+= adg-widget-private.h
136 c_sources+= adg-widget.c
137 PATTERN+= /\/\* if GTK2 \*\//d;/\/\* endif GTK2 \*\//d;
141 AM_CFLAGS+= @GOBJECT2_CFLAGS@ \
143 AM_LDFLAGS+= @GOBJECT2_LIBS@ \
145 PATTERN+= /\/\* if GTK2 \*\//,/\/\* endif GTK2 \*\//d;
151 BUILT_SOURCES= $(built_h_sources)
152 CLEANFILES= $(built_h_sources) \
153 $(built_private_h_sources) \
156 libadg_includedir= $(includedir)/adg
157 libadg_include_DATA= $(h_sources) \
160 lib_LTLIBRARIES= libadg.la
161 libadg_la_LDFLAGS= -release @PACKAGE_VERSION@
162 libadg_la_SOURCES= $(h_sources) \
163 $(private_h_sources) \
165 nodist_libadg_la_SOURCES= $(built_h_sources) \
166 $(built_private_h_sources) \
168 libadg_la_LIBADD= $(top_builddir)/cpml/libcpml.la
169 libadg_la_DEPENDENCIES= $(top_builddir)/cpml/libcpml.la
172 adg-type-builtins.c: adg-type-builtins.c.mkenums adg-enums.h
175 adg-type-builtins.h: adg-type-builtins.h.mkenums adg-enums.h
178 adg-marshal.c: adg-marshal.genmarshal
181 adg-marshal.h: adg-marshal.genmarshal
184 # Regenerate the adg.h header file: forcing a dependency on config.log
185 # is an easy way to invalidate this file whenever a ./configure is recall
186 $(builddir)/adg.h: adg.h.in $(top_builddir)/config.log
187 $(MSG_GEN)rm -f $@.tmp
188 sed -e '$(PATTERN)' $< > $@.tmp