$NetBSD: patch-aa,v 1.1.1.1 2007/11/10 11:33:00 agc Exp $ --- Build/makefile.init 2007/10/01 11:20:34 1.1 +++ Build/makefile.init 2007/10/01 11:24:09 @@ -1,10 +1,11 @@ CC:=$(WTF) g++ CSTORE_INCLUDE := src -SLEEPYCAT_DIRECTORY := /usr/local/BerkeleyDB.4.2 -SLEEPYCAT_INCLUDE := $(SLEEPYCAT_DIRECTORY)/include/ +SLEEPYCAT_DIRECTORY := @PREFIX@ +SLEEPYCAT_INCLUDE := $(SLEEPYCAT_DIRECTORY)/include/db4 SLEEPYCAT_LIB := $(SLEEPYCAT_DIRECTORY)/lib -LZO_LIB := /home/dna/huff/lzo-1.08/src/.libs +LZO_INCLUDE := @PREFIX@/include/lzo +LZO_LIB := @PREFIX@/lib CFLAGS := -O0 -g3 -Wall -c -Wno-deprecated -fmessage-length=0 #override CFLAGS with optimization flags if so desired @@ -17,10 +18,10 @@ endif RULEFLAGS := -MM -MG -P -w -IFLAGS := -I$(SLEEPYCAT_INCLUDE) -I$(CSTORE_INCLUDE) -LFLAGS := -L$(SLEEPYCAT_LIB) -L$(LZO_LIB) +IFLAGS := -I$(SLEEPYCAT_INCLUDE) -I$(CSTORE_INCLUDE) -I$(LZO_INCLUDE) +LFLAGS := -L$(SLEEPYCAT_LIB) -L$(LZO_LIB) -Wl,-R$(SLEEPYCAT_LIB) -Wl,-R$(LZO_LIB) OPTS := -Wl,--demangle -LIBS := -ldb-4.2 -ldb_cxx-4.2 -lpthread -llzo +LIBS := -ldb4-4.5 -ldb4_cxx-4.5 -lpthread -llzo2 #override OPTS with gprof flags ifdef __CSTORE_GPROF__ OPTS := -pg -Wl,--demangle