projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Place expired and repacked objects into segments based on database.
[cumulus.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
33aa0c3
..
854be80
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,18
+1,26
@@
PACKAGES=sqlite3 uuid
DEBUG=-g #-pg
CXXFLAGS=-O -Wall -D_FILE_OFFSET_BITS=64 $(DEBUG) \
PACKAGES=sqlite3 uuid
DEBUG=-g #-pg
CXXFLAGS=-O -Wall -D_FILE_OFFSET_BITS=64 $(DEBUG) \
- `pkg-config --cflags $(PACKAGES)`
-LDFLAGS=$(DEBUG)
-ltar
`pkg-config --libs $(PACKAGES)`
+ `pkg-config --cflags $(PACKAGES)`
-DLBS_VERSION=`cat version`
+LDFLAGS=$(DEBUG) `pkg-config --libs $(PACKAGES)`
-SRCS=
format.cc localdb.cc ref.cc scandir.cc sha1.cc store
.cc
+SRCS=
localdb.cc ref.cc scandir.cc sha1.cc statcache.cc store.cc util
.cc
OBJS=$(SRCS:.cc=.o)
OBJS=$(SRCS:.cc=.o)
-
scandir
: $(OBJS)
+
lbs
: $(OBJS)
$(CXX) $(LDFLAGS) -o $@ $^
$(CXX) $(LDFLAGS) -o $@ $^
-dep:
+version : NEWS
+ (git-describe || (head -n1 NEWS | cut -d" " -f1)) >version
+$(OBJS) : version
+
+clean :
+ rm -f $(OBJS) lbs version
+
+dep :
touch Makefile.dep
makedepend -fMakefile.dep $(SRCS)
touch Makefile.dep
makedepend -fMakefile.dep $(SRCS)
-
-include *.
dep
+
.PHONY : clean
dep
+-include *.dep