Code

Fixed build
[inkscape.git] / src / Makefile.am
1 ## Process this file with automake to produce Makefile.in
4 # ################################################
5 #
6 #  G L O B A L
7 #
8 # ################################################
10 # Should work in either automake1.7 or 1.8, but 1.6 doesn't
11 # handle foo/libfoo_a_CPPFLAGS properly (if at all).
12 # Update: We now avoid setting foo/libfoo_a_CPPFLAGS,
13 # so perhaps 1.6 will work.
14 AUTOMAKE_OPTIONS = 1.7 subdir-objects
16 INCLUDES =      \
17         $(PERL_CFLAGS) $(PYTHON_CFLAGS) \
18         $(FREETYPE_CFLAGS)      \
19         $(GNOME_PRINT_CFLAGS)   \
20         $(GNOME_VFS_CFLAGS)     \
21         $(INKBOARD_CFLAGS) \
22         $(LIBWPG_CFLAGS) \
23         $(XFT_CFLAGS)   \
24         $(LCMS_CFLAGS)  \
25         $(POPPLER_CFLAGS)       \
26         $(POPPLER_GLIB_CFLAGS)  \
27         -DPOTRACE=\"potrace\"   \
28         $(INKSCAPE_CFLAGS) \
29         -I$(top_srcdir)/cxxtest
31 include Makefile_insert
32 include application/Makefile_insert
33 include bind/Makefile_insert
34 include dialogs/Makefile_insert
35 include display/Makefile_insert
36 include dom/Makefile_insert
37 include extension/Makefile_insert
38 include extension/implementation/Makefile_insert
39 include extension/internal/Makefile_insert
40 include extension/script/Makefile_insert
41 include helper/Makefile_insert
42 include inkjar/Makefile_insert
43 include io/Makefile_insert
44 include pedro/Makefile_insert
45 include jabber_whiteboard/Makefile_insert
46 include libcroco/Makefile_insert
47 include libgdl/Makefile_insert
48 include libnr/Makefile_insert
49 include libnrtype/Makefile_insert
50 include libavoid/Makefile_insert
51 include livarot/Makefile_insert
52 include live_effects/Makefile_insert
53 include live_effects/parameter/Makefile_insert
54 include libvpsc/Makefile_insert
55 include libcola/Makefile_insert
56 include removeoverlap/Makefile_insert
57 include graphlayout/Makefile_insert
58 include svg/Makefile_insert
59 include utest/Makefile_insert
60 include widgets/Makefile_insert
61 include debug/Makefile_insert
62 include xml/Makefile_insert
63 include traits/Makefile_insert
64 include algorithms/Makefile_insert
65 include ui/Makefile_insert
66 include ui/cache/Makefile_insert
67 include ui/dialog/Makefile_insert
68 include ui/view/Makefile_insert
69 include ui/widget/Makefile_insert
70 include util/Makefile_insert
71 include trace/Makefile_insert
72 include 2geom/Makefile_insert
74 bin_PROGRAMS = inkscape inkview
76 noinst_LIBRARIES =      \
77         libinkpre.a     \
78         application/libinkapp.a \
79         dialogs/libspdialogs.a  \
80         pedro/libpedro.a \
81         jabber_whiteboard/libjabber_whiteboard.a \
82         display/libspdisplay.a  \
83         dom/libdom.a    \
84         extension/implementation/libimplementation.a    \
85         extension/internal/libinternal.a        \
86         extension/libextension.a        \
87         extension/script/libscript.a    \
88         bind/libbind.a  \
89         helper/libspchelp.a     \
90         io/libio.a      \
91         libcroco/libcroco.a     \
92         libgdl/libgdl.a         \
93         live_effects/liblive_effects.a \
94         live_effects/parameter/liblpeparam.a \
95         ui/libui.a      \
96         ui/cache/libuicache.a   \
97         ui/dialog/libuidialog.a \
98         ui/view/libuiview.a     \
99         ui/widget/libuiwidget.a \
100         util/libinkutil.a \
101         debug/libinkdebug.a \
102         $(inkjar_libs)  \
103         libnr/libnr.a   \
104         libnrtype/libnrtype.a   \
105         libavoid/libavoid.a     \
106         libvpsc/libvpsc.a       \
107         libcola/libcola.a       \
108         livarot/libvarot.a      \
109         removeoverlap/libremoveoverlap.a        \
110         graphlayout/libgraphlayout.a    \
111         svg/libspsvg.a  \
112         widgets/libspwidgets.a  \
113         trace/libtrace.a  \
114         xml/libspxml.a  \
115         2geom/lib2geom.a        \
116         libinkpost.a
118 check_LIBRARIES =       \
119         libnr/libtest-nr.a      \
120         svg/libtest-svg.a       \
121         svg/libtest-stubs.a     \
122         xml/libtest-xml.a
124 DISTCLEANFILES =        \
125         helper/sp-marshal.cpp   \
126         helper/sp-marshal.h     \
127         inkscape_version.h
129 EXTRA_DIST =    \
130         Doxyfile        \
131         sp-skeleton.cpp sp-skeleton.h   \
132         algorithms/makefile.in  \
133         application/makefile.in \
134         debug/makefile.in       \
135         dialogs/makefile.in     \
136         dialogs/filedialog-win32.cpp    \
137         display/makefile.in     \
138         dom/makefile.in         \
139         extension/implementation/makefile.in    \
140         extension/internal/makefile.in  \
141         extension/makefile.in   \
142         extension/script/makefile.in    \
143         helper/makefile.in      \
144         inkjar/makefile.in      \
145         io/makefile.in  \
146         io/crystalegg.xml       \
147         io/doc2html.xsl         \
148         pedro/makefile.in       \
149         jabber_whiteboard/makefile.in   \
150         libgdl/makefile.in      \
151         libcroco/makefile.in    \
152         libnr/makefile.in       \
153         libnrtype/makefile.in   \
154         libavoid/makefile.in    \
155         livarot/makefile.in     \
156         live_effects/makefile.in        \
157         live_effects/parameter/makefile.in      \
158         removeoverlap/makefile.in       \
159         svg/makefile.in         \
160         trace/makefile.in       \
161         traits/makefile.in      \
162         utest/makefile.in       \
163         ui/makefile.in          \
164         ui/cache/makefile.in    \
165         ui/dialog/makefile.in   \
166         ui/view/makefile.in     \
167         ui/widget/makefile.in   \
168         util/makefile.in        \
169         widgets/makefile.in     \
170         xml/makefile.in         \
171         2geom/makefile.in       \
172         extension/internal/win32.cpp    \
173         extension/internal/win32.h      \
174         extension/internal/emf-win32-inout.cpp  \
175         extension/internal/emf-win32-inout.h    \
176         extension/internal/emf-win32-print.cpp  \
177         extension/internal/emf-win32-print.h    \
178         helper/sp-marshal.list  \
179         utest/utest.h   \
180         utest/test-1ary-cases.h \
181         traits/copy.h   \
182         traits/function.h       \
183         traits/list-copy.h      \
184         traits/reference.h \
185         $(jabber_whiteboard_SOURCES)
187 EXTRA_PROGRAMS =        \
188         inkview         \
189         libnr/testnr
191 TESTS = \
192         test-all$(EXEEXT)       \
193         style-test$(EXEEXT)     \
194         display/bezier-utils-test$(EXEEXT)      \
195         helper/units-test$(EXEEXT)      \
196         libnr/in-svg-plane-test$(EXEEXT)        \
197         libnr/nr-matrix-test$(EXEEXT)   \
198         libnr/nr-point-fns-test$(EXEEXT)        \
199         libnr/nr-rotate-test$(EXEEXT)   \
200         libnr/nr-rotate-fns-test$(EXEEXT)       \
201         libnr/nr-scale-test$(EXEEXT)    \
202         libnr/nr-translate-test$(EXEEXT)        \
203         libnr/nr-types-test$(EXEEXT)    \
204         libnr/test-nr$(EXEEXT)  \
205         svg/test-svg$(EXEEXT)   \
206         util/list-container-test$(EXEEXT)       \
207         xml/test-xml$(EXEEXT)   \
208         xml/quote-test$(EXEEXT) \
209         xml/repr-action-test$(EXEEXT)
211 # As of 2007-01-13, these are failing...
212 XFAIL_TESTS = \
213         test-all$(EXEEXT)       \
214         style-test$(EXEEXT)
216 # streamtest is unfinished and can't handle the relocations done during
217 # "make distcheck".  Not needed for the 0.41 release.
218 #       io/streamtest$(EXEEXT)
220 # automake adds $(EXEEXT) to check_PROGRAMS items but not to TESTS items:
221 # TESTS items can be scripts etc.
223 check_PROGRAMS =        \
224         test-all        \
225         style-test      \
226         display/bezier-utils-test       \
227         helper/units-test       \
228         libnr/in-svg-plane-test \
229         libnr/nr-matrix-test    \
230         libnr/nr-point-fns-test \
231         libnr/nr-rotate-test    \
232         libnr/nr-rotate-fns-test        \
233         libnr/nr-scale-test     \
234         libnr/nr-translate-test \
235         libnr/nr-types-test     \
236         libnr/test-nr   \
237         svg/test-svg    \
238         util/list-container-test        \
239         xml/test-xml    \
240         xml/quote-test  \
241         xml/repr-action-test
243 #       io/streamtest
246 test-all.cpp: \
247                 $(libnr_test_nr_a_SOURCES)      \
248                 $(svg_test_svg_a_SOURCES)       \
249                 $(xml_test_xml_a_SOURCES)       \
250                 $(libnr_test_nr_includes)       \
251                 $(svg_test_svg_includes)        \
252                 $(xml_test_xml_includes)        \
253                 $(test_all_includes)
254                 $(top_srcdir)/cxxtest/cxxtestgen.pl --template=$(srcdir)/selfname.tpl -root -o test-all.cpp     \
255                 $(libnr_test_nr_includes)       \
256                 $(svg_test_svg_includes)        \
257                 $(xml_test_xml_includes)        \
258                 $(test_all_includes)
260 test_all_SOURCES = \
261         test-all.cpp $(test_all_includes)
264 test_all_LDADD =        \
265         $(all_libs)     \
266         $(svg_test_svg_LDADD)   \
267         $(libnr_test_nr_LDADD)  \
268         $(xml_test_xml_LDADD) \
269         io/libio.a      
272 # ################################################
274 #  D I S T
276 # ################################################
278 dist-hook:
279         mkdir $(distdir)/pixmaps
280         cp $(srcdir)/pixmaps/*xpm $(distdir)/pixmaps
282 distclean-local:
283         rm -f libnr/test-nr.xml libnr/test-nr.log svg/test-svg.xml svg/test-svg.log xml/test-xml.xml xml/test-xml.log test-all.xml test-all.log