Makefile_insert revision f6d71dd40cfcf8d2fc9790ec6802fef95f898b4f
## Makefile.am fragment, included by src/Makefile.am.
# ################################################
#
# E X T R A
#
# ################################################
if OS_WIN32
win32_sources = winmain.cpp
win32ldflags = -lcomdlg32
endif
if INKJAR
inkjar_dir = inkjar
inkjar_libs = inkjar/libinkjar.a
endif
# ################################################
#
# 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 \
isnan.h \
macros.h \
prefix.h \
# Force libinkpost.a to be rebuilt if we add files to libinkpost_a_SOURCES.
libinkpost_a_DEPENDENCIES = Makefile_insert
# 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 \
inkscape_private_libs = \
$(inkjar_libs) \
all_libs = \
$(inkscape_private_libs) \
$(INKSCAPE_LIBS) \
$(GNOME_PRINT_LIBS) \
$(GNOME_VFS_LIBS) \
$(XFT_LIBS) \
$(FREETYPE_LIBS) \
$(kdeldadd) \
$(win32ldflags) \
$(PERL_LIBS) \
$(PYTHON_LIBS) \
$(LIBLOUDMOUTH_LIBS)
desktop.$(OBJEXT): helper/sp-marshal.h
document.$(OBJEXT): helper/sp-marshal.h inkscape_version.h
extension/internal/ps.$(OBJEXT): inkscape_version.h
inkscape.$(OBJEXT): helper/sp-marshal.h inkscape_version.h
knot.$(OBJEXT): helper/sp-marshal.h
main.$(OBJEXT): inkscape_version.h
selection.$(OBJEXT): helper/sp-marshal.h
sp-object.$(OBJEXT): helper/sp-marshal.h
sp-root.$(OBJEXT): inkscape_version.h
view.$(OBJEXT): helper/sp-marshal.h
help.$(OBJEXT): inkscape_version.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)
dir_util_test_SOURCES = dir-util-test.cpp utest/test-2ary-cases.h
dir_util_test_LDADD = dir-util.$(OBJEXT) -lglib-2.0
mod360_test_SOURCES = mod360-test.cpp
mod360_test_LDADD = libinkpre.a -lglib-2.0
extract_uri_test_SOURCES = extract-uri-test.cpp
extract_uri_test_LDADD = libinkpre.a -lglib-2.0
round_test_SOURCES = round-test.cpp
round_test_LDADD = libinkpost.a
sp_gradient_test_SOURCES = sp-gradient-test.cpp
sp_gradient_test_LDADD = $(all_libs)
sp_style_elem_test_SOURCES = sp-style-elem-test.cpp
sp_style_elem_test_LDADD = $(all_libs)
style_test_SOURCES = style-test.cpp
style_test_LDADD = $(all_libs)
echo '#define INKSCAPE_VERSION "$(VERSION)"' > inkscape_version.h
test_all_includes = \