# Makefile for Icinga tests

CP=@CP@
CC=@CC@
CFLAGS=@CFLAGS@ @DEFS@

###############################
# Debug
###############################
ENABLE_DEBUG=@ENABLE_DEBUG@

# Compiler flags for use with Valgrind - set when debug is enabled
ifeq ('$(ENABLE_DEBUG)', 'yes')
        CFLAGS+=-O0 -g
endif

all:

test:
	@perl -I. -MTest::Harness -e '$$Test::Harness::verbose=1; runtests @ARGV;' *.t

clean:
	rm -f tests.log

distclean: clean
	rm -f Makefile
