SUBDIRS = macrotool

bin_PROGRAMS = pracrod

pracrod_LDADD = $(LD_EFENCE) $(PQXX_LIBS) $(CONFIG_LIBS) \
	$(LUA_LIBS) $(HTTPD_LIBS) $(PTHREAD_LIBS) \
	$(EXPAT_LIBS) $(ATF_LIBS)

pracrod_CXXFLAGS = $(PQXX_CXXFLAGS) $(CONFIG_CXXFLAGS) \
	$(LUA_CFLAGS) $(HTTPD_CFLAGS) $(EXPAT_CFLAGS) \
	$(PTHREAD_CFLAGS) $(ATF_CFLAGS)

pracrod_SOURCES = \
	pracrod.cc \
	artefact.cc \
	daemon.cc \
	database.cc \
	configuration.cc \
	configurationparser.cc \
	connection.cc \
	connectionpool.cc \
	debug.cc \
	entitylist.cc \
	environment.cc \
	exception.cc \
	httpd.cc \
	inotify.cc \
	journal_commit.cc \
	journal.cc \
	journal_uploadserver.cc \
	log.cc \
	luaquerymapper.cc \
	luaresume.cc \
	luautil.cc \
	macroheaderparser.cc \
	macrolist.cc \
	macroparser.cc \
	mutex.cc \
	pracrodao.cc \
	pracrodaopgsql.cc \
	pracrodaotest.cc \
	queryhandlerpentominos.cc \
	queryhandlerpracro.cc \
	queryparser.cc \
	resumeparser.cc \
	saxparser.cc \
	semaphore.cc \
	server.cc \
	session.cc \
	sessionparser.cc \
	sessionserialiser.cc \
	templatelist.cc \
	templateheaderparser.cc \
	templateparser.cc \
	transactionhandler.cc \
	transactionparser.cc \
	tcpsocket.cc \
	utf8.cc \
	versionstr.cc \
	widgetvalue.cc \
	widgetgenerator.cc \
	xml_encode_decode.cc

EXTRA_DIST = \
	artefact.h \
	configuration.h \
	configurationparser.h \
	connection.h \
	connectionpool.h \
	daemon.h \
	database.h \
	dbtypes.h \
	debug.h \
	environment.h \
	entitylist.h \
	exception.h \
	httpd.h \
	inotify.h \
	journal_commit.h \
	journal.h \
	journal_uploadserver.h \
	log.h \
	luaquerymapper.h \
	luaresume.h \
	luautil.h \
	macroheaderparser.h \
	macrolist.h \
	macroparser.h \
	mutex.h \
	pracrodao.h \
	pracrodaopgsql.h \
	pracrodaotest.h \
	queryhandler.h \
	queryhandlerpentominos.h \
	queryhandlerpracro.h \
	queryparser.h \
	resumeparser.h \
	saxparser.h \
	semaphore.h \
	server.h \
	session.h \
	sessionparser.h \
	sessionserialiser.h \
	templatelist.h \
	templateheaderparser.h \
	templateparser.h \
	transactionhandler.h \
	transactionparser.h \
	tcpsocket.h \
	utf8.h \
	versionstr.h \
	widgetvalue.h \
	widgetgenerator.h \
	xml_encode_decode.h

################
# Test Section #
################

TEST_SOURCE_DEPS = ${pracrod_SOURCES} ${EXTRA_DIST}
TEST_SCRIPT_DIR = $(top_srcdir)/../tools

include ${TEST_SCRIPT_DIR}/Makefile.am.test

include Makefile.am.test