diff options
author | John Wiegley <johnw@newartisans.com> | 2003-10-01 20:47:10 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2003-10-01 20:47:10 +0000 |
commit | f44eea66c4d3a6430b41eb564e81f976e9abeeb6 (patch) | |
tree | e8fb24f3f69cbae1a3a270eeea53e23ea647a93d /Makefile | |
parent | a40813d896fd929e92969c06229844073d58565d (diff) | |
download | fork-ledger-f44eea66c4d3a6430b41eb564e81f976e9abeeb6.tar.gz fork-ledger-f44eea66c4d3a6430b41eb564e81f976e9abeeb6.tar.bz2 fork-ledger-f44eea66c4d3a6430b41eb564e81f976e9abeeb6.zip |
*** empty log message ***
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
1 files changed, 23 insertions, 5 deletions
@@ -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 |