projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add some further documentation on the sftp backend
[cumulus.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
392c3da
..
bf6561c
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,18
+1,28
@@
PACKAGES=sqlite3 uuid
PACKAGES=sqlite3 uuid
-DEBUG=-g
#-pg
+DEBUG=-g
CXXFLAGS=-O -Wall -D_FILE_OFFSET_BITS=64 $(DEBUG) \
CXXFLAGS=-O -Wall -D_FILE_OFFSET_BITS=64 $(DEBUG) \
- `pkg-config --cflags $(PACKAGES)`
-LDFLAGS=$(DEBUG) -ltar `pkg-config --libs $(PACKAGES)`
+ $(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 metadata.cc ref.cc remote.cc scandir.cc sha1.cc \
+ store.cc subfile.cc util.cc
OBJS=$(SRCS:.cc=.o)
OBJS=$(SRCS:.cc=.o)
-
lb
s : $(OBJS)
+
cumulu
s : $(OBJS)
$(CXX) $(LDFLAGS) -o $@ $^
$(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)
touch Makefile.dep
makedepend -fMakefile.dep $(SRCS)
-
-include *.
dep
+
.PHONY : clean
dep
+-include *.dep