[passepartout] build libdocument.la with libtool



commit 2807546d842f10f1d895af2a1e508d123fa49f62
Author: Sven Herzberg <herzi lanedo com>
Date:   Thu Apr 30 10:48:43 2009 +0200

    build libdocument.la with libtool
    
    * src/pptout/document/Makefile.am: and another properly compiled library
    * src/pptout/Makefile.am: updated the build rules
---
 src/pptout/Makefile.am          |    2 +-
 src/pptout/document/Makefile.am |   28 ++++++++++++++++++----------
 2 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/src/pptout/Makefile.am b/src/pptout/Makefile.am
index d3a7aaf..5db3d68 100644
--- a/src/pptout/Makefile.am
+++ b/src/pptout/Makefile.am
@@ -47,7 +47,7 @@ passepartout_CPPFLAGS += $(XMLPP_CFLAGS) $(GTKMM_CFLAGS) $(GNOMECANVAS_CFLAGS) \
 	$(GNOME_CFLAGS) $(GNOMEVFS_CFLAGS) $(WARN_CFLAGS)
 
 pptpartlibs=\
-	document/libdocument.a \
+	document/libdocument.la \
 	../xml2ps/libxml2ps.la \
 	../fonts/libfonts.la \
 	../ps/libps.la \
diff --git a/src/pptout/document/Makefile.am b/src/pptout/document/Makefile.am
index be4a1ed..fc3d540 100644
--- a/src/pptout/document/Makefile.am
+++ b/src/pptout/document/Makefile.am
@@ -1,4 +1,4 @@
-noinst_LIBRARIES = libdocument.a
+noinst_LTLIBRARIES=libdocument.la
 noinst_PROGRAMS=getxsltparams
 
 getxsltparams_SOURCES=\
@@ -13,21 +13,29 @@ getxsltparams_LDADD=\
 	$(XMLPP_LIBS) \
 	$(NULL)
 
-check-local: getxsltparams
-	@for xslt in $(top_srcdir)/data/xhtml.xslt; do \
-		echo "[TEST] $< $$xslt" >&2; \
-		./getxsltparams $$xslt || exit $$?; \
-	done
-
 dist_noinst_HEADERS = basicframe.h cachedframe.h document.h group.h	\
 	imageframe.h page.h pagent.h rasterframe.h textframe.h		\
 	textstream.h fileerrors.h paper_sizes.h getxsltparams.h		\
 	loader.h filecontext.h typesetterthread.h
 
-libdocument_a_SOURCES = basicframe.cc cachedframe.cc document.cc	\
+libdocument_la_SOURCES=\
+	basicframe.cc \
+	cachedframe.cc \
+	document.cc \
 	group.cc imageframe.cc page.cc pagent.cc rasterframe.cc		\
 	textframe.cc textstream.cc paper_sizes.cc getxsltparams.cc	\
 	loader.cc typesetterthread.cc
 
-libdocument_a_CPPFLAGS = -I$(top_srcdir)/src
-libdocument_a_CPPFLAGS += $(GTKMM_CFLAGS) $(XMLPP_CFLAGS) $(WARN_CFLAGS)
+libdocument_la_CPPFLAGS=\
+	-I$(top_srcdir)/src \
+	$(GTKMM_CFLAGS) \
+	$(XMLPP_CFLAGS) \
+	$(WARN_CFLAGS) \
+	$(NULL)
+
+check-local: getxsltparams
+	@for xslt in $(top_srcdir)/data/xhtml.xslt; do \
+		echo "[TEST] $< $$xslt" >&2; \
+		./getxsltparams $$xslt || exit $$?; \
+	done
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]