Replace boost::scoped_ptr with std::unique_ptr.
[cumulus.git] / Makefile
1 PACKAGES=sqlite3 uuid
2 DEBUG=-g
3 CXXFLAGS=-O -Wall -Wextra -D_FILE_OFFSET_BITS=64 $(DEBUG) \
4          $(shell pkg-config --cflags $(PACKAGES)) \
5          -DCUMULUS_VERSION=$(shell cat version)
6 LDFLAGS=$(DEBUG) $(shell pkg-config --libs $(PACKAGES)) -lpthread
7
8 THIRD_PARTY_SRCS=chunk.cc sha1.cc sha256.cc
9 SRCS=exclude.cc hash.cc localdb.cc main.cc metadata.cc ref.cc remote.cc \
10      store.cc subfile.cc util.cc $(addprefix third_party/,$(THIRD_PARTY_SRCS))
11 OBJS=$(SRCS:.cc=.o)
12
13 all : cumulus cumulus-chunker-standalone
14
15 cumulus : $(OBJS)
16         $(CXX) -o $@ $^ $(LDFLAGS)
17
18 cumulus-chunker-standalone : chunker-standalone.o third_party/chunk.o
19         $(CXX) -o $@ $^ $(LDFLAGS)
20
21 version : NEWS
22         (git describe || (head -n1 NEWS | cut -d" " -f1)) >version 2>/dev/null
23 $(OBJS) : version
24
25 clean :
26         rm -f $(OBJS) cumulus version
27
28 dep :
29         touch Makefile.dep
30         makedepend -fMakefile.dep $(SRCS)
31
32 .PHONY : clean dep
33
34 -include *.dep