1 ## Process this file with automake to produce Makefile.in
3 # ################################################
4 # G L O B A L
5 # ################################################
7 # Should work in either automake1.7 or 1.8, but 1.6 doesn't
8 # handle foo/libfoo_a_CPPFLAGS properly (if at all).
9 # Update: We now avoid setting foo/libfoo_a_CPPFLAGS,
10 # so perhaps 1.6 will work.
11 AUTOMAKE_OPTIONS = 1.7 subdir-objects
13 # Executables compiled by "make" and installed by "make install"
14 bin_PROGRAMS = inkscape inkview
16 # Libraries which should be compiled by "make" but not installed.
17 # Use this only for libraries that are really standalone, rather than for
18 # source tree subdirectories.
19 #if WITH_INKBOARD
20 #libpedro = pedro/libpedro.a
21 #endif
22 noinst_LIBRARIES = \
23 libinkscape.a \
24 dom/libdom.a \
25 libcroco/libcroco.a \
26 libavoid/libavoid.a \
27 libgdl/libgdl.a \
28 libcola/libcola.a \
29 libvpsc/libvpsc.a \
30 livarot/libvarot.a \
31 2geom/lib2geom.a \
32 $(libpedro) \
33 libinkversion.a
35 all_libs = \
36 $(noinst_LIBRARIES) \
37 $(INKSCAPE_LIBS) \
38 $(GNOME_VFS_LIBS) \
39 $(XFT_LIBS) \
40 $(FREETYPE_LIBS) \
41 $(kdeldadd) \
42 $(win32ldflags) \
43 $(CARBON_LDFLAGS) \
44 $(PERL_LIBS) \
45 $(PYTHON_LIBS) \
46 $(INKBOARD_LIBS) \
47 $(LIBWPG_LIBS) \
48 $(DBUS_LIBS) \
49 $(IMAGEMAGICK_LIBS)
51 # Add sources common for Inkscape and Inkview to this variable.
52 ink_common_sources =
53 # Add Inkscape-only sources here.
54 inkscape_SOURCES =
55 # Add Inkview-only sources here.
56 inkview_SOURCES =
57 # Add sources that are built from meta files
58 BUILT_SOURCES =
59 # Extra files to distribute
60 EXTRA_DIST =
62 INCLUDES = \
63 $(PERL_CFLAGS) $(PYTHON_CFLAGS) \
64 $(FREETYPE_CFLAGS) \
65 $(GNOME_PRINT_CFLAGS) \
66 $(GNOME_VFS_CFLAGS) \
67 $(IMAGEMAGICK_CFLAGS) \
68 $(INKBOARD_CFLAGS) \
69 $(LIBWPG_CFLAGS) \
70 $(DBUS_CFLAGS) \
71 $(XFT_CFLAGS) \
72 $(LCMS_CFLAGS) \
73 $(POPPLER_CFLAGS) \
74 $(POPPLER_GLIB_CFLAGS) \
75 -DPOTRACE=\"potrace\" \
76 $(INKSCAPE_CFLAGS) \
77 -I$(top_srcdir)/cxxtest \
78 $(WIN32_CFLAGS) \
79 -I$(srcdir)/bind/javainc \
80 -I$(srcdir)/bind/javainc/linux \
81 -I$(builddir)/extension/dbus \
82 $(AM_CPPFLAGS)
84 CXXTEST_TEMPLATE = $(srcdir)/cxxtest-template.tpl
85 CXXTESTGENFLAGS = --root --have-eh --template=$(CXXTEST_TEMPLATE)
86 CXXTESTGEN = $(top_srcdir)/cxxtest/cxxtestgen.pl $(CXXTESTGENFLAGS)
87 # Add test cases to this variable
88 CXXTEST_TESTSUITES =
90 # ################################################
91 #
92 # E X T R A
93 #
94 # ################################################
96 if PLATFORM_WIN32
97 win32_sources = winmain.cpp registrytool.cpp registrytool.h
98 win32ldflags = -lcomdlg32
99 endif
101 if INKJAR
102 inkjar_dir = inkjar
103 inkjar_libs = inkjar/libinkjar.a
104 endif
106 # Include all partial makefiles from subdirectories
107 include Makefile_insert
108 include application/Makefile_insert
109 include bind/Makefile_insert
110 include dialogs/Makefile_insert
111 include display/Makefile_insert
112 include dom/Makefile_insert
113 include extension/Makefile_insert
114 include extension/dbus/Makefile_insert
115 include extension/implementation/Makefile_insert
116 include extension/internal/Makefile_insert
117 include extension/script/Makefile_insert
118 include filters/Makefile_insert
119 include helper/Makefile_insert
120 include inkjar/Makefile_insert
121 include io/Makefile_insert
122 #include pedro/Makefile_insert
123 #include jabber_whiteboard/Makefile_insert
124 include libcroco/Makefile_insert
125 include libgdl/Makefile_insert
126 include libnr/Makefile_insert
127 include libnrtype/Makefile_insert
128 include libavoid/Makefile_insert
129 include livarot/Makefile_insert
130 include live_effects/Makefile_insert
131 include live_effects/parameter/Makefile_insert
132 include libvpsc/Makefile_insert
133 include libcola/Makefile_insert
134 include removeoverlap/Makefile_insert
135 include graphlayout/Makefile_insert
136 include svg/Makefile_insert
137 include widgets/Makefile_insert
138 include debug/Makefile_insert
139 include xml/Makefile_insert
140 include traits/Makefile_insert
141 include algorithms/Makefile_insert
142 include ui/Makefile_insert
143 include ui/cache/Makefile_insert
144 include ui/dialog/Makefile_insert
145 include ui/view/Makefile_insert
146 include ui/widget/Makefile_insert
147 include util/Makefile_insert
148 include trace/Makefile_insert
149 include 2geom/Makefile_insert
151 # Extra files not mentioned as sources to include in the source tarball
152 EXTRA_DIST += \
153 $(top_srcdir)/Doxyfile \
154 sp-skeleton.cpp sp-skeleton.h \
155 algorithms/makefile.in \
156 application/makefile.in \
157 bind/makefile.in \
158 debug/makefile.in \
159 dialogs/makefile.in \
160 display/makefile.in \
161 dom/makefile.in \
162 extension/implementation/makefile.in \
163 extension/internal/makefile.in \
164 extension/makefile.in \
165 extension/script/makefile.in \
166 filters/makefile.in \
167 helper/makefile.in \
168 inkjar/makefile.in \
169 io/makefile.in \
170 io/crystalegg.xml \
171 io/doc2html.xsl \
172 pedro/makefile.in \
173 jabber_whiteboard/makefile.in \
174 libgdl/makefile.in \
175 libcroco/makefile.in \
176 libnr/makefile.in \
177 libnrtype/makefile.in \
178 libavoid/makefile.in \
179 livarot/makefile.in \
180 live_effects/makefile.in \
181 live_effects/parameter/makefile.in \
182 removeoverlap/makefile.in \
183 svg/makefile.in \
184 trace/makefile.in \
185 traits/makefile.in \
186 ui/makefile.in \
187 ui/cache/makefile.in \
188 ui/dialog/makefile.in \
189 ui/view/makefile.in \
190 ui/widget/makefile.in \
191 util/makefile.in \
192 widgets/makefile.in \
193 xml/makefile.in \
194 2geom/makefile.in \
195 extension/internal/win32.cpp \
196 extension/internal/win32.h \
197 extension/internal/emf-win32-inout.cpp \
198 extension/internal/emf-win32-inout.h \
199 extension/internal/emf-win32-print.cpp \
200 extension/internal/emf-win32-print.h \
201 helper/sp-marshal.list \
202 traits/copy.h \
203 traits/function.h \
204 traits/list-copy.h \
205 traits/reference.h \
206 show-preview.bmp \
207 $(jabber_whiteboard_SOURCES) \
208 $(CXXTEST_TEMPLATE)
210 # Extra files to remove when doing "make distclean"
211 DISTCLEANFILES = \
212 helper/sp-marshal.cpp \
213 helper/sp-marshal.h \
214 inkscape-version.cpp
216 # ################################################
217 # B I N A R I E S
218 # ################################################
220 # this should speed up the build
221 libinkscape_a_SOURCES = $(ink_common_sources)
223 inkscape_SOURCES += main.cpp $(win32_sources)
224 inkscape_LDADD = $(all_libs)
225 inkscape_LDFLAGS = --export-dynamic $(kdeldflags)
227 inkview_SOURCES += inkview.cpp $(win32_sources)
228 inkview_LDADD = $(all_libs)
230 # ################################################
231 # VERSION REPORTING
232 # ################################################
234 libinkversion_a_SOURCES = inkscape-version.cpp inkscape-version.h
236 if USE_SVN_VERSION
237 inkscape_version_deps = $(top_srcdir)/.bzr/branch/last-revision
238 endif
240 # If this is an BZR snapshot build, regenerate this file every time
241 # someone updates the BZR working directory.
242 inkscape-version.cpp: $(inkscape_version_deps)
243 VER_PREFIX="$(VERSION)";\
244 VER_BZRREV=" r`bzr log -r '-1..' | sed -n -e '/^revno:/s/revno: \(.*\)/\1/p'`"; \
245 if test ! -z "`bzr status -S -V $(srcdir)`"; then \
246 VER_CUSTOM=" custom"; \
247 fi; \
248 VERSION="$$VER_PREFIX$$VER_BZRREV$$VER_CUSTOM"; \
249 echo "namespace Inkscape { " \
250 "char const *version_string = \"$$VERSION\"; " \
251 "}" > inkscape-version.new.cpp; \
252 if cmp -s inkscape-version.new.cpp inkscape-version.cpp; then \
253 rm inkscape-version.new.cpp; \
254 else \
255 mv inkscape-version.new.cpp inkscape-version.cpp; \
256 fi; \
257 echo $$VERSION
259 # #################################
260 # ## TESTING STUFF (make check) ###
261 # #################################
263 # List of all programs that should be built before testing. Note that this is
264 # different from TESTS, because some tests can be scripts that don't
265 # need to be built. There should be one test program per directory.
266 # automake adds $(EXEEXT) to check_PROGRAMS items but not to TESTS items:
267 # TESTS items can be scripts etc.
268 check_PROGRAMS = cxxtests
270 # streamtest is unfinished and can't handle the relocations done during
271 # "make distcheck".
273 # List of all tests to be run.
274 TESTS = $(check_PROGRAMS) ../share/extensions/test/run-all-extension-tests
275 XFAIL_TESTS = $(check_PROGRAMS) ../share/extensions/test/run-all-extension-tests
277 # including the the testsuites here ensures that they get distributed
278 cxxtests_SOURCES = cxxtests.cpp libnr/nr-compose-reference.cpp $(CXXTEST_TESTSUITES)
279 cxxtests_LDADD = $(all_libs)
281 cxxtests.cpp: $(CXXTEST_TESTSUITES) $(CXXTEST_TEMPLATE)
282 $(CXXTESTGEN) -o cxxtests.cpp $(CXXTEST_TESTSUITES)
284 # ################################################
285 # D I S T
286 # ################################################
288 dist-hook:
289 mkdir $(distdir)/pixmaps
290 cp $(srcdir)/pixmaps/*xpm $(distdir)/pixmaps
292 distclean-local:
293 rm -f cxxtests.xml cxxtests.log