Code

fixes for style-test prefs crashes
[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         $(XFT_CFLAGS)   \
23         -DPOTRACE=\"potrace\"   \
24         $(INKSCAPE_CFLAGS) \
25         -I$(top_srcdir)/cxxtest
27 include Makefile_insert
28 include application/Makefile_insert
29 include dialogs/Makefile_insert
30 include display/Makefile_insert
31 include dom/Makefile_insert
32 include extension/Makefile_insert
33 include extension/implementation/Makefile_insert
34 include extension/internal/Makefile_insert
35 include extension/internal/libwpg/Makefile_insert
36 include extension/script/Makefile_insert
37 include helper/Makefile_insert
38 include inkjar/Makefile_insert
39 include io/Makefile_insert
40 include pedro/Makefile_insert
41 include jabber_whiteboard/Makefile_insert
42 include libcroco/Makefile_insert
43 include libnr/Makefile_insert
44 include libnrtype/Makefile_insert
45 include libavoid/Makefile_insert
46 include livarot/Makefile_insert
47 include libvpsc/Makefile_insert
48 include libcola/Makefile_insert
49 include removeoverlap/Makefile_insert
50 include graphlayout/Makefile_insert
51 include svg/Makefile_insert
52 include utest/Makefile_insert
53 include widgets/Makefile_insert
54 include debug/Makefile_insert
55 include xml/Makefile_insert
56 include traits/Makefile_insert
57 include algorithms/Makefile_insert
58 include ui/Makefile_insert
59 include ui/dialog/Makefile_insert
60 include ui/view/Makefile_insert
61 include ui/widget/Makefile_insert
62 include util/Makefile_insert
63 include trace/Makefile_insert
65 bin_PROGRAMS = inkscape inkview
67 noinst_LIBRARIES =      \
68         libinkpre.a     \
69         application/libinkapp.a \
70         dialogs/libspdialogs.a  \
71         pedro/libpedro.a \
72         jabber_whiteboard/libjabber_whiteboard.a \
73         display/libspdisplay.a  \
74         dom/libdom.a    \
75         extension/implementation/libimplementation.a    \
76         extension/internal/libinternal.a        \
77         extension/internal/libwpg/libwpg.a      \
78         extension/libextension.a        \
79         extension/script/libscript.a    \
80         helper/libspchelp.a     \
81         io/libio.a      \
82         libcroco/libcroco.a     \
83         ui/libui.a      \
84         ui/dialog/libuidialog.a \
85         ui/view/libuiview.a     \
86         ui/widget/libuiwidget.a \
87         util/libinkutil.a \
88         debug/libinkdebug.a \
89         $(inkjar_libs)  \
90         libnr/libnr.a   \
91         libnrtype/libnrtype.a   \
92         libavoid/libavoid.a     \
93         libvpsc/libvpsc.a       \
94         libcola/libcola.a       \
95         livarot/libvarot.a      \
96         removeoverlap/libremoveoverlap.a        \
97         graphlayout/libgraphlayout.a    \
98         svg/libspsvg.a  \
99         widgets/libspwidgets.a  \
100         trace/libtrace.a  \
101         xml/libspxml.a  \
102         libinkpost.a
104 check_LIBRARIES =       \
105         libnr/libtest-nr.a      \
106         svg/libtest-svg.a       \
107         svg/libtest-stubs.a     \
108         xml/libtest-xml.a
110 DISTCLEANFILES =        \
111         helper/sp-marshal.cpp   \
112         helper/sp-marshal.h     \
113         inkscape_version.h
115 EXTRA_DIST =    \
116         mkdep.pl        \
117         mkfiles.pl      \
118         make.exclude    \
119         Doxyfile        \
120         sp-skeleton.cpp sp-skeleton.h   \
121         algorithms/makefile.in  \
122         application/makefile.in \
123         debug/makefile.in       \
124         dialogs/makefile.in     \
125         dialogs/filedialog-win32.cpp    \
126         display/makefile.in     \
127         dom/makefile.in         \
128         extension/implementation/makefile.in    \
129         extension/internal/makefile.in  \
130         extension/makefile.in   \
131         extension/script/makefile.in    \
132         helper/makefile.in      \
133         inkjar/makefile.in      \
134         io/makefile.in  \
135         io/crystalegg.xml       \
136         io/doc2html.xsl         \
137         pedro/makefile.in       \
138         jabber_whiteboard/makefile.in   \
139         libcroco/makefile.in    \
140         libnr/makefile.in       \
141         libnrtype/makefile.in   \
142         libavoid/makefile.in    \
143         livarot/makefile.in     \
144         removeoverlap/makefile.in       \
145         svg/makefile.in         \
146         trace/makefile.in       \
147         traits/makefile.in      \
148         utest/makefile.in       \
149         ui/makefile.in          \
150         ui/dialog/makefile.in   \
151         ui/view/makefile.in     \
152         ui/widget/makefile.in   \
153         util/makefile.in        \
154         widgets/makefile.in     \
155         xml/makefile.in         \
156         extension/internal/gnome.cpp    \
157         extension/internal/gnome.h      \
158         extension/internal/win32.cpp    \
159         extension/internal/win32.h      \
160         extension/internal/emf-win32-inout.cpp  \
161         extension/internal/emf-win32-inout.h    \
162         extension/internal/emf-win32-print.cpp  \
163         extension/internal/emf-win32-print.h    \
164         helper/sp-marshal.list  \
165         utest/utest.h   \
166         utest/test-1ary-cases.h \
167         traits/copy.h   \
168         traits/function.h       \
169         traits/list-copy.h      \
170         traits/reference.h \
171         $(jabber_whiteboard_SOURCES)
173 EXTRA_PROGRAMS =        \
174         inkview         \
175         libnr/testnr
177 TESTS = \
178         test-all$(EXEEXT)       \
179         style-test$(EXEEXT)     \
180         display/bezier-utils-test$(EXEEXT)      \
181         helper/units-test$(EXEEXT)      \
182         libnr/in-svg-plane-test$(EXEEXT)        \
183         libnr/nr-matrix-test$(EXEEXT)   \
184         libnr/nr-point-fns-test$(EXEEXT)        \
185         libnr/nr-rotate-test$(EXEEXT)   \
186         libnr/nr-rotate-fns-test$(EXEEXT)       \
187         libnr/nr-scale-test$(EXEEXT)    \
188         libnr/nr-translate-test$(EXEEXT)        \
189         libnr/nr-types-test$(EXEEXT)    \
190         libnr/test-nr$(EXEEXT)  \
191         svg/test-svg$(EXEEXT)   \
192         util/list-container-test$(EXEEXT)       \
193         xml/test-xml$(EXEEXT)   \
194         xml/quote-test$(EXEEXT) \
195         xml/repr-action-test$(EXEEXT)
197 # Amd64 failures??
198 #XFAIL_TESTS = \
199 #       test-all$(EXEEXT)       \
200 #       style-test$(EXEEXT)     \
201 #       svg/test-svg$(EXEEXT)
203 # streamtest is unfinished and can't handle the relocations done during
204 # "make distcheck".  Not needed for the 0.41 release.
205 #       io/streamtest$(EXEEXT)
207 # automake adds $(EXEEXT) to check_PROGRAMS items but not to TESTS items:
208 # TESTS items can be scripts etc.
210 check_PROGRAMS =        \
211         test-all        \
212         style-test      \
213         display/bezier-utils-test       \
214         helper/units-test       \
215         libnr/in-svg-plane-test \
216         libnr/nr-matrix-test    \
217         libnr/nr-point-fns-test \
218         libnr/nr-rotate-test    \
219         libnr/nr-rotate-fns-test        \
220         libnr/nr-scale-test     \
221         libnr/nr-translate-test \
222         libnr/nr-types-test     \
223         libnr/test-nr   \
224         svg/test-svg    \
225         util/list-container-test        \
226         xml/test-xml    \
227         xml/quote-test  \
228         xml/repr-action-test
230 #       io/streamtest
233 test-all.cpp: \
234                 $(libnr_test_nr_a_SOURCES)      \
235                 $(svg_test_svg_a_SOURCES)       \
236                 $(xml_test_xml_a_SOURCES)       \
237                 $(libnr_test_nr_includes)       \
238                 $(svg_test_svg_includes)        \
239                 $(xml_test_xml_includes)        \
240                 $(test_all_includes)
241         $(top_srcdir)/cxxtest/cxxtestgen.pl --template=$(srcdir)/selfname.tpl -root -o test-all.cpp     \
242                 $(libnr_test_nr_includes)       \
243                 $(svg_test_svg_includes)        \
244                 $(xml_test_xml_includes)        \
245                 $(test_all_includes)
247 test_all_SOURCES = \
248         test-all.cpp $(test_all_includes)
251 test_all_LDADD =        \
252         $(all_libs)     \
253         $(svg_test_svg_LDADD)   \
254         $(libnr_test_nr_LDADD)  \
255         $(xml_test_xml_LDADD) \
256         io/libio.a      
259 # ################################################
261 #  D I S T
263 # ################################################
265 dist-hook:
266         mkdir $(distdir)/pixmaps
267         cp $(srcdir)/pixmaps/*xpm $(distdir)/pixmaps
269 distclean-local:
270         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