Makefile_insert revision c5e2a1c98cba51b6093b8b341f83490a7b47f25e
## Makefile.am fragment, included by src/Makefile.am.
# ################################################
#
# I N K S C A P E
#
# ################################################
# libinkpre.a: any object that's sharable between inkscape & inkview,
# and isn't needed by object files in subdirectories (i.e. libinkpre.a
# comes before subdirectory libraries on the link line).
#
# Excludes winmain.cpp (a gui wrapper around main): I'm guessing that
# it needs to be explicitly listed as a source of each graphical
# binary: it isn't (to my knowledge) called by main (whether directly
# or indirectly), so I don't think that putting it in a library will
# suffice to get it linked in. Windows devel please confirm. -- pjrm.
ink_common_sources += \
enums.h \
gc.cpp \
isinf.h \
macros.h \
memeq.h \
round.h \
streq.h \
strneq.h \
syseq.h \
# Additional dependencies
desktop.$(OBJEXT): helper/sp-marshal.h
document.$(OBJEXT): helper/sp-marshal.h
inkscape.$(OBJEXT): helper/sp-marshal.h
knot.$(OBJEXT): helper/sp-marshal.h
selection.$(OBJEXT): helper/sp-marshal.h
sp-object.$(OBJEXT): helper/sp-marshal.h
view.$(OBJEXT): helper/sp-marshal.h
libinkversion_a_SOURCES = inkscape-version.cpp inkscape-version.h
if USE_SVN_VERSION
inkscape_version_deps = $(top_srcdir)/.svn/entries
endif
# If this is an SVN snapshot build, regenerate this file every time
# someone updates the SVN working directory.
inkscape-version.cpp: $(inkscape_version_deps)
VER_PREFIX="$(VERSION)"; \
if test -x "$(srcdir)/.svn" -a ! -z `which svn`; then \
VER_SVNREV=" r`svn info $(srcdir) | sed -n -e '/^Revision:/s/Revision: \(.*\)/\1/p'`"; \
if test ! -z "`svn status -q $(srcdir)`"; then \
VER_CUSTOM=" custom"; \
fi; \
fi; \
VERSION="$$VER_PREFIX$$VER_SVNREV$$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
# ######################
# ### CxxTest stuff ####
# ######################
CXXTEST_TESTSUITES += \
$(srcdir)/MultiPrinter.h \
$(srcdir)/TRPIFormatter.h \
$(srcdir)/PylogFormatter.h \
$(srcdir)/attributes-test.h \
$(srcdir)/color-profile-test.h \
$(srcdir)/dir-util-test.h \
$(srcdir)/extract-uri-test.h \
$(srcdir)/mod360-test.h \
$(srcdir)/round-test.h \
$(srcdir)/preferences-test.h \
$(srcdir)/sp-gradient-test.h \
$(srcdir)/sp-style-elem-test.h \
$(srcdir)/style-test.h \
$(srcdir)/test-helpers.h \
$(srcdir)/verbs-test.h