diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-19 14:47:33 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:27 -0400 |
commit | c5214c87594e0de68111a9160dba5dc1aceb9a43 (patch) | |
tree | 41419220704bb48e79d506cee4d12cb3e35fdc69 /Makefile.am | |
parent | 53c132ad98caf765eaba51fe4c5a85e4a69ddf06 (diff) | |
download | fork-ledger-c5214c87594e0de68111a9160dba5dc1aceb9a43.tar.gz fork-ledger-c5214c87594e0de68111a9160dba5dc1aceb9a43.tar.bz2 fork-ledger-c5214c87594e0de68111a9160dba5dc1aceb9a43.zip |
Changed date parser to use lex/yacc.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 408b1ed0..3b84ae37 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,10 +17,15 @@ if HAVE_BOOST_PYTHON lib_LTLIBRARIES += libpyledger.la endif +AM_YFLAGS = -d +AM_LFLAGS = -o $(LEX_OUTPUT_ROOT).c + libledger_la_CXXFLAGS = $(WARNFLAGS) -I$(top_builddir)/gdtoa libledger_la_SOURCES = \ amount.cc \ times.cc \ + parsetime.yy \ + scantime.ll \ quotes.cc \ balance.cc \ value.cc \ @@ -84,6 +89,7 @@ libpyledger_la_LDFLAGS = -release 3.0 pkginclude_HEADERS = \ amount.h \ times.h \ + parsetime.h \ balance.h \ binary.h \ csv.h \ @@ -124,7 +130,8 @@ bin_PROGRAMS = ledger ledger_CXXFLAGS = ledger_SOURCES = option.cc main.cc -ledger_LDADD = $(LIBOBJS) libledger.la gdtoa/libgdtoa.la +ledger_LDADD = $(LIBOBJS) libledger.la gdtoa/libgdtoa.la $(LEXLIB) + if HAVE_EXPAT ledger_CXXFLAGS += -DHAVE_EXPAT=1 endif @@ -206,6 +213,7 @@ UnitTests_SOURCES = tests/UnitTests.cc \ \ tests/corelib/numerics/BasicAmount.cc \ tests/corelib/numerics/CommodityAmount.cc \ + tests/corelib/numerics/DateTime.cc \ tests/corelib/numerics/Commodity.cc UnitTests_LDADD = $(lib_LTLIBRARIES) gdtoa/libgdtoa.la -lcppunit |