1 MSG_GEN= echo ' GEN '$@;
2 AM_CFLAGS= -I$(top_srcdir) \
9 h_sources= adg-adim.h \
18 adg-dress-builtins.h \
47 built_h_sources= $(builddir)/adg-type-builtins.h \
48 $(builddir)/adg-marshal.h \
50 private_h_sources= adg-adim-private.h \
51 adg-alignment-private.h \
53 adg-canvas-private.h \
54 adg-color-style-private.h \
55 adg-container-private.h \
57 adg-dim-style-private.h \
60 adg-entity-private.h \
62 adg-fill-style-private.h \
63 adg-font-style-private.h \
67 adg-line-style-private.h \
69 adg-marker-private.h \
72 adg-projection-private.h \
74 adg-ruled-fill-private.h \
75 adg-stroke-private.h \
77 adg-table-style-private.h \
78 adg-title-block-private.h \
80 adg-toy-text-private.h
81 built_private_h_sources=
82 c_sources= adg-adim.c \
91 adg-dress-builtins.c \
121 built_c_sources= $(builddir)/adg-type-builtins.c \
122 $(builddir)/adg-marshal.c
123 EXTRA_DIST= adg-type-builtins.c.mkenums \
124 adg-type-builtins.h.mkenums \
125 adg-marshal.genmarshal \
128 AM_CFLAGS+= @GTK2_CFLAGS@
129 AM_LDFLAGS+= @GTK2_LIBS@
130 h_sources+= adg-widget.h
131 private_h_sources+= adg-widget-private.h
132 c_sources+= adg-widget.c
133 PATTERN+= /\/\* if GTK2 \*\//d;/\/\* endif GTK2 \*\//d;
137 AM_CFLAGS+= @GOBJECT2_CFLAGS@ \
139 AM_LDFLAGS+= @GOBJECT2_LIBS@ \
141 PATTERN+= /\/\* if GTK2 \*\//,/\/\* endif GTK2 \*\//d;
147 BUILT_SOURCES= $(built_h_sources)
148 CLEANFILES= $(built_h_sources) \
149 $(built_private_h_sources) \
152 libadg_includedir= $(includedir)/adg
153 libadg_include_DATA= $(h_sources) \
156 lib_LTLIBRARIES= libadg.la
157 libadg_la_LDFLAGS= -release @PACKAGE_VERSION@
158 libadg_la_SOURCES= $(h_sources) \
159 $(private_h_sources) \
161 nodist_libadg_la_SOURCES= $(built_h_sources) \
162 $(built_private_h_sources) \
164 libadg_la_LIBADD= $(top_builddir)/cpml/libcpml.la
165 libadg_la_DEPENDENCIES= $(top_builddir)/cpml/libcpml.la
168 adg-type-builtins.c: adg-type-builtins.c.mkenums adg-enums.h
169 adg-type-builtins.h: adg-type-builtins.h.mkenums adg-enums.h
170 $(MSG_GEN)$(GLIB_MKENUMS) --template $^ > $@
172 adg-marshal.c: adg-marshal.genmarshal
173 $(MSG_GEN)$(GLIB_GENMARSHAL) --body --prefix=adg_marshal $< > $@
175 adg-marshal.h: adg-marshal.genmarshal
176 $(MSG_GEN)$(GLIB_GENMARSHAL) --header --prefix=adg_marshal $< > $@
178 # Regenerate the adg.h header file: forcing a dependency on config.log
179 # is an easy way to invalidate this file whenever a ./configure is recall
180 $(builddir)/adg.h: adg.h.in $(top_builddir)/config.log
181 $(MSG_GEN)rm -f $@.tmp
182 sed -e '$(PATTERN)' $< > $@.tmp