1 MSG_GEN= echo ' GEN '$@;
2 AM_CFLAGS= -I$(top_srcdir) \
6 h_sources= adg-adim.h \
14 adg-dress-builtins.h \
41 built_h_sources= $(builddir)/adg-type-builtins.h \
42 $(builddir)/adg-marshal.h \
44 private_h_sources= adg-adim-private.h \
46 adg-canvas-private.h \
47 adg-color-style-private.h \
48 adg-container-private.h \
50 adg-dim-style-private.h \
53 adg-entity-private.h \
55 adg-fill-style-private.h \
56 adg-font-style-private.h \
60 adg-line-style-private.h \
61 adg-marker-private.h \
65 adg-ruled-fill-private.h \
66 adg-stroke-private.h \
68 adg-table-style-private.h \
69 adg-title-block-private.h \
71 adg-toy-text-private.h
72 built_private_h_sources=
73 c_sources= adg-adim.c \
81 adg-dress-builtins.c \
109 built_c_sources= $(builddir)/adg-type-builtins.c \
110 $(builddir)/adg-marshal.c
111 EXTRA_DIST= adg-type-builtins.c.mkenums \
112 adg-type-builtins.h.mkenums \
113 adg-marshal.genmarshal \
116 AM_CFLAGS+= @GTK2_CFLAGS@
117 AM_LDFLAGS+= @GTK2_LIBS@
118 h_sources+= adg-widget.h
119 private_h_sources+= adg-widget-private.h
120 c_sources+= adg-widget.c
121 PATTERN+= /\/\* if GTK2 \*\//d;/\/\* endif GTK2 \*\//d;
125 AM_CFLAGS+= @GOBJECT2_CFLAGS@ \
127 AM_LDFLAGS+= @GOBJECT2_LIBS@ \
129 PATTERN+= /\/\* if GTK2 \*\//,/\/\* endif GTK2 \*\//d;
135 BUILT_SOURCES= $(built_h_sources)
136 CLEANFILES= $(built_h_sources) \
137 $(built_private_h_sources) \
140 libadg_includedir= $(includedir)/adg
141 libadg_include_DATA= $(h_sources) \
144 lib_LTLIBRARIES= libadg.la
145 libadg_la_LDFLAGS= -release @PACKAGE_VERSION@
146 libadg_la_SOURCES= $(h_sources) \
147 $(private_h_sources) \
149 nodist_libadg_la_SOURCES= $(built_h_sources) \
150 $(built_private_h_sources) \
152 libadg_la_LIBADD= $(top_builddir)/cpml/libcpml.la
153 libadg_la_DEPENDENCIES= $(top_builddir)/cpml/libcpml.la
156 adg-type-builtins.c: adg-type-builtins.c.mkenums adg-enums.h
157 $(MSG_GEN)$(GLIB_MKENUMS) --template $^ > $@
159 adg-type-builtins.h: adg-type-builtins.h.mkenums adg-enums.h
160 $(MSG_GEN)$(GLIB_MKENUMS) --template $^ > $@
162 adg-marshal.c: adg-marshal.genmarshal
163 $(MSG_GEN)$(GLIB_GENMARSHAL) --body --prefix=adg_marshal $< > $@
165 adg-marshal.h: adg-marshal.genmarshal
166 $(MSG_GEN)$(GLIB_GENMARSHAL) --header --prefix=adg_marshal $< > $@
168 # Regenerate the adg.h header file: forcing a dependency on config.log
169 # is an easy way to invalidate this file whenever a ./configure is recall
170 $(builddir)/adg.h: adg.h.in $(top_builddir)/config.log
171 $(MSG_GEN)rm -f $@.tmp
172 sed -e '$(PATTERN)' $< > $@.tmp