1 MSG_GEN= echo ' GEN '$@;
2 AM_CFLAGS= -I$(top_srcdir) \
6 h_sources= adg-adim.h \
14 adg-dress-builtins.h \
39 built_h_sources= $(builddir)/adg-type-builtins.h \
40 $(builddir)/adg-marshal.h \
42 private_h_sources= adg-adim-private.h \
44 adg-canvas-private.h \
45 adg-color-style-private.h \
46 adg-container-private.h \
48 adg-dim-style-private.h \
51 adg-entity-private.h \
53 adg-fill-style-private.h \
54 adg-font-style-private.h \
58 adg-line-style-private.h \
59 adg-marker-private.h \
63 adg-ruled-fill-private.h \
64 adg-stroke-private.h \
65 adg-title-block-private.h \
67 adg-toy-text-private.h
68 built_private_h_sources=
69 c_sources= adg-adim.c \
77 adg-dress-builtins.c \
103 built_c_sources= $(builddir)/adg-type-builtins.c \
104 $(builddir)/adg-marshal.c
105 EXTRA_DIST= adg-type-builtins.c.mkenums \
106 adg-type-builtins.h.mkenums \
107 adg-marshal.genmarshal \
110 AM_CFLAGS+= @GTK2_CFLAGS@
111 AM_LDFLAGS+= @GTK2_LIBS@
112 h_sources+= adg-widget.h
113 private_h_sources+= adg-widget-private.h
114 c_sources+= adg-widget.c
115 PATTERN+= /\/\* if GTK2 \*\//d;/\/\* endif GTK2 \*\//d;
119 AM_CFLAGS+= @GOBJECT2_CFLAGS@ \
121 AM_LDFLAGS+= @GOBJECT2_LIBS@ \
123 PATTERN+= /\/\* if GTK2 \*\//,/\/\* endif GTK2 \*\//d;
129 BUILT_SOURCES= $(built_h_sources)
130 CLEANFILES= $(built_h_sources) \
131 $(built_private_h_sources) \
134 libadg_includedir= $(includedir)/adg
135 libadg_include_DATA= $(h_sources) \
138 lib_LTLIBRARIES= libadg.la
139 libadg_la_LDFLAGS= -release @PACKAGE_VERSION@
140 libadg_la_SOURCES= $(h_sources) \
141 $(private_h_sources) \
143 nodist_libadg_la_SOURCES= $(built_h_sources) \
144 $(built_private_h_sources) \
146 libadg_la_LIBADD= $(top_builddir)/cpml/libcpml.la
147 libadg_la_DEPENDENCIES= $(top_builddir)/cpml/libcpml.la
150 adg-type-builtins.c: adg-type-builtins.c.mkenums adg-enums.h
151 $(MSG_GEN)$(GLIB_MKENUMS) --template $^ > $@
153 adg-type-builtins.h: adg-type-builtins.h.mkenums adg-enums.h
154 $(MSG_GEN)$(GLIB_MKENUMS) --template $^ > $@
156 adg-marshal.c: adg-marshal.genmarshal
157 $(MSG_GEN)$(GLIB_GENMARSHAL) --body --prefix=adg_marshal $< > $@
159 adg-marshal.h: adg-marshal.genmarshal
160 $(MSG_GEN)$(GLIB_GENMARSHAL) --header --prefix=adg_marshal $< > $@
162 # Regenerate the adg.h header file: forcing a dependency on config.log
163 # is an easy way to invalidate this file whenever a ./configure is recall
164 $(builddir)/adg.h: adg.h.in $(top_builddir)/config.log
166 sed -e '$(PATTERN)' $< > $@.tmp