Code

"make check" now compiles and runs on Linux.
[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         $(IMAGEMAGICK_CFLAGS) \
22         $(INKBOARD_CFLAGS) \
23         $(LIBWPG_CFLAGS) \
24         $(XFT_CFLAGS)   \
25         $(LCMS_CFLAGS)  \
26         $(POPPLER_CFLAGS)       \
27         $(POPPLER_GLIB_CFLAGS)  \
28         -DPOTRACE=\"potrace\"   \
29         $(INKSCAPE_CFLAGS) \
30         -I$(top_srcdir)/cxxtest \
31         $(WIN32_CFLAGS)
33 # Include all partial makefiles from subdirectories
34 include Makefile_insert
35 include application/Makefile_insert
36 include bind/Makefile_insert
37 include dialogs/Makefile_insert
38 include display/Makefile_insert
39 include dom/Makefile_insert
40 include extension/Makefile_insert
41 include extension/implementation/Makefile_insert
42 include extension/internal/Makefile_insert
43 include extension/script/Makefile_insert
44 include filters/Makefile_insert
45 include helper/Makefile_insert
46 include inkjar/Makefile_insert
47 include io/Makefile_insert
48 include pedro/Makefile_insert
49 include jabber_whiteboard/Makefile_insert
50 include libcroco/Makefile_insert
51 include libgdl/Makefile_insert
52 include libnr/Makefile_insert
53 include libnrtype/Makefile_insert
54 include libavoid/Makefile_insert
55 include livarot/Makefile_insert
56 include live_effects/Makefile_insert
57 include live_effects/parameter/Makefile_insert
58 include libvpsc/Makefile_insert
59 include libcola/Makefile_insert
60 include removeoverlap/Makefile_insert
61 include graphlayout/Makefile_insert
62 include svg/Makefile_insert
63 include utest/Makefile_insert
64 include widgets/Makefile_insert
65 include debug/Makefile_insert
66 include xml/Makefile_insert
67 include traits/Makefile_insert
68 include algorithms/Makefile_insert
69 include ui/Makefile_insert
70 include ui/cache/Makefile_insert
71 include ui/dialog/Makefile_insert
72 include ui/view/Makefile_insert
73 include ui/widget/Makefile_insert
74 include util/Makefile_insert
75 include trace/Makefile_insert
76 include 2geom/Makefile_insert
78 # Executables compiled by "make" and installed by "make install"
79 bin_PROGRAMS = inkscape inkview
81 # Libraries which should be compiled by "make" but not installed
82 # Currently we use one library per source directory.
83 noinst_LIBRARIES =      \
84         libinkpre.a     \
85         application/libinkapp.a \
86         dialogs/libspdialogs.a  \
87         pedro/libpedro.a \
88         jabber_whiteboard/libjabber_whiteboard.a \
89         display/libspdisplay.a  \
90         dom/libdom.a    \
91         extension/implementation/libimplementation.a    \
92         extension/internal/libinternal.a        \
93         extension/libextension.a        \
94         extension/script/libscript.a    \
95         filters/libfilters.a    \
96         bind/libbind.a  \
97         helper/libspchelp.a     \
98         io/libio.a      \
99         libcroco/libcroco.a     \
100         libgdl/libgdl.a         \
101         live_effects/liblive_effects.a \
102         live_effects/parameter/liblpeparam.a \
103         ui/libui.a      \
104         ui/cache/libuicache.a   \
105         ui/dialog/libuidialog.a \
106         ui/view/libuiview.a     \
107         ui/widget/libuiwidget.a \
108         util/libinkutil.a \
109         debug/libinkdebug.a \
110         $(inkjar_libs)  \
111         libnr/libnr.a   \
112         libnrtype/libnrtype.a   \
113         libavoid/libavoid.a     \
114         libvpsc/libvpsc.a       \
115         libcola/libcola.a       \
116         livarot/libvarot.a      \
117         removeoverlap/libremoveoverlap.a        \
118         graphlayout/libgraphlayout.a    \
119         svg/libspsvg.a  \
120         widgets/libspwidgets.a  \
121         trace/libtrace.a  \
122         xml/libspxml.a  \
123         2geom/lib2geom.a        \
124         libinkpost.a
126 # Extra files to remove when doing "make distclean"
127 DISTCLEANFILES =        \
128         helper/sp-marshal.cpp   \
129         helper/sp-marshal.h     \
130         inkscape_version.h
132 # Extra files not mentioned as sources to include in the source tarball
133 EXTRA_DIST =    \
134         Doxyfile        \
135         sp-skeleton.cpp sp-skeleton.h   \
136         algorithms/makefile.in  \
137         application/makefile.in \
138         bind/makefile.in        \
139         debug/makefile.in       \
140         dialogs/makefile.in     \
141         dialogs/filedialog-win32.cpp    \
142         display/makefile.in     \
143         dom/makefile.in         \
144         extension/implementation/makefile.in    \
145         extension/internal/makefile.in  \
146         extension/makefile.in   \
147         extension/script/makefile.in    \
148         filters/makefile.in \
149         helper/makefile.in      \
150         inkjar/makefile.in      \
151         io/makefile.in  \
152         io/crystalegg.xml       \
153         io/doc2html.xsl         \
154         pedro/makefile.in       \
155         jabber_whiteboard/makefile.in   \
156         libgdl/makefile.in      \
157         libcroco/makefile.in    \
158         libnr/makefile.in       \
159         libnrtype/makefile.in   \
160         libavoid/makefile.in    \
161         livarot/makefile.in     \
162         live_effects/makefile.in        \
163         live_effects/parameter/makefile.in      \
164         removeoverlap/makefile.in       \
165         svg/makefile.in         \
166         trace/makefile.in       \
167         traits/makefile.in      \
168         utest/makefile.in       \
169         ui/makefile.in          \
170         ui/cache/makefile.in    \
171         ui/dialog/makefile.in   \
172         ui/view/makefile.in     \
173         ui/widget/makefile.in   \
174         util/makefile.in        \
175         widgets/makefile.in     \
176         xml/makefile.in         \
177         2geom/makefile.in       \
178         extension/internal/win32.cpp    \
179         extension/internal/win32.h      \
180         extension/internal/emf-win32-inout.cpp  \
181         extension/internal/emf-win32-inout.h    \
182         extension/internal/emf-win32-print.cpp  \
183         extension/internal/emf-win32-print.h    \
184         helper/sp-marshal.list  \
185         utest/utest.h   \
186         utest/test-1ary-cases.h \
187         traits/copy.h   \
188         traits/function.h       \
189         traits/list-copy.h      \
190         traits/reference.h \
191         $(jabber_whiteboard_SOURCES)
193 EXTRA_PROGRAMS =        \
194         inkview         \
195         libnr/testnr
198 ##################################
199 ### TESTING STUFF (make check) ###
200 ##################################
202 # List of all tests to be run. Should contain one per directory.
203 # Automake 1.10 appends EXEEXT automatically, so this should be changed
204 # when we move to Automake 1.10.
205 TESTS = \
206         test-src$(EXEEXT)       \
207         style-test$(EXEEXT)     \
208         display/bezier-utils-test$(EXEEXT)      \
209         display/test-display$(EXEEXT)   \
210         helper/units-test$(EXEEXT)      \
211         helper/test-helper$(EXEEXT)     \
212         libnr/in-svg-plane-test$(EXEEXT)        \
213         libnr/nr-matrix-test$(EXEEXT)   \
214         libnr/nr-point-fns-test$(EXEEXT)        \
215         libnr/nr-rotate-test$(EXEEXT)   \
216         libnr/nr-rotate-fns-test$(EXEEXT)       \
217         libnr/nr-scale-test$(EXEEXT)    \
218         libnr/nr-translate-test$(EXEEXT)        \
219         libnr/nr-types-test$(EXEEXT)    \
220         libnr/test-nr$(EXEEXT)  \
221         svg/test-svg$(EXEEXT)   \
222         util/list-container-test$(EXEEXT)       \
223         util/test-util$(EXEEXT) \
224         xml/test-xml$(EXEEXT)   \
225         xml/quote-test$(EXEEXT) \
226         xml/repr-action-test$(EXEEXT)
228 # streamtest is unfinished and can't handle the relocations done during
229 # "make distcheck".  Not needed for the 0.41 release.
230 #       io/streamtest$(EXEEXT)
231 # automake adds $(EXEEXT) to check_PROGRAMS items but not to TESTS items:
232 # TESTS items can be scripts etc.
234 # List of all programs that should be built before testing. Note that this is
235 # not necessarily equal to TESTS, because some tests can be scripts that don't
236 # need to be built.
237 check_PROGRAMS =        \
238         test-src        \
239         style-test      \
240         display/bezier-utils-test       \
241         display/test-display    \
242         helper/units-test       \
243         helper/test-helper      \
244         libnr/in-svg-plane-test \
245         libnr/nr-matrix-test    \
246         libnr/nr-point-fns-test \
247         libnr/nr-rotate-test    \
248         libnr/nr-rotate-fns-test        \
249         libnr/nr-scale-test     \
250         libnr/nr-translate-test \
251         libnr/nr-types-test     \
252         libnr/test-nr   \
253         svg/test-svg    \
254         util/list-container-test        \
255         util/test-util  \
256         xml/test-xml    \
257         xml/quote-test  \
258         xml/repr-action-test
259 #       io/streamtest
261 # Additional libraries needed by the tests - to be removed later.
262 check_LIBRARIES =       \
263         display/libtest-display.a       \
264         helper/libtest-helper.a \
265         libnr/libtest-nr.a      \
266         svg/libtest-svg.a       \
267         util/libtest-util.a     \
268         xml/libtest-xml.a
270 # ################################################
272 #  D I S T
274 # ################################################
276 dist-hook:
277         mkdir $(distdir)/pixmaps
278         cp $(srcdir)/pixmaps/*xpm $(distdir)/pixmaps
280 distclean-local:
281         rm -f display/test-display.xml display/test-display.log helper/test-helper.xml helper/test-helper.log libnr/test-nr.xml libnr/test-nr.log svg/test-svg.xml svg/test-svg.log util/test-util.xml util/test-util.log xml/test-xml.xml xml/test-xml.log test-src.xml test-src.log