# Rules for the test code (use `make check` to execute) if ENABLE_TESTS TESTS = logintest xmlencodetest connectionhandlertest nodetreetest EXTRA_DIST = \ dgunit.h \ scopedfile.h check_PROGRAMS = $(TESTS) logintest_CXXFLAGS = -DOUTPUT=\"logintest\" \ $(DEBUG_FLAGS) \ -I$(top_srcdir)/src logintest_LDFLAGS = logintest_SOURCES = \ logintest.cc \ dgtest.cc xmlencodetest_CXXFLAGS = -DOUTPUT=\"xmlencodetest\" \ $(DEBUG_FLAGS) \ -I$(top_srcdir)/src xmlencodetest_LDFLAGS = xmlencodetest_SOURCES = \ $(top_srcdir)/src/xml_encode_decode.cc \ xmlencodetest.cc \ dgtest.cc connectionhandlertest_CXXFLAGS = -DOUTPUT=\"connectionhandlertest\" \ $(DEBUG_FLAGS) \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin connectionhandlertest_LDFLAGS = connectionhandlertest_SOURCES = \ $(top_srcdir)/hugin/hugin.c \ $(top_srcdir)/src/connectionhandler.cc \ connectionhandlertest.cc \ dgtest.cc nodetreetest_CXXFLAGS = -DOUTPUT=\"nodetreetest\" \ $(DEBUG_FLAGS) \ -I$(top_srcdir)/src \ -I$(top_srcdir)/hugin \ $(EXPAT_CFLAGS) nodetreetest_LDFLAGS = $(EXPAT_LIBS) nodetreetest_SOURCES = \ $(top_srcdir)/hugin/hugin.c \ $(top_srcdir)/src/nodetree.cc \ $(top_srcdir)/src/xmlparser.cc \ $(top_srcdir)/src/saxparser.cc \ $(top_srcdir)/src/xml_encode_decode.cc \ nodetreetest.cc \ dgtest.cc endif