1 MSG_GEN= echo ' GEN '$@;
2 AM_CFLAGS= -I$(top_srcdir) \
8 h_sources= adg-adim.h \
34 built_h_sources= $(builddir)/adg-type-builtins.h \
35 $(builddir)/adg-marshal.h \
37 private_h_sources= adg-adim-private.h \
39 adg-canvas-private.h \
40 adg-color-style-private.h \
41 adg-container-private.h \
43 adg-dim-style-private.h \
45 adg-entity-private.h \
47 adg-font-style-private.h \
50 adg-line-style-private.h \
51 adg-marker-private.h \
54 adg-stroke-private.h \
55 adg-title-block-private.h \
57 adg-toy-text-private.h
58 built_private_h_sources=
59 c_sources= adg-adim.c \
86 built_c_sources= $(builddir)/adg-type-builtins.c \
87 $(builddir)/adg-marshal.c
88 EXTRA_DIST= adg-type-builtins.c.mkenums \
89 adg-type-builtins.h.mkenums \
90 adg-marshal.genmarshal \
93 AM_CFLAGS+= @GTK2_CFLAGS@
94 AM_LDFLAGS+= @GTK2_LIBS@
95 h_sources+= adg-widget.h
96 private_h_sources+= adg-widget-private.h
97 c_sources+= adg-widget.c
98 PATTERN+= /\/\* if GTK2 \*\//d;/\/\* endif GTK2 \*\//d;
102 AM_CFLAGS+= @GOBJECT2_CFLAGS@ \
104 AM_LDFLAGS+= @GOBJECT2_LIBS@ \
106 PATTERN+= /\/\* if GTK2 \*\//,/\/\* endif GTK2 \*\//d;
112 BUILT_SOURCES= $(built_h_sources)
113 CLEANFILES= $(built_h_sources) \
114 $(built_private_h_sources) \
117 libadg_includedir= $(includedir)/adg
118 libadg_include_DATA= $(h_sources) \
121 lib_LTLIBRARIES= libadg.la
122 libadg_la_LDFLAGS= -release @PACKAGE_VERSION@
123 libadg_la_SOURCES= $(h_sources) \
124 $(private_h_sources) \
126 nodist_libadg_la_SOURCES= $(built_h_sources) \
127 $(built_private_h_sources) \
129 libadg_la_LIBADD= $(top_builddir)/cpml/libcpml.la
130 libadg_la_DEPENDENCIES= $(top_builddir)/cpml/libcpml.la
133 adg-type-builtins.c: adg-type-builtins.c.mkenums adg-enums.h
134 $(MSG_GEN)$(GLIB_MKENUMS) --template $^ > $@
136 adg-type-builtins.h: adg-type-builtins.h.mkenums adg-enums.h
137 $(MSG_GEN)$(GLIB_MKENUMS) --template $^ > $@
139 adg-marshal.c: adg-marshal.genmarshal
140 $(MSG_GEN)$(GLIB_GENMARSHAL) --body --prefix=adg_marshal $< > $@
142 adg-marshal.h: adg-marshal.genmarshal
143 $(MSG_GEN)$(GLIB_GENMARSHAL) --header --prefix=adg_marshal $< > $@
145 # Regenerate the adg.h header file: forcing a dependency on config.log
146 # is an easy way to invalidate this file whenever a ./configure is recall
147 $(builddir)/adg.h: adg.h.in $(top_builddir)/config.log
149 sed -e '$(PATTERN)' $< > $@.tmp