[AdgLDim] Avoid arrange() on the same data
[adg.git] / adg / Makefile.am
blobb46b441fe43bae5784dfc35f65b228522a057a3d
1 MSG_GEN=                        echo '  GEN   '$@;
2 AM_CFLAGS=                      -I$(top_srcdir) \
3                                 -I$(top_builddir)
4 AM_LDFLAGS=
5 PATTERN=
7 # file groups
8 h_sources=                      adg-adim.h \
9                                 adg-arrow.h \
10                                 adg-canvas.h \
11                                 adg-color-style.h \
12                                 adg-container.h \
13                                 adg-dim.h \
14                                 adg-dim-style.h \
15                                 adg-dress.h \
16                                 adg-entity.h \
17                                 adg-font-style.h \
18                                 adg-ldim.h \
19                                 adg-line-style.h \
20                                 adg-marker.h \
21                                 adg-matrix.h \
22                                 adg-model.h \
23                                 adg-pair.h \
24                                 adg-path.h \
25                                 adg-pattern.h \
26                                 adg-primitive.h \
27                                 adg-segment.h \
28                                 adg-stroke.h \
29                                 adg-style.h \
30                                 adg-title-block.h \
31                                 adg-trail.h \
32                                 adg-toy-text.h \
33                                 adg-util.h
34 built_h_sources=                $(builddir)/adg-type-builtins.h \
35                                 $(builddir)/adg-marshal.h \
36                                 $(builddir)/adg.h
37 private_h_sources=              adg-adim-private.h \
38                                 adg-arrow-private.h \
39                                 adg-canvas-private.h \
40                                 adg-color-style-private.h \
41                                 adg-container-private.h \
42                                 adg-dim-private.h \
43                                 adg-dim-style-private.h \
44                                 adg-dress-private.h \
45                                 adg-entity-private.h \
46                                 adg-enums.h \
47                                 adg-font-style-private.h \
48                                 adg-intl.h \
49                                 adg-ldim-private.h \
50                                 adg-line-style-private.h \
51                                 adg-marker-private.h \
52                                 adg-model-private.h \
53                                 adg-path-private.h \
54                                 adg-stroke-private.h \
55                                 adg-title-block-private.h \
56                                 adg-trail-private.h \
57                                 adg-toy-text-private.h
58 built_private_h_sources= 
59 c_sources=                      adg-adim.c \
60                                 adg-arrow.c \
61                                 adg-canvas.c \
62                                 adg-color-style.c \
63                                 adg-container.c \
64                                 adg-dim.c \
65                                 adg-dim-style.c \
66                                 adg-dress.c \
67                                 adg-entity.c \
68                                 adg-enums.c \
69                                 adg-font-style.c \
70                                 adg-ldim.c \
71                                 adg-line-style.c \
72                                 adg-marker.c \
73                                 adg-matrix.c \
74                                 adg-model.c \
75                                 adg-pair.c \
76                                 adg-path.c \
77                                 adg-pattern.c \
78                                 adg-primitive.c \
79                                 adg-segment.c \
80                                 adg-stroke.c \
81                                 adg-style.c \
82                                 adg-title-block.c \
83                                 adg-trail.c \
84                                 adg-toy-text.c \
85                                 adg-util.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 \
91                                 adg.h.in
92 if HAVE_GTK2
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;
100 else
102 AM_CFLAGS+=                     @GOBJECT2_CFLAGS@ \
103                                 @CAIRO_CFLAGS@
104 AM_LDFLAGS+=                    @GOBJECT2_LIBS@ \
105                                 @GTK2_LIBS@
106 PATTERN+=                       /\/\* if GTK2 \*\//,/\/\* endif GTK2 \*\//d;
108 endif
111 # targets
112 BUILT_SOURCES=                  $(built_h_sources)
113 CLEANFILES=                     $(built_h_sources) \
114                                 $(built_private_h_sources) \
115                                 $(built_c_sources)
117 libadg_includedir=              $(includedir)/adg
118 libadg_include_DATA=            $(h_sources) \
119                                 $(built_h_sources)
121 lib_LTLIBRARIES=                libadg.la
122 libadg_la_LDFLAGS=              -release @PACKAGE_VERSION@
123 libadg_la_SOURCES=              $(h_sources) \
124                                 $(private_h_sources) \
125                                 $(c_sources)
126 nodist_libadg_la_SOURCES=       $(built_h_sources) \
127                                 $(built_private_h_sources) \
128                                 $(built_c_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
148         rm -f $@.tmp
149         sed -e '$(PATTERN)' $< > $@.tmp
150         mv $@.tmp $@