summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-26 20:29:58 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-26 20:29:58 -0400
commitf0238fdd065ace9edbb65a45875f2f47a7a932d6 (patch)
tree7d6ec764907624d3439b9e36dfe93f4f0effd3d8 /Makefile.am
parent84e01c3b21435241e36350e0198ef7b88b698612 (diff)
downloadfork-ledger-f0238fdd065ace9edbb65a45875f2f47a7a932d6.tar.gz
fork-ledger-f0238fdd065ace9edbb65a45875f2f47a7a932d6.tar.bz2
fork-ledger-f0238fdd065ace9edbb65a45875f2f47a7a932d6.zip
use libtool, for making shared libraries
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index a9466e9a..c9f64685 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,18 +1,19 @@
-noinst_LIBRARIES = libledger.a
-libledger_a_SOURCES = account.cc amount.cc autoxact.cc balance.cc binary.cc \
+lib_LTLIBRARIES = libledger.la
+libledger_la_SOURCES = account.cc amount.cc autoxact.cc balance.cc binary.cc \
config.cc datetime.cc format.cc ledger.cc option.cc parser.cc qif.cc \
quotes.cc textual.cc valexpr.cc value.cc walk.cc
if DEBUG
-libledger_a_CXXFLAGS = -DDEBUG_LEVEL=4
-libledger_a_SOURCES += debug.cc
+libledger_la_CXXFLAGS = -DDEBUG_LEVEL=4
+libledger_la_SOURCES += debug.cc
else
if STANDALONE
libledger_a_CXXFLAGS = -DSGI_STL_USE_SINGLE_CLIENT_ALLOCATOR=1
endif
endif
if READ_GNUCASH
-libledger_a_SOURCES += gnucash.cc
+libledger_la_SOURCES += gnucash.cc
endif
+libledger_la_LDFLAGS = -version-info 2:0
bin_PROGRAMS = ledger
if DEBUG
@@ -23,6 +24,6 @@ ledger_CXXFLAGS = -DSGI_STL_USE_SINGLE_CLIENT_ALLOCATOR=1
endif
endif
ledger_SOURCES = main.cc
-ledger_LDADD = $(LIBOBJS) libledger.a
+ledger_LDADD = $(LIBOBJS) libledger.la
info_TEXINFOS = ledger.texi