Code

noop: reverted one line of commit #17642 (it's safe to call g_free with NULL)
[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 dialogs/Makefile_insert
34 include display/Makefile_insert
35 include dom/Makefile_insert
36 include extension/Makefile_insert
37 include extension/implementation/Makefile_insert
38 include extension/internal/Makefile_insert
39 include extension/script/Makefile_insert
40 include helper/Makefile_insert
41 include inkjar/Makefile_insert
42 include io/Makefile_insert
43 include pedro/Makefile_insert
44 include jabber_whiteboard/Makefile_insert
45 include libcroco/Makefile_insert
46 include libgdl/Makefile_insert
47 include libnr/Makefile_insert
48 include libnrtype/Makefile_insert
49 include libavoid/Makefile_insert
50 include livarot/Makefile_insert
51 include live_effects/Makefile_insert
52 include live_effects/parameter/Makefile_insert
53 include libvpsc/Makefile_insert
54 include libcola/Makefile_insert
55 include removeoverlap/Makefile_insert
56 include graphlayout/Makefile_insert
57 include svg/Makefile_insert
58 include utest/Makefile_insert
59 include widgets/Makefile_insert
60 include debug/Makefile_insert
61 include xml/Makefile_insert
62 include traits/Makefile_insert
63 include algorithms/Makefile_insert
64 include ui/Makefile_insert
65 include ui/cache/Makefile_insert
66 include ui/dialog/Makefile_insert
67 include ui/view/Makefile_insert
68 include ui/widget/Makefile_insert
69 include util/Makefile_insert
70 include trace/Makefile_insert
71 include 2geom/Makefile_insert
73 bin_PROGRAMS = inkscape inkview
75 noinst_LIBRARIES =      \
76         libinkpre.a     \
77         application/libinkapp.a \
78         dialogs/libspdialogs.a  \
79         pedro/libpedro.a \
80         jabber_whiteboard/libjabber_whiteboard.a \
81         display/libspdisplay.a  \
82         dom/libdom.a    \
83         extension/implementation/libimplementation.a    \
84         extension/internal/libinternal.a        \
85         extension/libextension.a        \
86         extension/script/libscript.a    \
87         helper/libspchelp.a     \
88         io/libio.a      \
89         libcroco/libcroco.a     \
90         libgdl/libgdl.a         \
91         live_effects/liblive_effects.a \
92         live_effects/parameter/liblpeparam.a \
93         ui/libui.a      \
94         ui/cache/libuicache.a   \
95         ui/dialog/libuidialog.a \
96         ui/view/libuiview.a     \
97         ui/widget/libuiwidget.a \
98         util/libinkutil.a \
99         debug/libinkdebug.a \
100         $(inkjar_libs)  \
101         libnr/libnr.a   \
102         libnrtype/libnrtype.a   \
103         libavoid/libavoid.a     \
104         libvpsc/libvpsc.a       \
105         libcola/libcola.a       \
106         livarot/libvarot.a      \
107         removeoverlap/libremoveoverlap.a        \
108         graphlayout/libgraphlayout.a    \
109         svg/libspsvg.a  \
110         widgets/libspwidgets.a  \
111         trace/libtrace.a  \
112         xml/libspxml.a  \
113         2geom/lib2geom.a        \
114         libinkpost.a
116 check_LIBRARIES =       \
117         libnr/libtest-nr.a      \
118         svg/libtest-svg.a       \
119         svg/libtest-stubs.a     \
120         xml/libtest-xml.a
122 DISTCLEANFILES =        \
123         helper/sp-marshal.cpp   \
124         helper/sp-marshal.h     \
125         inkscape_version.h
127 EXTRA_DIST =    \
128         Doxyfile        \
129         sp-skeleton.cpp sp-skeleton.h   \
130         algorithms/makefile.in  \
131         application/makefile.in \
132         debug/makefile.in       \
133         dialogs/makefile.in     \
134         dialogs/filedialog-win32.cpp    \
135         display/makefile.in     \
136         dom/makefile.in         \
137         extension/implementation/makefile.in    \
138         extension/internal/makefile.in  \
139         extension/makefile.in   \
140         extension/script/makefile.in    \
141         helper/makefile.in      \
142         inkjar/makefile.in      \
143         io/makefile.in  \
144         io/crystalegg.xml       \
145         io/doc2html.xsl         \
146         pedro/makefile.in       \
147         jabber_whiteboard/makefile.in   \
148         libgdl/makefile.in      \
149         libcroco/makefile.in    \
150         libnr/makefile.in       \
151         libnrtype/makefile.in   \
152         libavoid/makefile.in    \
153         livarot/makefile.in     \
154         live_effects/makefile.in        \
155         live_effects/parameter/makefile.in      \
156         removeoverlap/makefile.in       \
157         svg/makefile.in         \
158         trace/makefile.in       \
159         traits/makefile.in      \
160         utest/makefile.in       \
161         ui/makefile.in          \
162         ui/cache/makefile.in    \
163         ui/dialog/makefile.in   \
164         ui/view/makefile.in     \
165         ui/widget/makefile.in   \
166         util/makefile.in        \
167         widgets/makefile.in     \
168         xml/makefile.in         \
169         2geom/makefile.in       \
170         extension/internal/win32.cpp    \
171         extension/internal/win32.h      \
172         extension/internal/emf-win32-inout.cpp  \
173         extension/internal/emf-win32-inout.h    \
174         extension/internal/emf-win32-print.cpp  \
175         extension/internal/emf-win32-print.h    \
176         helper/sp-marshal.list  \
177         utest/utest.h   \
178         utest/test-1ary-cases.h \
179         traits/copy.h   \
180         traits/function.h       \
181         traits/list-copy.h      \
182         traits/reference.h \
183         $(jabber_whiteboard_SOURCES)
185 EXTRA_PROGRAMS =        \
186         inkview         \
187         libnr/testnr
189 TESTS = \
190         test-all$(EXEEXT)       \
191         style-test$(EXEEXT)     \
192         display/bezier-utils-test$(EXEEXT)      \
193         helper/units-test$(EXEEXT)      \
194         libnr/in-svg-plane-test$(EXEEXT)        \
195         libnr/nr-matrix-test$(EXEEXT)   \
196         libnr/nr-point-fns-test$(EXEEXT)        \
197         libnr/nr-rotate-test$(EXEEXT)   \
198         libnr/nr-rotate-fns-test$(EXEEXT)       \
199         libnr/nr-scale-test$(EXEEXT)    \
200         libnr/nr-translate-test$(EXEEXT)        \
201         libnr/nr-types-test$(EXEEXT)    \
202         libnr/test-nr$(EXEEXT)  \
203         svg/test-svg$(EXEEXT)   \
204         util/list-container-test$(EXEEXT)       \
205         xml/test-xml$(EXEEXT)   \
206         xml/quote-test$(EXEEXT) \
207         xml/repr-action-test$(EXEEXT)
209 # As of 2007-01-13, these are failing...
210 XFAIL_TESTS = \
211         test-all$(EXEEXT)       \
212         style-test$(EXEEXT)
214 # streamtest is unfinished and can't handle the relocations done during
215 # "make distcheck".  Not needed for the 0.41 release.
216 #       io/streamtest$(EXEEXT)
218 # automake adds $(EXEEXT) to check_PROGRAMS items but not to TESTS items:
219 # TESTS items can be scripts etc.
221 check_PROGRAMS =        \
222         test-all        \
223         style-test      \
224         display/bezier-utils-test       \
225         helper/units-test       \
226         libnr/in-svg-plane-test \
227         libnr/nr-matrix-test    \
228         libnr/nr-point-fns-test \
229         libnr/nr-rotate-test    \
230         libnr/nr-rotate-fns-test        \
231         libnr/nr-scale-test     \
232         libnr/nr-translate-test \
233         libnr/nr-types-test     \
234         libnr/test-nr   \
235         svg/test-svg    \
236         util/list-container-test        \
237         xml/test-xml    \
238         xml/quote-test  \
239         xml/repr-action-test
241 #       io/streamtest
244 test-all.cpp: \
245                 $(libnr_test_nr_a_SOURCES)      \
246                 $(svg_test_svg_a_SOURCES)       \
247                 $(xml_test_xml_a_SOURCES)       \
248                 $(libnr_test_nr_includes)       \
249                 $(svg_test_svg_includes)        \
250                 $(xml_test_xml_includes)        \
251                 $(test_all_includes)
252                 $(top_srcdir)/cxxtest/cxxtestgen.pl --template=$(srcdir)/selfname.tpl -root -o test-all.cpp     \
253                 $(libnr_test_nr_includes)       \
254                 $(svg_test_svg_includes)        \
255                 $(xml_test_xml_includes)        \
256                 $(test_all_includes)
258 test_all_SOURCES = \
259         test-all.cpp $(test_all_includes)
262 test_all_LDADD =        \
263         $(all_libs)     \
264         $(svg_test_svg_LDADD)   \
265         $(libnr_test_nr_LDADD)  \
266         $(xml_test_xml_LDADD) \
267         io/libio.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 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