1 AM_CFLAGS= -I$(top_srcdir) \
4 GLIB_MKENUMS= `which glib-mkenums` \
5 --template $(srcdir)/$@.template \
10 h_sources= adg-adim.h \
33 built_h_sources= $(builddir)/adg-type-builtins.h \
35 private_h_sources= adg-adim-private.h \
36 adg-arrow-style-private.h \
37 adg-canvas-private.h \
38 adg-container-private.h \
39 adg-context-private.h \
41 adg-dim-style-private.h \
42 adg-entity-private.h \
44 adg-font-style-private.h \
47 adg-line-style-private.h \
50 adg-stroke-private.h \
52 adg-title-block-private.h \
53 adg-toy-text-private.h
54 built_private_h_sources=
55 c_sources= adg-adim.c \
79 built_c_sources= $(builddir)/adg-type-builtins.c
80 EXTRA_DIST= adg-type-builtins.c.template \
81 adg-type-builtins.h.template
83 AM_CFLAGS+= @GTK2_CFLAGS@
84 AM_LDFLAGS+= @GTK2_LIBS@
85 h_sources+= adg-widget.h
86 private_h_sources+= adg-widget-private.h
87 c_sources+= adg-widget.c
88 PATTERN+= /\/\* if GTK2 \*\//d;/\/\* endif GTK2 \*\//d;
92 AM_CFLAGS+= @GOBJECT2_CFLAGS@ \
94 AM_LDFLAGS+= @GOBJECT2_LIBS@ \
96 PATTERN+= /\/\* if GTK2 \*\//,/\/\* endif GTK2 \*\//d;
102 BUILT_SOURCES= $(built_h_sources)
103 CLEANFILES= $(built_h_sources) \
104 $(built_private_h_sources) \
107 libadg_includedir= $(includedir)/adg
108 libadg_include_DATA= $(h_sources) \
111 lib_LTLIBRARIES= libadg.la
112 libadg_la_LDFLAGS= -release @PACKAGE_VERSION@
113 libadg_la_SOURCES= $(h_sources) \
114 $(private_h_sources) \
116 nodist_libadg_la_SOURCES= $(built_h_sources) \
117 $(built_private_h_sources) \
119 libadg_la_LIBADD= $(top_builddir)/cpml/libcpml.la
120 libadg_la_DEPENDENCIES= $(top_builddir)/cpml/libcpml.la
123 adg-type-builtins.c: adg-type-builtins.c.template adg-enums.h
126 adg-type-builtins.h: adg-type-builtins.h.template adg-enums.h
129 # Regenerate the adg.h header file: forcing a dependency on config.log
130 # is an easy way to invalidate this file whenever a ./configure is recall
131 $(builddir)/adg.h: adg.h.in $(top_builddir)/config.log
133 sed -e '$(PATTERN)' $< > $@.tmp