bin_PROGRAMS = pracrod 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 \ queryhandler.cc \ queryparser.cc \ journal_commit.cc \ log.cc \ luaquerymapper.cc \ luaresume.cc \ macroparser.cc \ resumeparser.cc \ saxparser.cc \ server.cc \ templateparser.cc \ transactionparser.cc \ tcpsocket.cc \ widgetgenerator.cc \ xml_encode_decode.cc EXTRA_DIST = \ configuration.h \ configurationparser.h \ daemon.h \ database.h \ debug.h \ exception.h \ queryhandler.h \ queryparser.h \ journal_commit.h \ log.h \ luaquerymapper.h \ luaresume.h \ macroparser.h \ resumeparser.h \ saxparser.h \ server.h \ templateparser.h \ transactionparser.h \ tcpsocket.h \ widgetgenerator.h \ xml_encode_decode.h TESTFILES = \ test_formattools \ test_queryhandler \ test_queryparser \ test_luaquerymapper \ test_templateparser \ test_server \ test_database \ test_macroparser \ test_xml_encode_decode \ test_mltokenizer TESTLOGS = `for F in ${TESTFILES}; do echo $$F.log; done` test: $(TESTFILES) @echo "All tests done." test_clean: rm -f $(TESTFILES) test_mltokenizer: mltokenizer.cc @../../tools/test mltokenizer.cc test_formattools: formattools.cc luaformatmapper.cc luaformatmapperutils.cc mltokenizer.cc @../../tools/test formattools.cc luaformatmapper.cc mltokenizer.cc luaformatmapperutils.cc exception.cc log.cc $(LUA_LIBS) test_queryhandler: queryhandler.cc @../../tools/test queryhandler.cc tcpsocket.cc exception.cc log.cc test_queryparser: queryparser.cc @../../tools/test queryparser.cc queryhandler.cc tcpsocket.cc exception.cc log.cc saxparser.cc -lexpat test_luaquerymapper: luaquerymapper.cc @../../tools/test luaquerymapper.cc queryparser.cc queryhandler.cc tcpsocket.cc exception.cc log.cc saxparser.cc -lexpat $(LUA_LIBS) test_templateparser: templateparser.cc @../../tools/test templateparser.cc saxparser.cc exception.cc log.cc -lexpat -DXML="\"../xml\"" test_macroparser: macroparser.cc @../../tools/test macroparser.cc saxparser.cc exception.cc log.cc -lexpat -DXML="\"../xml\"" test_server: server.cc @../../tools/test server.cc templateparser.cc saxparser.cc queryparser.cc queryhandler.cc luaquerymapper.cc tcpsocket.cc exception.cc log.cc configuration.cc transactionparser.cc widgetgenerator.cc database.cc macroparser.cc xml_encode_decode.cc -lexpat $(LUA_LIBS) $(CONFIG_LIBS) $(PQXX_LIBS) $(PQXX_CXXFLAGS) -DXML="\"../xml\"" #killall -9 test_server test_database: database.cc @../../tools/test database.cc $(PQXX_LIBS) $(PQXX_CXXFLAGS) -I.. test_xml_encode_decode: xml_encode_decode.cc @../../tools/test xml_encode_decode.cc CLEANFILES = $(TESTFILES) $(TESTLOGS) *~