bin_PROGRAMS = ofxconnect
ofxconnect_LDADD = $(top_builddir)/lib/libofx.la @LIBCURL_LIBS@ @LIBXMLPP_LIBS@
ofxconnect_SOURCES = cmdline.h cmdline.c nodeparser.cpp nodeparser.h ofxpartner.cpp ofxpartner.h ofxconnect.cpp 
dist_man_MANS = ofxconnect.1

AM_CPPFLAGS = \
	-I${top_builddir}/inc \
	@LIBCURL_CFLAGS@ \
	@LIBXMLPP_CFLAGS@ \
	'-DCMDLINE_PARSER_PACKAGE="ofxconnect"'


if USE_GENGETOPT 
CLEANFILES = cmdline.c cmdline.h

cmdline.c cmdline.h: cmdline.ggo Makefile
	gengetopt --unnamed-opts < $<

endif
MAINTAINERCLEANFILES  = cmdline.c cmdline.h

EXTRA_DIST = cmdline.ggo test-privateserver.sh

# See README.privateserver for details on this server and how to get
# the key needed to run this test.
TESTS = test-privateserver.sh 

ofxconnect.1: ofxconnect.cpp $(top_srcdir)/configure.ac
	$(MAKE) $(AM_MAKEFLAGS) ofxconnect$(EXEEXT)
	help2man -n 'Create a statement request file' -N --output=ofxconnect.1 ./ofxconnect$(EXEEXT)
