diff options
author | John Wiegley <johnw@newartisans.com> | 2003-09-30 07:02:31 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2003-09-30 07:02:31 +0000 |
commit | 5bd2401bc7cde0e01cd5b9d18cf077e255c4bd45 (patch) | |
tree | bcc3d57e446c3c7b9c91888bda2fa02d61423e96 /Makefile | |
parent | ff57781f1fc80024ae6387f29b2f06278acadb3b (diff) | |
download | fork-ledger-5bd2401bc7cde0e01cd5b9d18cf077e255c4bd45.tar.gz fork-ledger-5bd2401bc7cde0e01cd5b9d18cf077e255c4bd45.tar.bz2 fork-ledger-5bd2401bc7cde0e01cd5b9d18cf077e255c4bd45.zip |
*** empty log message ***
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 2 insertions, 21 deletions
@@ -1,7 +1,4 @@ -CODE = amount.cc ledger.cc parse.cc gnucash.cc balance.cc -ifndef LIBRARY -CODE := $(CODE) main.cc -endif +CODE = amount.cc ledger.cc parse.cc gnucash.cc balance.cc main.cc OBJS = $(patsubst %.cc,%.o,$(CODE)) @@ -10,27 +7,11 @@ DFLAGS = -g INCS = -I/usr/include/xmltok LIBS = -lgmpxx -lgmp -lpcre -lxmlparse -ifdef LIBRARY - -CFLAGS := $(CFLAGS) -fpic - -all: make.deps libledger.so ledger - -libledger.so: $(OBJS) - g++ $(CFLAGS) $(INCS) $(DFLAGS) -shared -fpic -o $@ $(OBJS) $(LIBS) - -ledger: main.cc - g++ $(INCS) $(DFLAGS) -o $@ main.cc -L. -lledger - -else # LIBRARY - all: make.deps ledger ledger: $(OBJS) g++ $(CFLAGS) $(INCS) $(DFLAGS) -o $@ $(OBJS) $(LIBS) -endif # LIBRARY - %.o: %.cc g++ $(CFLAGS) $(INCS) $(DFLAGS) -c -o $@ $< @@ -42,6 +23,6 @@ rebuild: clean deps all deps: make.deps make.deps: Makefile - cc -M $(INCS) $(CODE) main.cc > $@ + cc -M $(INCS) $(CODE) > $@ include make.deps |