projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename --name to --scheme, and store the scheme name in the local database.
[cumulus.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
6eb0d67
..
ee00c7d
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)`
+ `pkg-config --cflags $(PACKAGES)`
-DLBS_VERSION=`cat version`
LDFLAGS=$(DEBUG) -ltar `pkg-config --libs $(PACKAGES)`
LDFLAGS=$(DEBUG) -ltar `pkg-config --libs $(PACKAGES)`
-SRCS=
format.cc localdb.cc ref.cc scandir.cc sha1.cc statcache.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 :
+ (git-describe || echo "Unknown") >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