# set the include path for X, qt and KDE and calendar library
INCLUDES= -I$(top_srcdir) \
          -I$(top_builddir)/libical/src -I$(top_srcdir)/libical/src \
          -I$(top_builddir)/libkdepim $(all_includes)

bin_PROGRAMS = kalarm
kalarm_SOURCES = editdlg.cpp alarmcalendar.cpp daemongui.cpp \
        main.cpp kalarmapp.cpp \
        mainwindowbase.cpp mainwindow.cpp \
	messagewin.cpp msgevent.cpp \
	prefsettings.cpp prefs.cpp prefdlg.cpp \
	traywindow.cpp alarmguiiface.skel \
	recurrenceedit.cpp deferdlg.cpp \
	fontcolour.cpp colourcombo.cpp datetime.cpp buttongroup.cpp \
	alarmlistview.cpp dateedit.cpp spinbox2.cpp
kalarm_LDFLAGS = $(all_libraries) $(KDE_RPATH)
kalarm_LDADD   = $(LIB_KDEUI) $(top_builddir)/libkcal/libkcal.la \
	$(top_builddir)/kalarmd/libkalarmd.la \
	$(top_builddir)/libkdepim/libkdepim.la
noinst_HEADERS = kalarm.h kalarmapp.h mainwindow.h messagewin.h editdlg.h \
	mainwindowbase.h traywindow.h daemongui.h \
	msgevent.h alarmcalendar.h alarmlistview.h datetime.h buttongroup.h \
	recurrenceedit.h deferdlg.h \
	fontcolour.h colourcombo.h \
	dateedit.h spinbox2.h prefs.h prefsettings.h prefdlg.h

METASOURCES = AUTO

SUBDIRS = pixmaps 

alarmguiiface_DIR = $(top_srcdir)/kalarmd

autostart_DATA = kalarm.tray.desktop
autostartdir = $(prefix)/share/autostart

kdelnkdir = $(kde_appsdir)/Utilities/More
kdelnk_DATA = kalarm.desktop

install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(kde_appsdir)/Applications
	$(INSTALL_DATA) $(srcdir)/uninstall.desktop $(DESTDIR)$(kde_appsdir)/Applications/kalarm.desktop

KDE_ICON = AUTO

messages: 
	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) $$LIST -o $(podir)/kalarm.pot; \
	fi

include $(top_srcdir)/admin/Doxyfile.am
