# $Id: Makefile.am 27552 2008-08-25 02:45:04Z kelnos $

INCLUDES = \
	-I${top_srcdir} \
	-DDATADIR=\"$(datadir)\" \
	-DSRCDIR=\"$(top_srcdir)\" \
	-DLOCALEDIR=\"$(localedir)\" \
	-DG_LOG_DOMAIN=\"xfce4-mouse-settings\" \
	$(PLATFORM_CPPFLAGS)

bin_PROGRAMS = \
	xfce4-mouse-settings

xfce4_mouse_settings_SOURCES = \
	main.c \
	mouse-dialog_glade.h

xfce4_mouse_settings_CFLAGS = \
	$(GTK_CFLAGS) \
	$(GLIB_CFLAGS) \
	$(GLADE_CFLAGS) \
	$(LIBXFCEGUI4_CFLAGS) \
	$(XFCONF_CFLAGS) \
	$(XI_CFLAGS) \
	$(XFCONF_CFLAGS)

xfce4_mouse_settings_LDFLAGS = \
	-no-undefined \
	$(PLATFORM_LDFLAGS)

xfce4_mouse_settings_LDADD = \
	$(GTK_LIBS) \
	$(GLIB_LIBS) \
	$(GLADE_LIBS) \
	$(LIBXFCEGUI4_LIBS) \
	$(XFCONF_LIBS) \
	$(XI_LIBS)

if HAVE_XCURSOR
xfce4_mouse_settings_CFLAGS += \
	$(XCURSOR_CFLAGS)

xfce4_mouse_settings_LDADD += \
	$(XCURSOR_LIBS)
endif

if MAINTAINER_MODE

BUILT_SOURCES = \
	mouse-dialog_glade.h

mouse-dialog_glade.h: mouse-dialog.glade
	exo-csource --static --strip-comments --strip-content --name=mouse_dialog_glade $< >$@

endif

desktopdir = $(datadir)/applications
desktop_in_files = xfce-mouse-settings.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)

@INTLTOOL_DESKTOP_RULE@

EXTRA_DIST = \
	$(desktop_in_files) \
	mouse-dialog.glade

DISTCLEANFILES = \
	$(desktop_DATA)

# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
