projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial support for efficient sub-file incrementals.
[cumulus.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
d2221fb
..
de3e9f9
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,6
+1,27
@@
-CXXFLAGS=-O -Wall
+PACKAGES=sqlite3 uuid
+DEBUG=-g #-pg
+CXXFLAGS=-O -Wall -D_FILE_OFFSET_BITS=64 $(DEBUG) \
+ `pkg-config --cflags $(PACKAGES)` -DLBS_VERSION=`cat version`
+LDFLAGS=$(DEBUG) `pkg-config --libs $(PACKAGES)`
-OBJS=scandir.o
+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)
-
scandir
: $(OBJS)
+
lbs
: $(OBJS)
$(CXX) $(LDFLAGS) -o $@ $^
$(CXX) $(LDFLAGS) -o $@ $^
+
+version : NEWS
+ (git-describe || (head -n1 NEWS | cut -d" " -f1)) >version 2>/dev/null
+$(OBJS) : version
+
+clean :
+ rm -f $(OBJS) lbs version
+
+dep :
+ touch Makefile.dep
+ makedepend -fMakefile.dep $(SRCS)
+
+.PHONY : clean dep
+
+-include *.dep