1 AM_CFLAGS= -I$(top_srcdir) \
4 GLIB_MKENUMS= `which glib-mkenums` \
5 --template $(srcdir)/$@.template \
10 h_sources= adg-adim.h \
36 built_h_sources= $(builddir)/adg-type-builtins.h \
38 private_h_sources= adg-adim-private.h \
40 adg-arrow-style-private.h \
41 adg-canvas-private.h \
42 adg-container-private.h \
43 adg-context-private.h \
45 adg-dim-style-private.h \
46 adg-entity-private.h \
48 adg-font-style-private.h \
51 adg-line-style-private.h \
52 adg-marker-private.h \
55 adg-stroke-private.h \
57 adg-title-block-private.h \
59 adg-toy-text-private.h
60 built_private_h_sources=
61 c_sources= adg-adim.c \
88 built_c_sources= $(builddir)/adg-type-builtins.c
89 EXTRA_DIST= adg-type-builtins.c.template \
90 adg-type-builtins.h.template \
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.template adg-enums.h
136 adg-type-builtins.h: adg-type-builtins.h.template adg-enums.h
139 # Regenerate the adg.h header file: forcing a dependency on config.log
140 # is an easy way to invalidate this file whenever a ./configure is recall
141 $(builddir)/adg.h: adg.h.in $(top_builddir)/config.log
143 sed -e '$(PATTERN)' $< > $@.tmp