2017-05-24 10:17:46 +10:00
|
|
|
noinst_PROGRAMS = ptraccel-debug
|
2017-05-25 10:12:26 +10:00
|
|
|
bin_PROGRAMS = libinput
|
|
|
|
|
toolsdir = $(libexecdir)/libinput
|
|
|
|
|
tools_PROGRAMS =
|
|
|
|
|
bin_SCRIPTS = libinput-list-devices.compat libinput-debug-events.compat
|
2017-05-25 15:47:19 +10:00
|
|
|
noinst_LTLIBRARIES = libshared.la
|
2014-01-28 11:25:40 +10:00
|
|
|
|
2014-06-03 07:51:37 +10:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include \
|
2015-04-30 14:02:30 +10:00
|
|
|
-I$(top_srcdir)/src \
|
2017-05-25 10:12:26 +10:00
|
|
|
-I$(top_builddir)/src # for libinput-version.h
|
2016-12-05 20:29:51 +10:00
|
|
|
AM_CFLAGS = $(GCC_CFLAGS)
|
|
|
|
|
AM_CXXFLAGS = $(GCC_CXXFLAGS)
|
2014-12-18 14:42:42 +10:00
|
|
|
|
2017-05-25 15:47:19 +10:00
|
|
|
libshared_la_SOURCES = \
|
|
|
|
|
shared.c \
|
|
|
|
|
shared.h
|
2017-06-06 17:54:18 +10:00
|
|
|
libshared_la_CFLAGS = $(AM_CFLAGS) $(LIBEVDEV_CFLAGS) $(LIBUDEV_CFLAGS) \
|
2017-05-23 15:07:31 +10:00
|
|
|
-DLIBINPUT_TOOL_PATH="\"@libexecdir@/libinput\""
|
2017-06-06 17:54:18 +10:00
|
|
|
libshared_la_LIBADD = $(LIBEVDEV_LIBS) $(LIBUDEV_LIBS) ../src/libinput.la
|
2014-12-18 14:42:42 +10:00
|
|
|
|
2015-04-10 15:37:15 +10:00
|
|
|
ptraccel_debug_SOURCES = ptraccel-debug.c
|
2016-06-21 15:20:08 +10:00
|
|
|
ptraccel_debug_LDADD = ../src/libfilter.la ../src/libinput.la
|
2015-04-10 15:37:15 +10:00
|
|
|
ptraccel_debug_LDFLAGS = -no-install
|
|
|
|
|
|
2017-05-25 16:07:14 +10:00
|
|
|
libinput_SOURCES = libinput-tool.c
|
2017-05-25 15:47:19 +10:00
|
|
|
libinput_LDADD = ../src/libinput.la libshared.la $(LIBUDEV_LIBS) $(LIBEVDEV_LIBS)
|
2017-05-23 15:07:31 +10:00
|
|
|
libinput_CFLAGS = $(AM_CFLAGS) $(LIBUDEV_CFLAGS) $(LIBEVDEV_CFLAGS)
|
2017-05-25 10:12:26 +10:00
|
|
|
dist_man1_MANS = libinput.1
|
|
|
|
|
|
|
|
|
|
tools_PROGRAMS += libinput-list-devices
|
2017-05-12 13:26:05 +10:00
|
|
|
libinput_list_devices_SOURCES = libinput-list-devices.c $(shared_sources)
|
2017-05-25 15:47:19 +10:00
|
|
|
libinput_list_devices_LDADD = ../src/libinput.la libshared.la $(LIBUDEV_LIBS) $(LIBEVDEV_LIBS)
|
2017-05-25 10:12:26 +10:00
|
|
|
libinput_list_devices_CFLAGS = $(AM_CFLAGS) $(LIBUDEV_CFLAGS) $(LIBEVDEV_CFLAGS)
|
|
|
|
|
dist_man1_MANS += libinput-list-devices.1
|
2015-04-15 11:44:54 +10:00
|
|
|
|
2017-05-25 10:12:26 +10:00
|
|
|
tools_PROGRAMS += libinput-debug-events
|
2017-05-24 10:17:46 +10:00
|
|
|
libinput_debug_events_SOURCES = libinput-debug-events.c $(shared_sources)
|
2017-05-25 15:47:19 +10:00
|
|
|
libinput_debug_events_LDADD = ../src/libinput.la libshared.la $(LIBUDEV_LIBS) $(LIBEVDEV_LIBS)
|
2017-05-25 10:12:26 +10:00
|
|
|
libinput_debug_events_CFLAGS = $(AM_CFLAGS) $(LIBUDEV_CFLAGS) $(LIBEVDEV_CFLAGS)
|
2016-12-07 11:14:07 +10:00
|
|
|
dist_man1_MANS += libinput-debug-events.1
|
2015-04-30 12:41:50 +10:00
|
|
|
|
2017-05-23 15:07:31 +10:00
|
|
|
tools_PROGRAMS += libinput-measure
|
|
|
|
|
libinput_measure_SOURCES = libinput-measure.c $(shared_sources)
|
|
|
|
|
libinput_measure_LDADD = ../src/libinput.la libshared.la $(LIBUDEV_LIBS) $(LIBEVDEV_LIBS)
|
|
|
|
|
libinput_measure_CFLAGS = $(AM_CFLAGS) $(LIBUDEV_CFLAGS) $(LIBEVDEV_CFLAGS) \
|
|
|
|
|
-DLIBINPUT_TOOL_PATH="\"@libexecdir@/libinput\""
|
|
|
|
|
dist_man1_MANS += libinput-measure.1
|
|
|
|
|
|
|
|
|
|
tools_PROGRAMS += libinput-measure-touchpad-tap
|
|
|
|
|
libinput_measure_touchpad_tap_SOURCES = \
|
|
|
|
|
libinput-measure-touchpad-tap.c
|
|
|
|
|
libinput_measure_touchpad_tap_LDADD = ../src/libinput.la libshared.la $(LIBUDEV_LIBS) $(LIBEVDEV_LIBS)
|
|
|
|
|
libinput_measure_touchpad_tap_CFLAGS = $(AM_CFLAGS) $(LIBUDEV_CFLAGS) $(LIBEVDEV_CFLAGS)
|
|
|
|
|
dist_man1_MANS += libinput-measure-touchpad-tap.1
|
|
|
|
|
|
2017-05-24 10:36:44 +10:00
|
|
|
if BUILD_DEBUG_GUI
|
|
|
|
|
tools_PROGRAMS += libinput-debug-gui
|
2017-05-25 15:47:19 +10:00
|
|
|
libinput_debug_gui_SOURCES = libinput-debug-gui.c
|
2017-06-06 17:54:18 +10:00
|
|
|
libinput_debug_gui_LDADD = ../src/libinput.la libshared.la $(CAIRO_LIBS) $(GTK_LIBS) $(LIBEVDEV_LIBS) $(LIBUDEV_LIBS)
|
|
|
|
|
libinput_debug_gui_CFLAGS = $(AM_CFLAGS) $(CAIRO_CFLAGS) $(GTK_CFLAGS) $(LIBEVDEV_CFLAGS) $(LIBUDEV_CFLAGS)
|
2017-05-24 10:36:44 +10:00
|
|
|
dist_man1_MANS += libinput-debug-gui.1
|
2014-05-27 15:29:55 +10:00
|
|
|
endif
|
2015-08-05 14:47:59 +10:00
|
|
|
|
2017-06-20 11:18:10 +10:00
|
|
|
EXTRA_DIST = make-ptraccel-graphs.sh install-compat-scripts.sh $(bin_SCRIPTS)
|
2017-05-25 10:12:26 +10:00
|
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
|
(cd $(DESTDIR)$(bindir) && mv libinput-list-devices.compat libinput-list-devices)
|
|
|
|
|
(cd $(DESTDIR)$(bindir) && mv libinput-debug-events.compat libinput-debug-events)
|
|
|
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
|
rm -f $(DESTDIR)$(bindir)/libinput-list-devices
|
|
|
|
|
rm -f $(DESTDIR)$(bindir)/libinput-debug-events
|
2017-06-29 08:40:28 +10:00
|
|
|
|
|
|
|
|
SUFFIXES = .man
|
|
|
|
|
.man.1:
|
|
|
|
|
$(AM_V_GEN)$(SED) -e 's|\@LIBINPUT_VERSION\@|$(PACKAGE_VERSION)|' < $< > $@
|
|
|
|
|
CLEANFILES = *.1
|
|
|
|
|
EXTRA_DIST += $(dist_man1_MANS:.1=.man)
|
|
|
|
|
|