summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2016-03-13 14:44:35 +0100
committerDavid Tardon <dtardon@redhat.com>2016-03-13 15:15:05 +0100
commit0a3b3ecb3eec2cc5c9eb9e481feef6023744577a (patch)
treed4450fec2d281678db8cab10499d8b89940bc1c2
parenteaa9b5611163ad80ffd517e028b4d4dae804464e (diff)
put core into a conv. lib to enable testing
-rw-r--r--src/lib/Makefile.am29
-rw-r--r--src/test/Makefile.am1
2 files changed, 19 insertions, 11 deletions
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index 66efcdd..f8006b7 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -4,12 +4,17 @@ else
version_info = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
endif
+noinst_LTLIBRARIES = libsw602-internal.la
lib_LTLIBRARIES = libsw602-@SW602_MAJOR_VERSION@.@SW602_MINOR_VERSION@.la
AM_CXXFLAGS = -I$(top_srcdir)/inc $(REVENGE_CFLAGS) $(REVENGE_STREAM_CFLAGS) $(DEBUG_CXXFLAGS) -DLIBTEXT602_BUILD -DDEBUG_WITH_FILES
-libsw602_@SW602_MAJOR_VERSION@_@SW602_MINOR_VERSION@_la_LIBADD = $(REVENGE_LIBS) @LIBSW602_WIN32_RESOURCE@
-libsw602_@SW602_MAJOR_VERSION@_@SW602_MINOR_VERSION@_la_DEPENDENCIES = @LIBSW602_WIN32_RESOURCE@
+libsw602_@SW602_MAJOR_VERSION@_@SW602_MINOR_VERSION@_la_LIBADD = \
+ libsw602-internal.la \
+ $(REVENGE_LIBS) \
+ LIBSW602_WIN32_RESOURCE@
+
+libsw602_@SW602_MAJOR_VERSION@_@SW602_MINOR_VERSION@_la_DEPENDENCIES = libsw602-internal.la @LIBSW602_WIN32_RESOURCE@
libsw602_@SW602_MAJOR_VERSION@_@SW602_MINOR_VERSION@_la_LDFLAGS = $(version_info) -export-dynamic -no-undefined
libsw602_@SW602_MAJOR_VERSION@_@SW602_MINOR_VERSION@_la_SOURCES = \
C602ChartHeader.cpp \
@@ -20,13 +25,23 @@ libsw602_@SW602_MAJOR_VERSION@_@SW602_MINOR_VERSION@_la_SOURCES = \
C602Header.h \
C602Parser.cpp \
C602Parser.h \
+ SW602Document.cpp \
+ T602Header.cpp \
+ T602Header.h \
+ T602Parser.cpp \
+ T602Parser.h \
+ WinText602Header.cpp \
+ WinText602Header.h \
+ WinText602Parser.cpp \
+ WinText602Parser.h
+
+libsw602_internal_la_SOURCES = \
SW602Cell.cpp \
SW602Cell.h \
SW602Chart.cpp \
SW602Chart.h \
SW602Debug.cpp \
SW602Debug.h \
- SW602Document.cpp \
SW602Entry.h \
SW602Font.cpp \
SW602Font.h \
@@ -74,14 +89,6 @@ libsw602_@SW602_MAJOR_VERSION@_@SW602_MINOR_VERSION@_la_SOURCES = \
SW602TextListener.h \
SW602Types.cpp \
SW602Types.h \
- T602Header.cpp \
- T602Header.h \
- T602Parser.cpp \
- T602Parser.h \
- WinText602Header.cpp \
- WinText602Header.h \
- WinText602Parser.cpp \
- WinText602Parser.h \
libsw602_utils.cpp \
libsw602_utils.h
diff --git a/src/test/Makefile.am b/src/test/Makefile.am
index 22e6dd0..339e918 100644
--- a/src/test/Makefile.am
+++ b/src/test/Makefile.am
@@ -14,6 +14,7 @@ AM_CXXFLAGS = \
test_LDFLAGS = -L$(top_srcdir)/src/lib
test_LDADD = \
+ $(top_builddir)/src/lib/libsw602-internal.la \
$(CPPUNIT_LIBS) \
$(REVENGE_LIBS) \
$(REVENGE_STREAM_LIBS)