X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=Makefile;h=f29d2a7eee40951debe060566bbc818f647ba4ec;hb=fd58e0c9a15cf28adaf545adc31b3d5531c9f899;hp=d2221fb7ff74eba97aabcb4fe79fa16727892a6f;hpb=ce15b42a3385cb50dab7f8a58bf310ba5a57958e;p=cumulus.git diff --git a/Makefile b/Makefile index d2221fb..f29d2a7 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,18 @@ -CXXFLAGS=-O -Wall +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 +