X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=Makefile;h=f29d2a7eee40951debe060566bbc818f647ba4ec;hb=6ac0cb32a08c81ddb87cd3a1373e8e64e8757534;hp=45fb135aea34c438052c243788182acd6e5e270b;hpb=38c66f088ed65d2f42264c92add6e0b33eac2bfc;p=cumulus.git diff --git a/Makefile b/Makefile index 45fb135..f29d2a7 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,18 @@ -CXXFLAGS=-O -Wall -D_FILE_OFFSET_BITS=64 -g -LDFLAGS=-g +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 store.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 +