[docs] Autogenerating cpml-sections.txt
[adg.git] / adg / Makefile.am
blobf0e73397b89f29cc1d14ea13b716470d5a942b54
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-edges.h \
17                                 adg-entity.h \
18                                 adg-font-style.h \
19                                 adg-ldim.h \
20                                 adg-line-style.h \
21                                 adg-marker.h \
22                                 adg-matrix.h \
23                                 adg-model.h \
24                                 adg-pair.h \
25                                 adg-path.h \
26                                 adg-pattern.h \
27                                 adg-primitive.h \
28                                 adg-rdim.h \
29                                 adg-segment.h \
30                                 adg-stroke.h \
31                                 adg-style.h \
32                                 adg-title-block.h \
33                                 adg-trail.h \
34                                 adg-toy-text.h \
35                                 adg-util.h
36 built_h_sources=                $(builddir)/adg-type-builtins.h \
37                                 $(builddir)/adg-marshal.h \
38                                 $(builddir)/adg.h
39 private_h_sources=              adg-adim-private.h \
40                                 adg-arrow-private.h \
41                                 adg-canvas-private.h \
42                                 adg-color-style-private.h \
43                                 adg-container-private.h \
44                                 adg-dim-private.h \
45                                 adg-dim-style-private.h \
46                                 adg-dress-private.h \
47                                 adg-edges-private.h \
48                                 adg-entity-private.h \
49                                 adg-enums.h \
50                                 adg-font-style-private.h \
51                                 adg-intl.h \
52                                 adg-ldim-private.h \
53                                 adg-line-style-private.h \
54                                 adg-marker-private.h \
55                                 adg-model-private.h \
56                                 adg-path-private.h \
57                                 adg-rdim-private.h \
58                                 adg-stroke-private.h \
59                                 adg-title-block-private.h \
60                                 adg-trail-private.h \
61                                 adg-toy-text-private.h
62 built_private_h_sources= 
63 c_sources=                      adg-adim.c \
64                                 adg-arrow.c \
65                                 adg-canvas.c \
66                                 adg-color-style.c \
67                                 adg-container.c \
68                                 adg-dim.c \
69                                 adg-dim-style.c \
70                                 adg-dress.c \
71                                 adg-edges.c \
72                                 adg-entity.c \
73                                 adg-enums.c \
74                                 adg-font-style.c \
75                                 adg-ldim.c \
76                                 adg-line-style.c \
77                                 adg-marker.c \
78                                 adg-matrix.c \
79                                 adg-model.c \
80                                 adg-pair.c \
81                                 adg-path.c \
82                                 adg-pattern.c \
83                                 adg-primitive.c \
84                                 adg-rdim.c \
85                                 adg-segment.c \
86                                 adg-stroke.c \
87                                 adg-style.c \
88                                 adg-title-block.c \
89                                 adg-trail.c \
90                                 adg-toy-text.c \
91                                 adg-util.c
92 built_c_sources=                $(builddir)/adg-type-builtins.c \
93                                 $(builddir)/adg-marshal.c
94 EXTRA_DIST=                     adg-type-builtins.c.mkenums \
95                                 adg-type-builtins.h.mkenums \
96                                 adg-marshal.genmarshal \
97                                 adg.h.in
98 if HAVE_GTK2
99 AM_CFLAGS+=                     @GTK2_CFLAGS@
100 AM_LDFLAGS+=                    @GTK2_LIBS@
101 h_sources+=                     adg-widget.h
102 private_h_sources+=             adg-widget-private.h
103 c_sources+=                     adg-widget.c
104 PATTERN+=                       /\/\* if GTK2 \*\//d;/\/\* endif GTK2 \*\//d;
106 else
108 AM_CFLAGS+=                     @GOBJECT2_CFLAGS@ \
109                                 @CAIRO_CFLAGS@
110 AM_LDFLAGS+=                    @GOBJECT2_LIBS@ \
111                                 @GTK2_LIBS@
112 PATTERN+=                       /\/\* if GTK2 \*\//,/\/\* endif GTK2 \*\//d;
114 endif
117 # targets
118 BUILT_SOURCES=                  $(built_h_sources)
119 CLEANFILES=                     $(built_h_sources) \
120                                 $(built_private_h_sources) \
121                                 $(built_c_sources)
123 libadg_includedir=              $(includedir)/adg
124 libadg_include_DATA=            $(h_sources) \
125                                 $(built_h_sources)
127 lib_LTLIBRARIES=                libadg.la
128 libadg_la_LDFLAGS=              -release @PACKAGE_VERSION@
129 libadg_la_SOURCES=              $(h_sources) \
130                                 $(private_h_sources) \
131                                 $(c_sources)
132 nodist_libadg_la_SOURCES=       $(built_h_sources) \
133                                 $(built_private_h_sources) \
134                                 $(built_c_sources)
135 libadg_la_LIBADD=               $(top_builddir)/cpml/libcpml.la
136 libadg_la_DEPENDENCIES=         $(top_builddir)/cpml/libcpml.la
139 adg-type-builtins.c: adg-type-builtins.c.mkenums adg-enums.h
140         $(MSG_GEN)$(GLIB_MKENUMS) --template $^ > $@
142 adg-type-builtins.h: adg-type-builtins.h.mkenums adg-enums.h
143         $(MSG_GEN)$(GLIB_MKENUMS) --template $^ > $@
145 adg-marshal.c: adg-marshal.genmarshal
146         $(MSG_GEN)$(GLIB_GENMARSHAL) --body --prefix=adg_marshal $< > $@
148 adg-marshal.h: adg-marshal.genmarshal
149         $(MSG_GEN)$(GLIB_GENMARSHAL) --header --prefix=adg_marshal $< > $@
151 # Regenerate the adg.h header file: forcing a dependency on config.log
152 # is an easy way to invalidate this file whenever a ./configure is recall
153 $(builddir)/adg.h: adg.h.in $(top_builddir)/config.log
154         rm -f $@.tmp
155         sed -e '$(PATTERN)' $< > $@.tmp
156         mv $@.tmp $@