X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=Makefile;h=3602ea793bc1f71b0d20b2a3f5ee50936a1ac953;hb=748d04c5c242a1dfcc932220eabd14f778e386c9;hp=392c3da1e94aae7eae3a2120cc5bd09e04151643;hpb=6a119b1ed79f669d9f2a99822140623ad4604d77;p=cumulus.git diff --git a/Makefile b/Makefile index 392c3da..3602ea7 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,28 @@ PACKAGES=sqlite3 uuid -DEBUG=-g #-pg -CXXFLAGS=-O -Wall -D_FILE_OFFSET_BITS=64 $(DEBUG) \ - `pkg-config --cflags $(PACKAGES)` -LDFLAGS=$(DEBUG) -ltar `pkg-config --libs $(PACKAGES)` +DEBUG=-g +CXXFLAGS=-O -Wall -Wextra -D_FILE_OFFSET_BITS=64 $(DEBUG) \ + $(shell pkg-config --cflags $(PACKAGES)) \ + -DCUMULUS_VERSION=$(shell cat version) +LDFLAGS=$(DEBUG) $(shell pkg-config --libs $(PACKAGES)) -SRCS=format.cc localdb.cc ref.cc scandir.cc sha1.cc statcache.cc store.cc +SRCS=chunk.cc localdb.cc main.cc metadata.cc ref.cc remote.cc sha1.cc \ + store.cc subfile.cc util.cc OBJS=$(SRCS:.cc=.o) -lbs : $(OBJS) +cumulus : $(OBJS) $(CXX) $(LDFLAGS) -o $@ $^ -dep: +version : NEWS + (git describe || (head -n1 NEWS | cut -d" " -f1)) >version 2>/dev/null +$(OBJS) : version + +clean : + rm -f $(OBJS) cumulus version + +dep : touch Makefile.dep makedepend -fMakefile.dep $(SRCS) --include *.dep +.PHONY : clean dep +-include *.dep