X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=854be806ad1f904777b92468808b2c53d1d0d4f6;hb=79c9c740d9b78e357dd66cb9a4b77d03a5076f3b;hp=ffa28a3c217d92d2dd05c41a0bee705c90d5f358;hpb=d5afe2c08724b4b263a76f187e39861c1e6e0cf5;p=cumulus.git diff --git a/Makefile b/Makefile index ffa28a3..854be80 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,26 @@ -PACKAGES=uuid -CXXFLAGS=-O -Wall -D_FILE_OFFSET_BITS=64 -g -pg \ - `pkg-config --cflags $(PACKAGES)` -LDFLAGS=-g -pg -ltar `pkg-config --libs $(PACKAGES)` +PACKAGES=sqlite3 uuid +DEBUG=-g #-pg +CXXFLAGS=-O -Wall -D_FILE_OFFSET_BITS=64 $(DEBUG) \ + `pkg-config --cflags $(PACKAGES)` -DLBS_VERSION=`cat version` +LDFLAGS=$(DEBUG) `pkg-config --libs $(PACKAGES)` -SRCS=format.cc scandir.cc sha1.cc store.cc +SRCS=localdb.cc ref.cc scandir.cc sha1.cc statcache.cc store.cc util.cc OBJS=$(SRCS:.cc=.o) -scandir : $(OBJS) +lbs : $(OBJS) $(CXX) $(LDFLAGS) -o $@ $^ -dep: +version : NEWS + (git-describe || (head -n1 NEWS | cut -d" " -f1)) >version +$(OBJS) : version + +clean : + rm -f $(OBJS) lbs version + +dep : touch Makefile.dep makedepend -fMakefile.dep $(SRCS) --include *.dep +.PHONY : clean dep +-include *.dep