MEMDBTEST_OBJ = memdbtest.o
MEMDBTEST_ALL_OBJS = $(MEMDBTEST_OBJ) ../memdb.o

# Let's use AVL for the memory DB
#
USE_AVL = 1

# Use hashes to optimize key comparisons
#
USE_HASHOPT = 1

CFLAGS  = -I.. -I. -Wall -Os
CFLAGS += -DMINE_VERSION=\"$(MINE_VER)\" -ggdb
ifeq ($(USE_AVL), 1)
  CFLAGS   += -DUSE_AVL=1
  MEMDBTEST_ALL_OBJS += ../avl.o
endif
ifeq ($(USE_HASHOPT), 1)
  CFLAGS   += -DUSE_HASHOPT=1
endif
CC = gcc
AR = ar
RANLIB = ranlib

targets = memdbtest

# Set This options when cross-compiling
#
CONFOPT =
BUILDCC = $(CC)

all: $(targets)

memdbtest: $(MEMDBTEST_OBJ)
	$(CC) $(MEMDBTEST_ALL_OBJS) -o memdbtest


$(MEMDBTEST_OBJ): ../memdb.o ../avl.o


clean:
	@rm -vf *.o memdbtest core

