
RS_TOP_DIR = ../..
DHT_TOP_DIR = ../../../../libbitdht/src
OPS_TOP_DIR = ../../../../openpgpsdk/src
##### Define any flags that are needed for this section #######
###############################################################

###############################################################
include $(RS_TOP_DIR)/tests/scripts/config.mk
###############################################################

TESTOBJ =  fitest2.o fisavetest.o searchtest.o #ficachetest.o 
#ficachetest.o 

TESTS =  fitest2 fisavetest searchtest #ficachetest
#ficachetest 

ifeq ($(OS),Linux)
        TESTOBJ += fimontest.o
        TESTS += fimontest
endif


ifeq ($(OS),MacOSX)
        TESTOBJ += fimontest.o
        TESTS += fimontest
endif


all: tests

fitest2 : fitest2.o $(OBJ)
	$(CC) $(CFLAGS) -o fitest2 fitest2.o $(OBJ) $(LIBS)

fisavetest : fisavetest.o $(OBJ)
	$(CC) $(CFLAGS) -o fisavetest fisavetest.o $(OBJ) $(LIBS)

fimontest : fimontest.o $(OBJ)
	$(CC) $(CFLAGS) -o fimontest fimontest.o $(OBJ) $(LIBS)

ficachetest : ficachetest.o $(OBJ)
	$(CC) $(CFLAGS) -o ficachetest ficachetest.o $(OBJ) $(LIBS)

searchtest : searchtest.o $(OBJ)
	$(CC) $(CFLAGS) -o searchtest searchtest.o $(OBJ) $(LIBS)

clobber: rmtestfiles

rmtestfiles:
	$(RM) test.index	

###############################################################
include $(RS_TOP_DIR)/tests/scripts/rules.mk
###############################################################

