X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=Makefile;h=6332115bcbe8bdc7f650a8cb138669f21d5ee0c6;hp=3602ea793bc1f71b0d20b2a3f5ee50936a1ac953;hb=HEAD;hpb=636adeac84baeaab72dde713b6e96807ca93de76 diff --git a/Makefile b/Makefile index 3602ea7..6332115 100644 --- a/Makefile +++ b/Makefile @@ -3,14 +3,20 @@ 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)) +LDFLAGS=$(DEBUG) $(shell pkg-config --libs $(PACKAGES)) -lpthread -SRCS=chunk.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) $(LDFLAGS) -o $@ $^ + $(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