2013-04-16 23:57:39 -04:00
|
|
|
BDB = 4_6
|
2013-04-16 23:57:25 -04:00
|
|
|
BDBDIR = ../../../berkeleydb
|
2007-11-15 14:09:40 +00:00
|
|
|
MYSQL_H = -I$(BDBDIR)/db-4.1.25/build_unix/
|
2008-07-09 13:27:55 +00:00
|
|
|
OPTFLAGS = -O2
|
2013-04-16 23:58:57 -04:00
|
|
|
ifeq ($(GCCVERSION),4.4.2)
|
|
|
|
GCC_VERSION_SPECIFIC_WARNINGS = -Wno-strict-aliasing -Wno-deprecated
|
2013-04-16 23:59:10 -04:00
|
|
|
else ifeq ($(GCCVERSION),4.4.1)
|
|
|
|
GCC_VERSION_SPECIFIC_WARNINGS = -Wno-strict-aliasing -Wno-deprecated
|
2013-04-16 23:58:57 -04:00
|
|
|
endif
|
|
|
|
CFLAGS = $(GCC_VERSION_SPECIFIC_WARNINGS) -Wall -W -Werror -g $(OPTFLAGS)
|
|
|
|
CPPFLAGS = -I. -I../toku_include
|
2007-11-15 14:09:40 +00:00
|
|
|
|
2013-04-17 00:00:12 -04:00
|
|
|
ifeq ($(CC),icc)
|
|
|
|
CFLAGS += -diag-disable 188
|
|
|
|
endif
|
|
|
|
|
2013-04-17 00:00:12 -04:00
|
|
|
default: ../include/db.h
|
2007-12-03 18:44:41 +00:00
|
|
|
|
2013-04-17 00:00:12 -04:00
|
|
|
../include/db.h: make_tdb
|
|
|
|
./make_tdb > $@
|
2007-10-14 13:56:25 +00:00
|
|
|
|
2013-04-17 00:00:12 -04:00
|
|
|
hfiles: tdb.h
|
2007-09-05 17:47:14 +00:00
|
|
|
|
2007-10-14 12:47:32 +00:00
|
|
|
clean:
|
2013-04-17 00:00:14 -04:00
|
|
|
rm -f *.o make_tdb
|