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 =
58 INCLUDES = \
59 $(PERL_CFLAGS) $(PYTHON_CFLAGS) \
60 $(FREETYPE_CFLAGS) \
61 $(GNOME_PRINT_CFLAGS) \
62 $(GNOME_VFS_CFLAGS) \
63 $(IMAGEMAGICK_CFLAGS) \
64 $(INKBOARD_CFLAGS) \
65 $(LIBWPG_CFLAGS) \
66 $(DBUS_CFLAGS) \
67 $(XFT_CFLAGS) \
68 $(LCMS_CFLAGS) \
69 $(POPPLER_CFLAGS) \
70 $(POPPLER_GLIB_CFLAGS) \
71 -DPOTRACE=\"potrace\" \
72 $(INKSCAPE_CFLAGS) \
73 -I$(top_srcdir)/cxxtest \
74 $(WIN32_CFLAGS) \
75 -I$(srcdir)/bind/javainc \
76 -I$(srcdir)/bind/javainc/linux \
77 $(AM_CPPFLAGS)
79 CXXTEST_TEMPLATE = $(srcdir)/cxxtest-template.tpl
80 CXXTESTGENFLAGS = --root --have-eh --template=$(CXXTEST_TEMPLATE)
81 CXXTESTGEN = $(top_srcdir)/cxxtest/cxxtestgen.pl $(CXXTESTGENFLAGS)
82 # Add test cases to this variable
83 CXXTEST_TESTSUITES =
85 # ################################################
86 #
87 # E X T R A
88 #
89 # ################################################
91 if PLATFORM_WIN32
92 win32_sources = winmain.cpp registrytool.cpp registrytool.h
93 win32ldflags = -lcomdlg32
94 endif
96 if INKJAR
97 inkjar_dir = inkjar
98 inkjar_libs = inkjar/libinkjar.a
99 endif
101 # Include all partial makefiles from subdirectories
102 include Makefile_insert
103 include application/Makefile_insert
104 include bind/Makefile_insert
105 include dialogs/Makefile_insert
106 include display/Makefile_insert
107 include dom/Makefile_insert
108 include extension/Makefile_insert
109 include extension/dbus/Makefile_insert
110 include extension/implementation/Makefile_insert
111 include extension/internal/Makefile_insert
112 include extension/script/Makefile_insert
113 include filters/Makefile_insert
114 include helper/Makefile_insert
115 include inkjar/Makefile_insert
116 include io/Makefile_insert
117 include pedro/Makefile_insert
118 include jabber_whiteboard/Makefile_insert
119 include libcroco/Makefile_insert
120 include libgdl/Makefile_insert
121 include libnr/Makefile_insert
122 include libnrtype/Makefile_insert
123 include libavoid/Makefile_insert
124 include livarot/Makefile_insert
125 include live_effects/Makefile_insert
126 include live_effects/parameter/Makefile_insert
127 include libvpsc/Makefile_insert
128 include libcola/Makefile_insert
129 include removeoverlap/Makefile_insert
130 include graphlayout/Makefile_insert
131 include svg/Makefile_insert
132 include widgets/Makefile_insert
133 include debug/Makefile_insert
134 include xml/Makefile_insert
135 include traits/Makefile_insert
136 include algorithms/Makefile_insert
137 include ui/Makefile_insert
138 include ui/cache/Makefile_insert
139 include ui/dialog/Makefile_insert
140 include ui/view/Makefile_insert
141 include ui/widget/Makefile_insert
142 include util/Makefile_insert
143 include trace/Makefile_insert
144 include 2geom/Makefile_insert
146 # Extra files not mentioned as sources to include in the source tarball
147 EXTRA_DIST = \
148 $(top_srcdir)/Doxyfile \
149 sp-skeleton.cpp sp-skeleton.h \
150 algorithms/makefile.in \
151 application/makefile.in \
152 bind/makefile.in \
153 debug/makefile.in \
154 dialogs/makefile.in \
155 display/makefile.in \
156 dom/makefile.in \
157 extension/implementation/makefile.in \
158 extension/internal/makefile.in \
159 extension/makefile.in \
160 extension/script/makefile.in \
161 filters/makefile.in \
162 helper/makefile.in \
163 inkjar/makefile.in \
164 io/makefile.in \
165 io/crystalegg.xml \
166 io/doc2html.xsl \
167 pedro/makefile.in \
168 jabber_whiteboard/makefile.in \
169 libgdl/makefile.in \
170 libcroco/makefile.in \
171 libnr/makefile.in \
172 libnrtype/makefile.in \
173 libavoid/makefile.in \
174 livarot/makefile.in \
175 live_effects/makefile.in \
176 live_effects/parameter/makefile.in \
177 removeoverlap/makefile.in \
178 svg/makefile.in \
179 trace/makefile.in \
180 traits/makefile.in \
181 ui/makefile.in \
182 ui/cache/makefile.in \
183 ui/dialog/makefile.in \
184 ui/view/makefile.in \
185 ui/widget/makefile.in \
186 util/makefile.in \
187 widgets/makefile.in \
188 xml/makefile.in \
189 2geom/makefile.in \
190 extension/internal/win32.cpp \
191 extension/internal/win32.h \
192 extension/internal/emf-win32-inout.cpp \
193 extension/internal/emf-win32-inout.h \
194 extension/internal/emf-win32-print.cpp \
195 extension/internal/emf-win32-print.h \
196 helper/sp-marshal.list \
197 traits/copy.h \
198 traits/function.h \
199 traits/list-copy.h \
200 traits/reference.h \
201 $(jabber_whiteboard_SOURCES) \
202 $(CXXTEST_TEMPLATE)
204 # Extra files to remove when doing "make distclean"
205 DISTCLEANFILES = \
206 helper/sp-marshal.cpp \
207 helper/sp-marshal.h \
208 inkscape-version.cpp
210 # ################################################
211 # B I N A R I E S
212 # ################################################
214 # this should speed up the build
215 libinkscape_a_SOURCES = $(ink_common_sources)
217 inkscape_SOURCES += main.cpp $(win32_sources)
218 inkscape_LDADD = $(all_libs)
219 inkscape_LDFLAGS = --export-dynamic $(kdeldflags)
221 inkview_SOURCES += inkview.cpp $(win32_sources)
222 inkview_LDADD = $(all_libs)
224 # ################################################
225 # VERSION REPORTING
226 # ################################################
228 libinkversion_a_SOURCES = inkscape-version.cpp inkscape-version.h
230 if USE_SVN_VERSION
231 inkscape_version_deps = $(top_srcdir)/.svn/entries
232 endif
234 # If this is an SVN snapshot build, regenerate this file every time
235 # someone updates the SVN working directory.
236 inkscape-version.cpp: $(inkscape_version_deps)
237 VER_PREFIX="$(VERSION)"; \
238 if test -x "$(srcdir)/.svn" -a ! -z `which svn`; then \
239 VER_SVNREV=" r`LANG=en svn info $(srcdir) | sed -n -e '/^Revision:/s/Revision: \(.*\)/\1/p'`"; \
240 if test ! -z "`svn status -q $(srcdir)`"; then \
241 VER_CUSTOM=" custom"; \
242 fi; \
243 fi; \
244 VERSION="$$VER_PREFIX$$VER_SVNREV$$VER_CUSTOM"; \
245 echo "namespace Inkscape { " \
246 "char const *version_string = \"$$VERSION\"; " \
247 "}" > inkscape-version.new.cpp; \
248 if cmp -s inkscape-version.new.cpp inkscape-version.cpp; then \
249 rm inkscape-version.new.cpp; \
250 else \
251 mv inkscape-version.new.cpp inkscape-version.cpp; \
252 fi; \
253 echo $$VERSION
255 # #################################
256 # ## TESTING STUFF (make check) ###
257 # #################################
259 # List of all programs that should be built before testing. Note that this is
260 # different from TESTS, because some tests can be scripts that don't
261 # need to be built. There should be one test program per directory.
262 # automake adds $(EXEEXT) to check_PROGRAMS items but not to TESTS items:
263 # TESTS items can be scripts etc.
264 check_PROGRAMS = cxxtests
266 # streamtest is unfinished and can't handle the relocations done during
267 # "make distcheck".
269 # List of all tests to be run.
270 TESTS = $(check_PROGRAMS) ../share/extensions/test/run-all-extension-tests
272 # including the the testsuites here ensures that they get distributed
273 cxxtests_SOURCES = cxxtests.cpp $(CXXTEST_TESTSUITES)
274 cxxtests_LDADD = libnr/nr-compose-reference.o $(all_libs)
276 cxxtests.cpp: $(CXXTEST_TESTSUITES) $(CXXTEST_TEMPLATE)
277 $(CXXTESTGEN) -o cxxtests.cpp $(CXXTEST_TESTSUITES)
279 # ################################################
280 # D I S T
281 # ################################################
283 dist-hook:
284 mkdir $(distdir)/pixmaps
285 cp $(srcdir)/pixmaps/*xpm $(distdir)/pixmaps
287 distclean-local:
288 rm -f cxxtests.xml cxxtests.log