## Makefile.am for kmobile

SUBDIRS = . devices		# tdeioslave

bin_PROGRAMS = kmobile

lib_LTLIBRARIES = libkmobiledevice.la libkmobileclient.la

INCLUDES         = $(all_includes)

kmobile_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_TQT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
kmobile_LDADD   = $(LIB_TDEFILE) $(LIB_TDEABC) libkmobiledevice.la
kmobile_SOURCES = main.cpp kmobile.cpp kmobileview.cpp kmobileitem.cpp\
			pref.cpp kmobileiface.skel kmobile_selectiondialog.ui \
			systemtray.cpp

KDE_ICON = kmobile

noinst_HEADERS = kmobile.h kmobileview.h kmobileitem.h pref.h

# the low-level devices driver library
libkmobiledevice_la_SOURCES = kmobiledevice.cpp
libkmobiledevice_la_LDFLAGS = $(all_libraries) -no-undefined -avoid-version
libkmobiledevice_la_LIBADD = $(LIB_TDEABC) ../libkcal/libkcal.la

# the KDE application's client library to KMobile
libkmobileclient_la_SOURCES = kmobileclient.cpp
libkmobileclient_la_LDFLAGS = $(all_libraries) -no-undefined -avoid-version
libkmobileclient_la_LIBADD = $(LIB_TDECORE) -lDCOP

EXTRA_PROGRAMS = testlibkmobile
testlibkmobile_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_TQT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
testlibkmobile_LDADD = libkmobileclient.la
testlibkmobile_SOURCES = testlibkmobile.cpp

# the servicetype for mobile devices
kde_servicetypes_DATA = libkmobile.desktop

METASOURCES = AUTO

xdg_apps_DATA = kmobile.desktop

rc_DATA = kmobileui.rc
rcdir = $(kde_datadir)/kmobile

messages: rc.cpp
	$(XGETTEXT) *.cpp -o $(podir)/kmobile.pot