####### tdevelop will overwrite this part!!! (begin)##########
bin_PROGRAMS = tellico

tellico_SOURCES = borrower.cpp borrowerdialog.cpp \
	borroweritem.cpp calendarhandler.cpp collection.cpp collectionfactory.cpp \
	collectionfieldsdialog.cpp configdialog.cpp controller.cpp detailedentryitem.cpp \
	detailedlistview.cpp document.cpp entry.cpp entryeditdialog.cpp entrygroupitem.cpp \
	entryiconfactory.cpp entryiconview.cpp entryitem.cpp entrymerger.cpp entryupdater.cpp \
	entryview.cpp exportdialog.cpp fetchdialog.cpp fetcherconfigdialog.cpp field.cpp \
	fieldcompletion.cpp filehandler.cpp filter.cpp filterdialog.cpp filteritem.cpp \
	filterview.cpp groupiterator.cpp groupview.cpp image.cpp imagefactory.cpp \
	importdialog.cpp isbnvalidator.cpp iso5426converter.cpp iso6937converter.cpp \
	listviewcomparison.cpp loandialog.cpp loanitem.cpp loanview.cpp main.cpp mainwindow.cpp \
	progressmanager.cpp reportdialog.cpp statusbar.cpp tellico_kernel.cpp tellico_strings.cpp \
	tellico_utils.cpp upcvalidator.cpp viewstack.cpp xmphandler.cpp lccnvalidator.cpp

if !USE_LIBBTPARSE
  LDADD_LIBBTPARSE = ./translators/btparse/libbtparse.a
endif

if ENABLE_WEBCAM
  WEBCAMDIR = barcode
  LDADD_LIBBARCODE = ./barcode/libbarcode.a
endif
SUBDIRS = core gui collections translators fetch tests commands \
	cite newstuff rtf2html $(WEBCAMDIR)

tellico_LDADD = ./core/libcore.a ./cite/libcite.a ./fetch/libfetch.a \
	./collections/libcollections.a ./translators/libtranslators.a \
	./newstuff/libnewstuff.a ./translators/pilotdb/libpilotdb.a \
	./translators/pilotdb/libflatfile/liblibflatfile.a ./gui/libgui.a \
	./translators/pilotdb/libpalm/liblibpalm.a ./rtf2html/librtf2html.a \
	./commands/libcommands.a -lexslt $(LIB_TDEFILE) $(LIB_TDEHTML) $(LIB_TDEUI) $(LIB_TDECORE) $(LIB_QT) \
	$(LIBSOCKET) $(LIBXSLT_LIBS) $(TAGLIB_LIBS) $(KCDDB_LIBS) $(YAZ_LIBS) $(LIB_TDEIO) \
	$(LIB_TDEABC) $(KCAL_LIBS) $(LDADD_LIBBTPARSE) $(LIB_TDENEWSTUFF) $(EXEMPI_LIBS) \
	$(POPPLER_LIBS) $(LDADD_LIBBARCODE) $(LIBXML_LIBS)

EXTRA_DIST = tellicoui.rc tellicorc \
borrowerdialog.cpp          entryiconview.h\
borrowerdialog.h            entryitem.cpp        importdialog.cpp \
borrower.h                  entryitem.h          importdialog.h \
borroweritem.cpp            entryview.cpp        isbnvalidator.cpp \
borroweritem.h              entryview.h          isbnvalidator.h \
loanview.cpp                exportdialog.cpp     \
loanview.h                  exportdialog.h       \
collection.cpp              fetchdialog.cpp      \
collectionfactory.cpp       fetchdialog.h        \
collectionfactory.h         fieldcompletion.cpp  latin1literal.h \
collectionfieldsdialog.h    collectionfieldsdialog.cpp  fieldcompletion.h    \
collection.h                field.h              main.cpp \
configdialog.cpp            mainwindow.cpp \
configdialog.h              mainwindow.h \
controller.cpp              filehandler.cpp      \
controller.h                filehandler.h        \
filter.cpp    				 filterdialog.cpp \
filterdialog.h      		 reportdialog.cpp \
filter.h           			  reportdialog.h \
filteritem.cpp       \
filteritem.h         \
detailedlistview.h 			detailedlistview.cpp \
document.cpp                tellico_kernel.cpp \
document.h                  tellico_kernel.h \
entry.cpp                   groupview.cpp        tellico_strings.cpp \
entryeditdialog.cpp         groupview.h          tellico_strings.h \
entryeditdialog.h           image.cpp            tellico_utils.cpp \
entrygroupitem.cpp          imagefactory.cpp     tellico_utils.h \
entrygroupitem.h            imagefactory.h       viewstack.cpp \
entry.h                     image.h              viewstack.h \
entryiconview.cpp           loandialog.h \
loandialog.cpp ptrvector.h borrower.cpp datavectors.h \
calendarhandler.h calendarhandler.cpp \
loanitem.h loanitem.cpp groupiterator.h groupiterator.cpp \
stringset.h observer.h filterview.h filterview.cpp \
entryiconfactory.h entryiconfactory.cpp \
tellico_debug.h \
entryupdater.h entryupdater.cpp \
detailedentryitem.h detailedentryitem.cpp \
statusbar.h statusbar.cpp \
progressmanager.h progressmanager.cpp \
upcvalidator.h upcvalidator.cpp \
fetcherconfigdialog.h fetcherconfigdialog.cpp \
iso5426converter.h iso5426converter.cpp \
iso6937converter.h iso6937converter.cpp \
tellico_map.h \
listviewcomparison.h listviewcomparison.cpp \
entrymerger.h entrymerger.cpp \
xmphandler.h xmphandler.cpp \
lccnvalidator.h lccnvalidator.cpp

####### tdevelop will overwrite this part!!! (end)############
# These paths are KDE specific. Use them:
# kde_appsdir         Where your application's menu entry (.desktop) should go to.
# kde_icondir         Where your icon should go to - better use KDE_ICON.
# kde_sounddir        Where your sounds should go to.
# kde_htmldir         Where your docs should go to. (contains lang subdirs)
# kde_datadir         Where you install application data. (Use a subdir)
# kde_locale          Where translation files should go to. (contains lang subdirs)
# kde_cgidir          Where cgi-bin executables should go to.
# kde_confdir         Where config files should go to (system-wide ones with default values).
# kde_mimedir         Where mimetypes .desktop files should go to.
# kde_servicesdir     Where services .desktop files should go to.
# kde_servicetypesdir Where servicetypes .desktop files should go to.
# kde_toolbardir      Where general toolbar icons should go to (deprecated, use KDE_ICON).
# kde_wallpaperdir    Where general wallpapers should go to.
# kde_templatesdir    Where templates for the "New" menu (Konqueror/KDesktop) should go to.
# kde_bindir          Where executables should go to. Use bin_PROGRAMS or bin_SCRIPTS.
# kde_libdir          Where shared libraries should go to. Use lib_LTLIBRARIES.
# kde_moduledir       Where modules (e.g. parts) should go to. Use kde_module_LTLIBRARIES.
# kde_styledir        Where Qt/KDE widget styles should go to (new in KDE 3).
# kde_designerdir     Where Qt Designer plugins should go to (new in KDE 3).

# set the include path for X, qt and KDE
AM_CPPFLAGS = $(all_includes) \
 $(LIBXML_CFLAGS) \
 $(LIBXSLT_CFLAGS) \
 $(EXEMPI_CFLAGS)

METASOURCES = AUTO

KDE_OPTIONS = noautodist

CLEANFILES = *~ *.loT

# the library search path.
tellico_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor $(LIB_TDEPARTS)

uidir = $(kde_datadir)/tellico
ui_DATA = tellicoui.rc

rcdir = $(kde_confdir)
rc_DATA = tellicorc

messages: rc.cpp
	@ touch $(podir)/tellico.pot;
	LIST=`find . -name \*.h -o -name \*.hh -o -name \*.H -o -name \*.hxx -o -name \*.hpp -o -name \*.cpp -o -name \*.cc -o -name \*.cxx -o -name \*.ecpp -o -name \*.C`; \
        if test -n "$$LIST"; then \
          $(XGETTEXT) --join-existing --add-comments="TRANSLATORS:" $$LIST -o $(podir)/tellico.pot; \
        fi

#include ../admin/Doxyfile.am
