X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=Makefile;h=f29d2a7eee40951debe060566bbc818f647ba4ec;hb=fd58e0c9a15cf28adaf545adc31b3d5531c9f899;hp=8fc6f05700ed4d54587a63df09628a7b21db68e2;hpb=b57ca1c9e3f6fd1e4ea796e82e9863ffab0cb76e;p=cumulus.git diff --git a/Makefile b/Makefile index 8fc6f05..f29d2a7 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,18 @@ -CXXFLAGS=-O -Wall -D_FILE_OFFSET_BITS=64 +PACKAGES=uuid +DEBUG=-g #-pg +CXXFLAGS=-O -Wall -D_FILE_OFFSET_BITS=64 $(DEBUG) \ + `pkg-config --cflags $(PACKAGES)` +LDFLAGS=$(DEBUG) -ltar `pkg-config --libs $(PACKAGES)` -OBJS=scandir.o +SRCS=format.cc ref.cc scandir.cc sha1.cc store.cc +OBJS=$(SRCS:.cc=.o) scandir : $(OBJS) $(CXX) $(LDFLAGS) -o $@ $^ + +dep: + touch Makefile.dep + makedepend -fMakefile.dep $(SRCS) + +-include *.dep +