X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=Makefile;h=f29d2a7eee40951debe060566bbc818f647ba4ec;hb=3cfc1643082e60fea72539033b7adb094d236b0a;hp=1822adc7bd27e32b5b6a7595ef5dda08086c2533;hpb=948051f02c9bc3285ce1ea187dbae27120dbf7aa;p=cumulus.git diff --git a/Makefile b/Makefile index 1822adc..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 sha1.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 +