[tests] Renamed adg-model to test-model
[adg.git] / adg / Makefile.am
blob627cd22dbd87a63411cf75a3f5edfdb6aa97542f
1 MSG_GEN=                        echo '  GEN   '$@;
2 mkenums_to_c=                   $(MSG_GEN)$(GLIB_MKENUMS) --template $^ > $@
3 mkenums_to_h=                   $(mkenums_to_c)
4 genmarshal_to_c=                $(MSG_GEN)$(GLIB_GENMARSHAL) --body --prefix=adg_marshal $< > $@
5 genmarshal_to_h=                $(MSG_GEN)$(GLIB_GENMARSHAL) --header --prefix=adg_marshal $< > $@
7 AM_CFLAGS=                      @ADG_CFLAGS@ \
8                                 -I$(top_srcdir) \
9                                 -I$(top_builddir)
10 AM_LDFLAGS=                     @ADG_LIBS@
13 # file groups
14 h_sources=                      adg.h \
15                                 adg-adim.h \
16                                 adg-alignment.h \
17                                 adg-arrow.h \
18                                 adg-canvas.h \
19                                 adg-color-style.h \
20                                 adg-container.h \
21                                 adg-dim.h \
22                                 adg-dim-style.h \
23                                 adg-dress.h \
24                                 adg-dress-builtins.h \
25                                 adg-edges.h \
26                                 adg-entity.h \
27                                 adg-enums.h \
28                                 adg-fill-style.h \
29                                 adg-font-style.h \
30                                 adg-hatch.h \
31                                 adg-ldim.h \
32                                 adg-line-style.h \
33                                 adg-logo.h \
34                                 adg-marker.h \
35                                 adg-matrix.h \
36                                 adg-model.h \
37                                 adg-pair.h \
38                                 adg-path.h \
39                                 adg-pattern.h \
40                                 adg-point.h \
41                                 adg-primitive.h \
42                                 adg-projection.h \
43                                 adg-rdim.h \
44                                 adg-ruled-fill.h \
45                                 adg-segment.h \
46                                 adg-stroke.h \
47                                 adg-style.h \
48                                 adg-table.h \
49                                 adg-table-style.h \
50                                 adg-title-block.h \
51                                 adg-trail.h \
52                                 adg-toy-text.h \
53                                 adg-util.h
54 built_h_sources=                $(builddir)/adg-type-builtins.h
55 private_h_sources=              adg-adim-private.h \
56                                 adg-alignment-private.h \
57                                 adg-arrow-private.h \
58                                 adg-canvas-private.h \
59                                 adg-color-style-private.h \
60                                 adg-container-private.h \
61                                 adg-dim-private.h \
62                                 adg-dim-style-private.h \
63                                 adg-dress-private.h \
64                                 adg-edges-private.h \
65                                 adg-entity-private.h \
66                                 adg-fill-style-private.h \
67                                 adg-font-style-private.h \
68                                 adg-hatch-private.h \
69                                 adg-internal.h \
70                                 adg-ldim-private.h \
71                                 adg-line-style-private.h \
72                                 adg-logo-private.h \
73                                 adg-marker-private.h \
74                                 adg-model-private.h \
75                                 adg-path-private.h \
76                                 adg-projection-private.h \
77                                 adg-rdim-private.h \
78                                 adg-ruled-fill-private.h \
79                                 adg-stroke-private.h \
80                                 adg-table-private.h \
81                                 adg-table-style-private.h \
82                                 adg-title-block-private.h \
83                                 adg-trail-private.h \
84                                 adg-toy-text-private.h
85 built_private_h_sources=        $(builddir)/adg-marshal.h
86 c_sources=                      adg-adim.c \
87                                 adg-alignment.c \
88                                 adg-arrow.c \
89                                 adg-canvas.c \
90                                 adg-color-style.c \
91                                 adg-container.c \
92                                 adg-dim.c \
93                                 adg-dim-style.c \
94                                 adg-dress.c \
95                                 adg-dress-builtins.c \
96                                 adg-edges.c \
97                                 adg-entity.c \
98                                 adg-enums.c \
99                                 adg-fill-style.c \
100                                 adg-font-style.c \
101                                 adg-hatch.c \
102                                 adg-ldim.c \
103                                 adg-line-style.c \
104                                 adg-logo.c \
105                                 adg-marker.c \
106                                 adg-matrix.c \
107                                 adg-model.c \
108                                 adg-pair.c \
109                                 adg-path.c \
110                                 adg-pattern.c \
111                                 adg-point.c \
112                                 adg-primitive.c \
113                                 adg-projection.c \
114                                 adg-rdim.c \
115                                 adg-ruled-fill.c \
116                                 adg-segment.c \
117                                 adg-stroke.c \
118                                 adg-style.c \
119                                 adg-table.c \
120                                 adg-table-style.c \
121                                 adg-title-block.c \
122                                 adg-trail.c \
123                                 adg-toy-text.c \
124                                 adg-util.c
125 built_c_sources=                $(builddir)/adg-type-builtins.c \
126                                 $(builddir)/adg-marshal.c
127 EXTRA_DIST=                     adg-type-builtins.c.mkenums \
128                                 adg-type-builtins.h.mkenums \
129                                 adg-marshal.genmarshal
130 if HAVE_GTK2
131 h_sources+=                     adg-widget.h
132 private_h_sources+=             adg-widget-private.h
133 c_sources+=                     adg-widget.c
134 endif
137 # targets
138 BUILT_SOURCES=                  $(built_h_sources) \
139                                 $(built_private_h_sources)
140 #                               built_c_sources are properly tracked
141 #                               by nodist_libadg_la_SOURCES
142 CLEANFILES=                     $(built_h_sources) \
143                                 $(built_private_h_sources) \
144                                 $(built_c_sources)
146 libadg_includedir=              $(includedir)/adg
147 libadg_include_DATA=            $(h_sources) \
148                                 $(built_h_sources)
150 lib_LTLIBRARIES=                libadg.la
151 libadg_la_LDFLAGS=              -release @PACKAGE_VERSION@
152 libadg_la_SOURCES=              $(h_sources) \
153                                 $(private_h_sources) \
154                                 $(c_sources)
155 nodist_libadg_la_SOURCES=       $(built_h_sources) \
156                                 $(built_private_h_sources) \
157                                 $(built_c_sources)
158 libadg_la_LIBADD=               $(top_builddir)/cpml/libcpml.la
159 libadg_la_DEPENDENCIES=         $(top_builddir)/cpml/libcpml.la
162 adg-type-builtins.c: adg-type-builtins.c.mkenums adg-enums.h
163         $(mkenums_to_c)
165 adg-type-builtins.h: adg-type-builtins.h.mkenums adg-enums.h
166         $(mkenums_to_h)
168 adg-marshal.c: adg-marshal.genmarshal
169         $(genmarshal_to_c)
171 adg-marshal.h: adg-marshal.genmarshal
172         $(genmarshal_to_h)