1 MSG_GEN= echo ' GEN '$@;
2 AM_CFLAGS= -I$(top_srcdir) \
8 h_sources= adg-adim.h \
36 built_h_sources= $(builddir)/adg-type-builtins.h \
37 $(builddir)/adg-marshal.h \
39 private_h_sources= adg-adim-private.h \
41 adg-canvas-private.h \
42 adg-color-style-private.h \
43 adg-container-private.h \
45 adg-dim-style-private.h \
48 adg-entity-private.h \
50 adg-font-style-private.h \
53 adg-line-style-private.h \
54 adg-marker-private.h \
58 adg-stroke-private.h \
59 adg-title-block-private.h \
61 adg-toy-text-private.h
62 built_private_h_sources=
63 c_sources= adg-adim.c \
92 built_c_sources= $(builddir)/adg-type-builtins.c \
93 $(builddir)/adg-marshal.c
94 EXTRA_DIST= adg-type-builtins.c.mkenums \
95 adg-type-builtins.h.mkenums \
96 adg-marshal.genmarshal \
99 AM_CFLAGS+= @GTK2_CFLAGS@
100 AM_LDFLAGS+= @GTK2_LIBS@
101 h_sources+= adg-widget.h
102 private_h_sources+= adg-widget-private.h
103 c_sources+= adg-widget.c
104 PATTERN+= /\/\* if GTK2 \*\//d;/\/\* endif GTK2 \*\//d;
108 AM_CFLAGS+= @GOBJECT2_CFLAGS@ \
110 AM_LDFLAGS+= @GOBJECT2_LIBS@ \
112 PATTERN+= /\/\* if GTK2 \*\//,/\/\* endif GTK2 \*\//d;
118 BUILT_SOURCES= $(built_h_sources)
119 CLEANFILES= $(built_h_sources) \
120 $(built_private_h_sources) \
123 libadg_includedir= $(includedir)/adg
124 libadg_include_DATA= $(h_sources) \
127 lib_LTLIBRARIES= libadg.la
128 libadg_la_LDFLAGS= -release @PACKAGE_VERSION@
129 libadg_la_SOURCES= $(h_sources) \
130 $(private_h_sources) \
132 nodist_libadg_la_SOURCES= $(built_h_sources) \
133 $(built_private_h_sources) \
135 libadg_la_LIBADD= $(top_builddir)/cpml/libcpml.la
136 libadg_la_DEPENDENCIES= $(top_builddir)/cpml/libcpml.la
139 adg-type-builtins.c: adg-type-builtins.c.mkenums adg-enums.h
140 $(MSG_GEN)$(GLIB_MKENUMS) --template $^ > $@
142 adg-type-builtins.h: adg-type-builtins.h.mkenums adg-enums.h
143 $(MSG_GEN)$(GLIB_MKENUMS) --template $^ > $@
145 adg-marshal.c: adg-marshal.genmarshal
146 $(MSG_GEN)$(GLIB_GENMARSHAL) --body --prefix=adg_marshal $< > $@
148 adg-marshal.h: adg-marshal.genmarshal
149 $(MSG_GEN)$(GLIB_GENMARSHAL) --header --prefix=adg_marshal $< > $@
151 # Regenerate the adg.h header file: forcing a dependency on config.log
152 # is an easy way to invalidate this file whenever a ./configure is recall
153 $(builddir)/adg.h: adg.h.in $(top_builddir)/config.log
155 sed -e '$(PATTERN)' $< > $@.tmp