From 85c92e10db043170adbe9a36152907dbb0ea8138 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 30 Sep 2003 07:17:02 +0000 Subject: *** empty log message *** --- Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3