X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=Makefile;h=33aa0c3cf76d17eae760ac4cc196983ab3eede55;hb=c7c7041c1b79ffb27647d74a6a345dfcfbf9f190;hp=1822adc7bd27e32b5b6a7595ef5dda08086c2533;hpb=948051f02c9bc3285ce1ea187dbae27120dbf7aa;p=cumulus.git diff --git a/Makefile b/Makefile index 1822adc..33aa0c3 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,18 @@ -CXXFLAGS=-O -Wall -D_FILE_OFFSET_BITS=64 -g -LDFLAGS=-g +PACKAGES=sqlite3 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 localdb.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 +