bin_PROGRAMS = pracrod macrotool pracrod_LDADD = $(LD_EFENCE) $(PQXX_LIBS) $(CONFIG_LIBS) $(LUA_LIBS) -lpthread pracrod_CXXFLAGS = $(PQXX_CXXFLAGS) $(CONFIG_CXXFLAGS) $(LUA_CXXFLAGS) pracrod_SOURCES = \ pracrod.cc \ daemon.cc \ database.cc \ configuration.cc \ configurationparser.cc \ debug.cc \ exception.cc \ queryhandlerpentominos.cc \ queryhandlerpracro.cc \ queryparser.cc \ journal_commit.cc \ log.cc \ luaquerymapper.cc \ luaresume.cc \ macroheaderparser.cc \ macrolist.cc \ macroparser.cc \ pracrodao.cc \ pracrodaopgsql.cc \ resumeparser.cc \ saxparser.cc \ server.cc \ templateparser.cc \ transactionparser.cc \ tcpsocket.cc \ utf8.cc \ versionstr.cc \ widgetgenerator.cc \ xml_encode_decode.cc macrotool_LDADD = $(LD_EFENCE) $(PQXX_LIBS) $(CONFIG_LIBS) $(LUA_LIBS) -lpthread macrotool_CXXFLAGS = $(PQXX_CXXFLAGS) $(CONFIG_CXXFLAGS) $(LUA_CXXFLAGS) macrotool_SOURCES = \ macrotool.cc \ debug.cc \ configuration.cc \ configurationparser.cc \ database.cc \ exception.cc \ log.cc \ macroheaderparser.cc \ macrolist.cc \ macroparser.cc \ macrotool_dump.cc \ macrotool_fieldnames.cc \ macrotool_filehandler.cc \ macrotool_util.cc \ pracrodao.cc \ pracrodaopgsql.cc \ saxparser.cc \ templateparser.cc \ versionstr.cc EXTRA_DIST = \ configuration.h \ configurationparser.h \ daemon.h \ database.h \ dbtypes.h \ debug.h \ exception.h \ queryhandler.h \ queryhandlerpentominos.h \ queryhandlerpracro.h \ queryparser.h \ journal_commit.h \ log.h \ luaquerymapper.h \ luaresume.h \ macroheaderparser.h \ macrolist.h \ macroparser.h \ macrotool_dump.h \ macrotool_fieldnames.h \ macrotool_filehandler.h \ macrotool_util.h \ pracrodao.h \ pracrodaopgsql.h \ resumeparser.h \ saxparser.h \ server.h \ templateparser.h \ transactionparser.h \ tcpsocket.h \ utf8.h \ versionstr.h \ widgetgenerator.h \ xml_encode_decode.h ################ # Test Section # ################ TESTFILES = \ test_versionstr \ test_macrolist \ test_queryhandlerpentominos \ test_queryhandlerpracro \ test_queryparser \ test_luaquerymapper \ test_templateparser \ test_server \ test_pracrodaopgsql \ test_macroparser \ test_xml_encode_decode \ test_journal_commit TESTLOGS = `for F in ${TESTFILES}; do echo $$F.log; done` BASICFILES = exception.cc log.cc debug.cc configuration.cc utf8.cc BASICFLAGS = -I.. -DHAVE_CONFIG_H PARSERFILES = saxparser.cc PARSERFLAGS = -lexpat DBFILES = database.cc pracrodao.cc pracrodaopgsql.cc DBFLAGS = $(PQXX_LIBS) $(PQXX_CXXFLAGS) test: $(TESTFILES) @echo "All tests done." test_clean: rm -f $(TESTFILES) TEST_VERSIONSTR_FILES = \ versionstr.cc \ $(BASICFILES) test_versionstr: $(TEST_VERSIONSTR_FILES) @../../tools/test $(TEST_VERSIONSTR_FILES) $(BASICFLAGS) TEST_MACROLIST_FILES = \ macrolist.cc \ versionstr.cc \ macroheaderparser.cc \ $(PARSERFILES) \ $(BASICFILES) test_macrolist: $(TEST_MACROLIST_FILES) @../../tools/test $(TEST_MACROLIST_FILES) $(PARSERFLAGS) $(BASICFLAGS) TEST_QUERYHANDLERPENTOMINOS_FILES = \ queryhandlerpentominos.cc \ tcpsocket.cc \ queryparser.cc \ $(PARSERFILES) \ $(BASICFILES) test_queryhandlerpentominos: $(TEST_QUERYHANDLERPENTOMINOS_FILES) @../../tools/test $(TEST_QUERYHANDLERPENTOMINOS_FILES) $(PARSERFLAGS) $(BASICFLAGS) TEST_QUERYHANDLERPRACRO_FILES = \ queryhandlerpracro.cc \ tcpsocket.cc \ queryparser.cc \ $(DBFILES) \ $(PARSERFILES) \ $(BASICFILES) test_queryhandlerpracro: $(TEST_QUERYHANDLERPRACRO_FILES) @../../tools/test $(TEST_QUERYHANDLERPRACRO_FILES) $(DBFLAGS) $(PARSERFLAGS) $(BASICFLAGS) TEST_QUERYPARSER_FILES = \ queryparser.cc \ queryhandlerpentominos.cc \ tcpsocket.cc \ $(BASICFILES) \ $(PARSERFILES) test_queryparser: $(TEST_QUERYPARSER_FILES) @../../tools/test $(TEST_QUERYPARSER_FILES) $(BASICFLAGS) $(PARSERFLAGS) TEST_LUAQUERMAPPER_FILES = \ luaquerymapper.cc \ queryparser.cc \ queryhandlerpentominos.cc \ tcpsocket.cc \ $(BASICFILES) \ $(PARSERFILES) test_luaquerymapper: $(TEST_LUAQUERMAPPER_FILES) @../../tools/test $(TEST_LUAQUERMAPPER_FILES) $(LUA_LIBS) $(BASICFLAGS) $(PARSERFLAGS) TEST_TEMPLATEPARSER_FILES = \ templateparser.cc \ $(PARSERFILES) \ $(BASICFILES) test_templateparser: $(TEST_TEMPLATEPARSER_FILES) @../../tools/test $(TEST_TEMPLATEPARSER_FILES) $(BASICFLAGS) $(PARSERFLAGS) TEST_MACROPARSER_FILES = \ macroparser.cc \ $(PARSERFILES) \ $(BASICFILES) test_macroparser: $(TEST_MACROPARSER_FILES) @../../tools/test $(TEST_MACROPARSER_FILES) $(BASICFLAGS) $(PARSERFLAGS) TEST_SERVER_FILES = \ server.cc \ templateparser.cc \ queryparser.cc \ queryhandlerpentominos.cc \ journal_commit.cc \ macrolist.cc \ queryhandlerpracro.cc \ macroheaderparser.cc \ versionstr.cc \ resumeparser.cc \ luaquerymapper.cc \ tcpsocket.cc \ transactionparser.cc \ widgetgenerator.cc \ database.cc \ pracrodao.cc \ pracrodaopgsql.cc \ luaresume.cc \ macroparser.cc \ xml_encode_decode.cc \ $(PARSERFILES) \ $(BASICFILES) test_server: $(TEST_SERVER_FILES) @../../tools/test $(TEST_SERVER_FILES) $(BASICFLAGS) $(LUA_LIBS) $(DBFLAGS) $(PARSERFLAGS) @sleep 1s; killall -9 test_server TEST_PRACRODAOPGSQL_FILES = \ pracrodaopgsql.cc \ pracrodao.cc \ $(BASICFILES) test_pracrodaopgsql: $(TEST_PRACRODAOPGSQL_FILES) @../../tools/test $(TEST_PRACRODAOPGSQL_FILES) $(DBFLAGS) $(BASICFLAGS) TEST_XMLENCODEDECODE_FILES = \ xml_encode_decode.cc test_xml_encode_decode: $(TEST_XMLENCODEDECODE_FILES) @../../tools/test $(TEST_XMLENCODEDECODE_FILES) TEST_JOURNALCOMMIT_FILES = \ journal_commit.cc \ templateparser.cc \ $(PARSERFILES) \ $(BASICFILES) test_journal_commit: $(TEST_JOURNALCOMMIT_FILES) @../../tools/test $(TEST_JOURNALCOMMIT_FILES) $(PARSERFLAGS) $(BASICFLAGS) CLEANFILES = $(TESTFILES) $(TESTLOGS) *~