Makefile and sample.dat changes
This commit is contained in:
parent
d022744c18
commit
1a5390243e
2 changed files with 20 additions and 5 deletions
14
Makefile
14
Makefile
|
|
@ -2,9 +2,9 @@ CODE = amount.cc ledger.cc parse.cc reports.cc
|
|||
OBJS = $(patsubst %.cc,%.o,$(CODE))
|
||||
#CXX = cc
|
||||
CXX = g++
|
||||
CFLAGS = -Wall -ansi -pedantic
|
||||
#DFLAGS = -O3 -fomit-frame-pointer
|
||||
DFLAGS = -g -DDEBUG=1
|
||||
CFLAGS = #-Wall -ansi -pedantic
|
||||
DFLAGS = -O3 -fomit-frame-pointer
|
||||
#DFLAGS = -g -DDEBUG=1
|
||||
INCS = -I/sw/include -I/usr/include/gcc/darwin/3.3/c++ -I/usr/include/gcc/darwin/3.3/c++/ppc-darwin
|
||||
LIBS = -L/sw/lib -lgmpxx -lgmp -lpcre
|
||||
|
||||
|
|
@ -27,14 +27,18 @@ ledger: $(OBJS)
|
|||
ledger.info: ledger.texi
|
||||
makeinfo $<
|
||||
|
||||
ledger.pdf: ledger.texi
|
||||
texi2pdf $<
|
||||
|
||||
%.o: %.cc
|
||||
$(CXX) $(CFLAGS) $(INCS) $(DFLAGS) -c -o $@ $<
|
||||
|
||||
clean:
|
||||
rm -f ledger *.o *.elc *~ .\#*
|
||||
rm -f ledger *.o *.elc *~ .\#* .gdb_history README.texi
|
||||
rm -f *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr
|
||||
|
||||
distclean fullclean: clean
|
||||
rm -f ledger.info README.html README.pdf *.elc make.deps
|
||||
rm -f ledger.info README.html *.pdf *.elc make.deps TAGS
|
||||
|
||||
rebuild: clean deps all
|
||||
|
||||
|
|
|
|||
11
sample.dat
Normal file
11
sample.dat
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
2004/05/01 Checking balance
|
||||
Assets:Checking $500.00
|
||||
Equity:Opening Balances
|
||||
|
||||
2004/05/29 Book Store
|
||||
Expenses:Books $20.00
|
||||
Assets:Checking
|
||||
|
||||
2004/05/29 Restaurant
|
||||
Expenses:Food $50.00
|
||||
Liabilities:MasterCard
|
||||
Loading…
Add table
Reference in a new issue