1 MSG_GEN= echo ' GEN '$@;
2 AM_CFLAGS= -I$(top_srcdir) \
6 h_sources= adg-adim.h \
15 adg-dress-builtins.h \
44 built_h_sources= $(builddir)/adg-type-builtins.h \
45 $(builddir)/adg-marshal.h \
47 private_h_sources= adg-adim-private.h \
48 adg-alignment-private.h \
50 adg-canvas-private.h \
51 adg-color-style-private.h \
52 adg-container-private.h \
54 adg-dim-style-private.h \
57 adg-entity-private.h \
59 adg-fill-style-private.h \
60 adg-font-style-private.h \
64 adg-line-style-private.h \
66 adg-marker-private.h \
69 adg-projection-private.h \
71 adg-ruled-fill-private.h \
72 adg-stroke-private.h \
74 adg-table-style-private.h \
75 adg-title-block-private.h \
77 adg-toy-text-private.h
78 built_private_h_sources=
79 c_sources= adg-adim.c \
88 adg-dress-builtins.c \
118 built_c_sources= $(builddir)/adg-type-builtins.c \
119 $(builddir)/adg-marshal.c
120 EXTRA_DIST= adg-type-builtins.c.mkenums \
121 adg-type-builtins.h.mkenums \
122 adg-marshal.genmarshal \
125 AM_CFLAGS+= @GTK2_CFLAGS@
126 AM_LDFLAGS+= @GTK2_LIBS@
127 h_sources+= adg-widget.h
128 private_h_sources+= adg-widget-private.h
129 c_sources+= adg-widget.c
130 PATTERN+= /\/\* if GTK2 \*\//d;/\/\* endif GTK2 \*\//d;
134 AM_CFLAGS+= @GOBJECT2_CFLAGS@ \
136 AM_LDFLAGS+= @GOBJECT2_LIBS@ \
138 PATTERN+= /\/\* if GTK2 \*\//,/\/\* endif GTK2 \*\//d;
144 BUILT_SOURCES= $(built_h_sources)
145 CLEANFILES= $(built_h_sources) \
146 $(built_private_h_sources) \
149 libadg_includedir= $(includedir)/adg
150 libadg_include_DATA= $(h_sources) \
153 lib_LTLIBRARIES= libadg.la
154 libadg_la_LDFLAGS= -release @PACKAGE_VERSION@
155 libadg_la_SOURCES= $(h_sources) \
156 $(private_h_sources) \
158 nodist_libadg_la_SOURCES= $(built_h_sources) \
159 $(built_private_h_sources) \
161 libadg_la_LIBADD= $(top_builddir)/cpml/libcpml.la
162 libadg_la_DEPENDENCIES= $(top_builddir)/cpml/libcpml.la
165 adg-type-builtins.c: adg-type-builtins.c.mkenums adg-enums.h
166 $(MSG_GEN)$(GLIB_MKENUMS) --template $^ > $@
168 adg-type-builtins.h: adg-type-builtins.h.mkenums adg-enums.h
169 $(MSG_GEN)$(GLIB_MKENUMS) --template $^ > $@
171 adg-marshal.c: adg-marshal.genmarshal
172 $(MSG_GEN)$(GLIB_GENMARSHAL) --body --prefix=adg_marshal $< > $@
174 adg-marshal.h: adg-marshal.genmarshal
175 $(MSG_GEN)$(GLIB_GENMARSHAL) --header --prefix=adg_marshal $< > $@
177 # Regenerate the adg.h header file: forcing a dependency on config.log
178 # is an easy way to invalidate this file whenever a ./configure is recall
179 $(builddir)/adg.h: adg.h.in $(top_builddir)/config.log
180 $(MSG_GEN)rm -f $@.tmp
181 sed -e '$(PATTERN)' $< > $@.tmp