Makefile_insert revision c6418c4b7565084defaac60e72e3366753ecdfcd
## 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.
libinkpre_a_SOURCES = \
enums.h \
isinf.h \
macros.h \
prefix.h \
syseq.h \
# libinkpost.a: Any object file that needs to be near the end of the link line.
# gradient-chemistry.o is called by some things in display/.
libinkpost_a_SOURCES = \
gc.cpp \
memeq.h \
round.h \
streq.h \
strneq.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
# ################################################
#
# B I N A R I E S
#
# ################################################
inkscape_SOURCES = main.cpp $(win32_sources)
inkscape_LDADD = $(all_libs)
inkscape_LDFLAGS = --export-dynamic $(kdeldflags)
inkview_SOURCES = inkview.cpp $(win32_sources)
inkview_LDADD = $(all_libs)
libinkversion_a_SOURCES = inkscape-version.cpp inkscape-version.h
# Hack: make inkscape-version.cpp a phony target.
# Create the version file every time "make" is invoked. Overwrite it only
# if it changes. Watch the backslashes!
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
.PHONY: inkscape-version.cpp
# ######################
# ### 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