Makefile.am revision 05c0670a5ec29b57709b1a0bd01010d120a76d8d
## Process this file with automake to produce Makefile.in
# ################################################
# G L O B A L
# ################################################
# Should work in either automake1.7 or 1.8, but 1.6 doesn't
# handle foo/libfoo_a_CPPFLAGS properly (if at all).
# Update: We now avoid setting foo/libfoo_a_CPPFLAGS,
# so perhaps 1.6 will work.
AUTOMAKE_OPTIONS = 1.7 subdir-objects
# Executables compiled by "make" and installed by "make install"
bin_PROGRAMS = inkscape inkview
# Libraries which should be compiled by "make" but not installed.
# Use this only for libraries that are really standalone, rather than for
# source tree subdirectories.
if !WITH_EXT_GDL
internal_GDL = libgdl/libgdl.a
endif
noinst_LIBRARIES = \
$(internal_GDL) \
2geom/lib2geom.a \
all_libs = \
$(noinst_LIBRARIES) \
$(INKSCAPE_LIBS) \
$(EXIF_LIBS) \
$(GNOME_VFS_LIBS) \
$(XFT_LIBS) \
$(FREETYPE_LIBS) \
$(kdeldadd) \
$(win32ldflags) \
$(CARBON_LDFLAGS) \
$(LIBWPG_LIBS) \
$(LIBVISIO_LIBS) \
$(LIBCDR_LIBS) \
$(DBUS_LIBS) \
$(GDL_LIBS) \
$(IMAGEMAGICK_LIBS) \
$(X11_LIBS)
# Add sources common for Inkscape and Inkview to this variable.
ink_common_sources =
# Add Inkscape-only sources here.
inkscape_SOURCES =
# Add Inkview-only sources here.
inkview_SOURCES =
# Add sources that are built from meta files
BUILT_SOURCES =
# Extra files to distribute
EXTRA_DIST =
AM_CPPFLAGS = \
$(EXIF_CFLAGS) \
$(FREETYPE_CFLAGS) \
$(GNOME_PRINT_CFLAGS) \
$(GNOME_VFS_CFLAGS) \
$(IMAGEMAGICK_CFLAGS) \
$(LIBWPG_CFLAGS) \
$(LIBVISIO_CFLAGS) \
$(LIBCDR_CFLAGS) \
$(DBUS_CFLAGS) \
$(GDL_CFLAGS) \
$(XFT_CFLAGS) \
$(LCMS_CFLAGS) \
$(POPPLER_CFLAGS) \
$(POPPLER_GLIB_CFLAGS) \
-DPOTRACE=\"potrace\" \
$(INKSCAPE_CFLAGS) \
-I$(top_srcdir)/cxxtest \
$(WIN32_CFLAGS) \
-I$(builddir)/extension/dbus \
$(X11_CFLAGS)
CXXTEST_TEMPLATE = $(srcdir)/cxxtest-template.tpl
CXXTESTGENFLAGS = --root --have-eh --template=$(CXXTEST_TEMPLATE)
CXXTESTGEN = $(top_srcdir)/cxxtest/cxxtestgen.pl $(CXXTESTGENFLAGS)
# Add test cases to this variable
CXXTEST_TESTSUITES =
# ################################################
#
# E X T R A
#
# ################################################
if PLATFORM_WIN32
win32ldflags = -lcomdlg32 -lmscms
mwindows = -mwindows
endif
# Include all partial makefiles from subdirectories
include Makefile_insert
include dialogs/Makefile_insert
include display/Makefile_insert
include dom/Makefile_insert
include extension/Makefile_insert
include extension/dbus/Makefile_insert
include filters/Makefile_insert
include helper/Makefile_insert
include io/Makefile_insert
include libcroco/Makefile_insert
include libgdl/Makefile_insert
include libnrtype/Makefile_insert
include libavoid/Makefile_insert
include livarot/Makefile_insert
include live_effects/Makefile_insert
include libvpsc/Makefile_insert
include libcola/Makefile_insert
include svg/Makefile_insert
include widgets/Makefile_insert
include debug/Makefile_insert
include xml/Makefile_insert
include ui/Makefile_insert
include ui/cache/Makefile_insert
include ui/dialog/Makefile_insert
include ui/tool/Makefile_insert
include ui/view/Makefile_insert
include ui/widget/Makefile_insert
include util/Makefile_insert
include trace/Makefile_insert
include 2geom/Makefile_insert
# Extra files not mentioned as sources to include in the source tarball
EXTRA_DIST += \
$(top_srcdir)/Doxyfile \
2geom/makefile.in \
$(CXXTEST_TEMPLATE)
# Extra files to remove when doing "make distclean"
DISTCLEANFILES = \
# ################################################
# B I N A R I E S
# ################################################
# this should speed up the build
libinkscape_a_SOURCES = $(ink_common_sources)
inkscape_SOURCES += main.cpp $(win32_sources)
inkscape_LDADD = $(all_libs)
inkscape_LDFLAGS = $(kdeldflags) $(mwindows)
inkview_SOURCES += inkview.cpp $(win32_sources)
inkview_LDADD = $(all_libs)
inkview_LDFLAGS = $(mwindows)
# ################################################
# VERSION REPORTING
# ################################################
libinkversion_a_SOURCES = inkscape-version.cpp inkscape-version.h
if USE_BZR_VERSION
inkscape_version_deps = $(top_srcdir)/.bzr/branch/last-revision
endif
# If this is an BZR snapshot build, regenerate this file every time
# someone updates the BZR working directory.
inkscape-version.cpp: $(inkscape_version_deps)
VER_PREFIX="$(VERSION)";\
VER_BZRREV=" r`bzr revno`"; \
if test ! -z "`bzr status -S -V $(srcdir)`"; then \
VER_CUSTOM=" custom"; \
fi; \
VERSION="$$VER_PREFIX$$VER_BZRREV$$VER_CUSTOM"; \
echo "namespace Inkscape { " \
"char const *version_string = \"$$VERSION\"; " \
"}" > inkscape-version.new.cpp; \
if cmp -s inkscape-version.new.cpp inkscape-version.cpp; then \
rm inkscape-version.new.cpp; \
else \
fi; \
echo $$VERSION
# #################################
# ## TESTING STUFF (make check) ###
# #################################
# List of all programs that should be built before testing. Note that this is
# different from TESTS, because some tests can be scripts that don't
# need to be built. There should be one test program per directory.
# automake adds $(EXEEXT) to check_PROGRAMS items but not to TESTS items:
# TESTS items can be scripts etc.
check_PROGRAMS = cxxtests
# streamtest is unfinished and can't handle the relocations done during
# "make distcheck".
# List of all tests to be run.
TESTS = $(check_PROGRAMS) ../share/extensions/test/run-all-extension-tests
# FIXME: Currently, a number of cxxtest tests fail. These should be fixed and
# the XFAIL_TESTS build target should be removed.
# See the following Launchpad bugs:
#
# LP #1202271 <cxxtest: preferences-test.h fails>
# LP #1208013 <cxxtest: curve-test.h fails>
# LP #1208002 <cxxtest: svg-length-test.h fails>
# LP #1208005 <cxxtest: svg-path-geom-test.h fails>
# LP #1207502 <cxxtest: svg-affine-test.h fails>
XFAIL_TESTS = $(check_PROGRAMS)
# including the the testsuites here ensures that they get distributed
cxxtests_SOURCES = cxxtests.cpp $(CXXTEST_TESTSUITES)
cxxtests_LDADD = $(all_libs)
cxxtests.cpp: $(CXXTEST_TESTSUITES) $(CXXTEST_TEMPLATE)
$(CXXTESTGEN) -o cxxtests.cpp $(CXXTEST_TESTSUITES)
# ################################################
# D I S T
# ################################################
dist-hook:
mkdir $(distdir)/pixmaps
cp $(srcdir)/pixmaps/*xpm $(distdir)/pixmaps
distclean-local:
rm -f cxxtests.xml cxxtests.log