summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--README1
-rw-r--r--ledger.cc1
3 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a1478b4f..ff9fd332 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
CODE = amount.cc ledger.cc parse.cc reports.cc
OBJS = $(patsubst %.cc,%.o,$(CODE))
-CFLAGS = -Wall -ansi -pedantic
+CFLAGS = #-Wall -ansi -pedantic
DFLAGS = -O3 -fomit-frame-pointer
#DFLAGS = -g -DDEBUG=1
-INCS = -I/sw/include
-LIBS = -L/sw/lib -lgmpxx -lgmp -lpcre
+INCS = -I/usr/local/include
+LIBS = -L/usr/local/lib -lgmpxx -lgmp -lpcre
ifdef GNUCASH
CODE := $(CODE) gnucash.cc
diff --git a/README b/README
index 5989f310..54c3a9a9 100644
--- a/README
+++ b/README
@@ -5,6 +5,7 @@ of commodities, unlimited accounts, etc.
Ledger is written in ANSI C++, and should compile on any platform. It
only depends on the GNU multiprecision integer library (gmp, or
libgmp), and the Perl regular expression library (pcre, or libpcre).
+Also, this project was developed using GNU make and gcc 3.3.
To build and install, once you have these libraries on your system,
enter these commands:
diff --git a/ledger.cc b/ledger.cc
index 8a1a61ce..4883c3cb 100644
--- a/ledger.cc
+++ b/ledger.cc
@@ -1,6 +1,7 @@
#include "ledger.h"
#include <fstream>
+#include <unistd.h>
namespace ledger {