From f44eea66c4d3a6430b41eb564e81f976e9abeeb6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 1 Oct 2003 20:47:10 +0000 Subject: *** empty log message *** --- Makefile | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index df54748c..13b71ac9 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,14 @@ +define GNUCASH +true +endef +define HUQUQ +true +endef + +# +# Example build: make GNUCASH=1 COMMODITY=EUR +# + CODE = amount.cc \ ledger.cc \ parse.cc \ @@ -8,16 +19,23 @@ CODE = amount.cc \ OBJS = $(patsubst %.cc,%.o,$(CODE)) -CFLAGS = -Wall -ansi -pedantic -DDEFAULT_COMMODITY="\"\$$\"" -CFLAGS := $(CFLAGS) -DHUQUQULLAH=1 +ifndef COMMODITY +COMMODITY = \$$ +endif -DFLAGS = -O3 -fomit-frame-pointer -#DFLAGS = -g -O2 # -pg +CFLAGS = -Wall -ansi -pedantic +CFLAGS := $(CFLAGS) -DDEFAULT_COMMODITY="\"$(COMMODITY)\"" -INCS = -I/usr/include/xmltok +#DFLAGS = -O3 -fomit-frame-pointer +DFLAGS = -g # -O2 # -pg +INCS = -I/usr/include/xmltok LIBS = -lgmpxx -lgmp -lpcre +ifdef HUQUQ +CFLAGS := $(CFLAGS) -DHUQUQULLAH=1 +endif + ifdef GNUCASH CODE := $(CODE) gnucash.cc CFLAGS := $(CFLAGS) -DREAD_GNUCASH=1 -- cgit v1.2.3