[AdgColorStyle] s/_get_rgb/_put_rgb/
[adg.git] / adg / Makefile.am
blob37728751b65025fee777870433dd48f1a87da05e
1 MSG_GEN=                        echo '  GEN   '$@;
2 AM_CFLAGS=                      -I$(top_srcdir) \
3                                 -I$(top_builddir)
4 AM_LDFLAGS=
5 PATTERN= # file groups
6 h_sources=                      adg-adim.h \
7                                 adg-alignment.h \
8                                 adg-arrow.h \
9                                 adg-canvas.h \
10                                 adg-color-style.h \
11                                 adg-container.h \
12                                 adg-dim.h \
13                                 adg-dim-style.h \
14                                 adg-dress.h \
15                                 adg-dress-builtins.h \
16                                 adg-edges.h \
17                                 adg-entity.h \
18                                 adg-fill-style.h \
19                                 adg-font-style.h \
20                                 adg-hatch.h \
21                                 adg-ldim.h \
22                                 adg-line-style.h \
23                                 adg-logo.h \
24                                 adg-marker.h \
25                                 adg-matrix.h \
26                                 adg-model.h \
27                                 adg-pair.h \
28                                 adg-path.h \
29                                 adg-pattern.h \
30                                 adg-point.h \
31                                 adg-primitive.h \
32                                 adg-projection.h \
33                                 adg-rdim.h \
34                                 adg-ruled-fill.h \
35                                 adg-segment.h \
36                                 adg-stroke.h \
37                                 adg-style.h \
38                                 adg-table.h \
39                                 adg-table-style.h \
40                                 adg-title-block.h \
41                                 adg-trail.h \
42                                 adg-toy-text.h \
43                                 adg-util.h
44 built_h_sources=                $(builddir)/adg-type-builtins.h \
45                                 $(builddir)/adg-marshal.h \
46                                 $(builddir)/adg.h
47 private_h_sources=              adg-adim-private.h \
48                                 adg-alignment-private.h \
49                                 adg-arrow-private.h \
50                                 adg-canvas-private.h \
51                                 adg-color-style-private.h \
52                                 adg-container-private.h \
53                                 adg-dim-private.h \
54                                 adg-dim-style-private.h \
55                                 adg-dress-private.h \
56                                 adg-edges-private.h \
57                                 adg-entity-private.h \
58                                 adg-enums.h \
59                                 adg-fill-style-private.h \
60                                 adg-font-style-private.h \
61                                 adg-hatch-private.h \
62                                 adg-intl.h \
63                                 adg-ldim-private.h \
64                                 adg-line-style-private.h \
65                                 adg-logo-private.h \
66                                 adg-marker-private.h \
67                                 adg-model-private.h \
68                                 adg-path-private.h \
69                                 adg-projection-private.h \
70                                 adg-rdim-private.h \
71                                 adg-ruled-fill-private.h \
72                                 adg-stroke-private.h \
73                                 adg-table-private.h \
74                                 adg-table-style-private.h \
75                                 adg-title-block-private.h \
76                                 adg-trail-private.h \
77                                 adg-toy-text-private.h
78 built_private_h_sources= 
79 c_sources=                      adg-adim.c \
80                                 adg-alignment.c \
81                                 adg-arrow.c \
82                                 adg-canvas.c \
83                                 adg-color-style.c \
84                                 adg-container.c \
85                                 adg-dim.c \
86                                 adg-dim-style.c \
87                                 adg-dress.c \
88                                 adg-dress-builtins.c \
89                                 adg-edges.c \
90                                 adg-entity.c \
91                                 adg-enums.c \
92                                 adg-fill-style.c \
93                                 adg-font-style.c \
94                                 adg-hatch.c \
95                                 adg-ldim.c \
96                                 adg-line-style.c \
97                                 adg-logo.c \
98                                 adg-marker.c \
99                                 adg-matrix.c \
100                                 adg-model.c \
101                                 adg-pair.c \
102                                 adg-path.c \
103                                 adg-pattern.c \
104                                 adg-point.c \
105                                 adg-primitive.c \
106                                 adg-projection.c \
107                                 adg-rdim.c \
108                                 adg-ruled-fill.c \
109                                 adg-segment.c \
110                                 adg-stroke.c \
111                                 adg-style.c \
112                                 adg-table.c \
113                                 adg-table-style.c \
114                                 adg-title-block.c \
115                                 adg-trail.c \
116                                 adg-toy-text.c \
117                                 adg-util.c
118 built_c_sources=                $(builddir)/adg-type-builtins.c \
119                                 $(builddir)/adg-marshal.c
120 EXTRA_DIST=                     adg-type-builtins.c.mkenums \
121                                 adg-type-builtins.h.mkenums \
122                                 adg-marshal.genmarshal \
123                                 adg.h.in
124 if HAVE_GTK2
125 AM_CFLAGS+=                     @GTK2_CFLAGS@
126 AM_LDFLAGS+=                    @GTK2_LIBS@
127 h_sources+=                     adg-widget.h
128 private_h_sources+=             adg-widget-private.h
129 c_sources+=                     adg-widget.c
130 PATTERN+=                       /\/\* if GTK2 \*\//d;/\/\* endif GTK2 \*\//d;
132 else
134 AM_CFLAGS+=                     @GOBJECT2_CFLAGS@ \
135                                 @CAIRO_CFLAGS@
136 AM_LDFLAGS+=                    @GOBJECT2_LIBS@ \
137                                 @GTK2_LIBS@
138 PATTERN+=                       /\/\* if GTK2 \*\//,/\/\* endif GTK2 \*\//d;
140 endif
143 # targets
144 BUILT_SOURCES=                  $(built_h_sources)
145 CLEANFILES=                     $(built_h_sources) \
146                                 $(built_private_h_sources) \
147                                 $(built_c_sources)
149 libadg_includedir=              $(includedir)/adg
150 libadg_include_DATA=            $(h_sources) \
151                                 $(built_h_sources)
153 lib_LTLIBRARIES=                libadg.la
154 libadg_la_LDFLAGS=              -release @PACKAGE_VERSION@
155 libadg_la_SOURCES=              $(h_sources) \
156                                 $(private_h_sources) \
157                                 $(c_sources)
158 nodist_libadg_la_SOURCES=       $(built_h_sources) \
159                                 $(built_private_h_sources) \
160                                 $(built_c_sources)
161 libadg_la_LIBADD=               $(top_builddir)/cpml/libcpml.la
162 libadg_la_DEPENDENCIES=         $(top_builddir)/cpml/libcpml.la
165 adg-type-builtins.c: adg-type-builtins.c.mkenums adg-enums.h
166         $(MSG_GEN)$(GLIB_MKENUMS) --template $^ > $@
168 adg-type-builtins.h: adg-type-builtins.h.mkenums adg-enums.h
169         $(MSG_GEN)$(GLIB_MKENUMS) --template $^ > $@
171 adg-marshal.c: adg-marshal.genmarshal
172         $(MSG_GEN)$(GLIB_GENMARSHAL) --body --prefix=adg_marshal $< > $@
174 adg-marshal.h: adg-marshal.genmarshal
175         $(MSG_GEN)$(GLIB_GENMARSHAL) --header --prefix=adg_marshal $< > $@
177 # Regenerate the adg.h header file: forcing a dependency on config.log
178 # is an easy way to invalidate this file whenever a ./configure is recall
179 $(builddir)/adg.h: adg.h.in $(top_builddir)/config.log
180         $(MSG_GEN)rm -f $@.tmp
181         sed -e '$(PATTERN)' $< > $@.tmp
182         mv $@.tmp $@