summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-09-30 07:17:02 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-09-30 07:17:02 +0000
commit85c92e10db043170adbe9a36152907dbb0ea8138 (patch)
treeeafde5c72272c055378a43b843428fdca7643bda /Makefile
parent5bd2401bc7cde0e01cd5b9d18cf077e255c4bd45 (diff)
downloadfork-ledger-85c92e10db043170adbe9a36152907dbb0ea8138.tar.gz
fork-ledger-85c92e10db043170adbe9a36152907dbb0ea8138.tar.bz2
fork-ledger-85c92e10db043170adbe9a36152907dbb0ea8138.zip
*** empty log message ***
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index acabc563..96db5db4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,21 @@
-CODE = amount.cc ledger.cc parse.cc gnucash.cc balance.cc main.cc
+define GNUCASH
+true
+endef
+
+CODE = amount.cc ledger.cc parse.cc balance.cc main.cc
+ifdef GNUCASH
+CODE := $(CODE) gnucash.cc
+endif
OBJS = $(patsubst %.cc,%.o,$(CODE))
CFLAGS = -Wall -ansi -pedantic
DFLAGS = -g
INCS = -I/usr/include/xmltok
-LIBS = -lgmpxx -lgmp -lpcre -lxmlparse
+LIBS = -lgmpxx -lgmp -lpcre
+ifdef GNUCASH
+LIBS := $(LIBS) -lxmlparse
+endif
all: make.deps ledger