X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=Makefile;h=454f1c47b1f7d3c4537f692b8a59df7964e30db4;hb=01776f600be2a246400d1e6e135b77f8e549c833;hp=162d9f98f6b26f8ec6fa15e50754045487123d22;hpb=fc223ec17dc5e6691291a7b31f6daa8679b484cd;p=cumulus.git diff --git a/Makefile b/Makefile index 162d9f9..454f1c4 100644 --- a/Makefile +++ b/Makefile @@ -5,13 +5,19 @@ CXXFLAGS=-O -Wall -Wextra -D_FILE_OFFSET_BITS=64 $(DEBUG) \ -DCUMULUS_VERSION=$(shell cat version) LDFLAGS=$(DEBUG) $(shell pkg-config --libs $(PACKAGES)) -SRCS=chunk.cc exclude.cc localdb.cc main.cc metadata.cc ref.cc remote.cc \ - sha1.cc store.cc subfile.cc util.cc +THIRD_PARTY_SRCS=chunk.cc sha1.cc sha256.cc +SRCS=exclude.cc hash.cc localdb.cc main.cc metadata.cc ref.cc remote.cc \ + store.cc subfile.cc util.cc $(addprefix third_party/,$(THIRD_PARTY_SRCS)) OBJS=$(SRCS:.cc=.o) +all : cumulus cumulus-chunker-standalone + cumulus : $(OBJS) $(CXX) -o $@ $^ $(LDFLAGS) +cumulus-chunker-standalone : chunker-standalone.o third_party/chunk.o + $(CXX) -o $@ $^ $(LDFLAGS) + version : NEWS (git describe || (head -n1 NEWS | cut -d" " -f1)) >version 2>/dev/null $(OBJS) : version