# Generated automatically from Makefile.in by configure.
TOP = ../..
srcdir = /export/home/thor/thor/common/tests
VPATH = /export/home/thor/thor/common/tests

include $(TOP)/config/Makedefs

CCINCS = -I. -I$(srcdir) -I$(TOP) -I$(srcdir)/$(TOP)
CCCINCS = $(CCINCS)

SPEEDOPTS = -DUSE_MAP -UUSE_HMAP -UUSE_OPENMAP

CCCSRCS = \
    test_array.cc \
    testclient.cc \
    testserver.cc \
    testopenmap.cc \
    testopenset.cc \
    testhash.cc \
    timemap.cc \
    bhash_test.cc \
    hash_speed.cc

TESTS = testarray testclient testserver timemap testopenmap testopenset testhash bhash_test

TARGETS = $(TESTS)

all:

tests: $(TESTS)

../libcommon.a:
	cd ../common; $(MAKE) libcommon.a

testarray: test_array.o ../libcommon.a
	$(CCCLINKER) -o $@ test_array.o ../libcommon.a $(EXTRALIBS)

testclient: testclient.o ../libcommon.a
	$(CCCLINKER) -o $@ testclient.o ../libcommon.a $(EXTRALIBS)

testserver: testserver.o ../libcommon.a
	$(CCCLINKER) -o $@ testserver.o ../libcommon.a $(EXTRALIBS)

testnet: testclient testserver

testopenmap: testopenmap.o ../libcommon.a
	$(CCCLINKER) -o $@ testopenmap.o ../libcommon.a $(EXTRALIBS)

testopenset: testopenset.o ../libcommon.a
	$(CCCLINKER) -o $@ testopenset.o ../libcommon.a $(EXTRALIBS)

testhash: testhash.o ../libcommon.a
	$(CCCLINKER) -o $@ testhash.o ../libcommon.a $(EXTRALIBS)

timemap: timemap.o ../libcommon.a
	$(CCCLINKER) -o $@ timemap.o ../libcommon.a -lm $(EXTRALIBS)

bhash_test: bhash_test.o
	$(CCCLINKER) -o $@ bhash_test.o

hash_speed.o: hash_speed.cc
	$(CCC) $(CCCFLAGS) -c hash_speed.cc $(SPEEDOPTS)
hash_speed: hash_speed.o
	$(CCCLINKER) -o $@ hash_speed.o

depend: $(GENERATED)
