# makefile for building a validator test program; see
# https://github.com/BOINC/boinc/wiki/ValidationSimple

# the object file containing result_init() etc. - replace with your own
VALIDATOR_SRC = sample_bitwise_validator.cpp

# where libmysqlclient is
MYSQL_LIB := $(shell mysql_config --libs)
MYSQL_INC := $(shell mysql_config --include)

validator_test: validator_test.cpp $(VALIDATOR_SRC) makefile_validator_test
	g++ -g -I.. -I../lib -I../db $(MYSQL_INC) -o validator_test validator_test.cpp $(VALIDATOR_SRC) validate_util.o -L . -lsched -L ../lib -lboinc $(MYSQL_LIB)
