Import Upstream version 1.9.1
This commit is contained in:
commit
6d156f0ca3
|
@ -0,0 +1,40 @@
|
|||
The MIT License
|
||||
|
||||
Copyright (c) 1997 C. Scott Ananian
|
||||
Copyright (c) 1998-2000 Bruce Kalk
|
||||
Copyright (c) 1999 Henry Davies
|
||||
Copyright (c) 2008 Fedor P. Goncharov
|
||||
Copyright (c) 2001 Stefan Gmeiner
|
||||
Copyright (c) 2002 S. Lehner
|
||||
Copyright (c) 2002 Linuxcare Inc. David Kennedy
|
||||
Copyright (c) 2003 Fred Hucht
|
||||
Copyright (c) 2003 Neil Brown
|
||||
Copyright (c) 2003 Jörg Bösner
|
||||
Copyright (c) 2003 Hartwig Felger
|
||||
Copyright (c) 2002-2007 Peter Osterlund
|
||||
Copyright (c) 2004 Arne Schwabe
|
||||
Copyright (c) 2004 Matthias Ihmig
|
||||
Copyright (c) 2004 Alexei Gilchrist
|
||||
Copyright (c) 2006-2007 Christian Thaeter
|
||||
Copyright (c) 2006 Stefan Bethge
|
||||
Copyright (c) 2007 Joseph P. Skudlarek
|
||||
Copyright (c) 2007 Florian Loitsch
|
||||
Copyright (c) 2008-2012 Red Hat, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
|
@ -0,0 +1,370 @@
|
|||
Installation Instructions
|
||||
*************************
|
||||
|
||||
Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
|
||||
Inc.
|
||||
|
||||
Copying and distribution of this file, with or without modification,
|
||||
are permitted in any medium without royalty provided the copyright
|
||||
notice and this notice are preserved. This file is offered as-is,
|
||||
without warranty of any kind.
|
||||
|
||||
Basic Installation
|
||||
==================
|
||||
|
||||
Briefly, the shell commands `./configure; make; make install' should
|
||||
configure, build, and install this package. The following
|
||||
more-detailed instructions are generic; see the `README' file for
|
||||
instructions specific to this package. Some packages provide this
|
||||
`INSTALL' file but do not implement all of the features documented
|
||||
below. The lack of an optional feature in a given package is not
|
||||
necessarily a bug. More recommendations for GNU packages can be found
|
||||
in *note Makefile Conventions: (standards)Makefile Conventions.
|
||||
|
||||
The `configure' shell script attempts to guess correct values for
|
||||
various system-dependent variables used during compilation. It uses
|
||||
those values to create a `Makefile' in each directory of the package.
|
||||
It may also create one or more `.h' files containing system-dependent
|
||||
definitions. Finally, it creates a shell script `config.status' that
|
||||
you can run in the future to recreate the current configuration, and a
|
||||
file `config.log' containing compiler output (useful mainly for
|
||||
debugging `configure').
|
||||
|
||||
It can also use an optional file (typically called `config.cache'
|
||||
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
||||
the results of its tests to speed up reconfiguring. Caching is
|
||||
disabled by default to prevent problems with accidental use of stale
|
||||
cache files.
|
||||
|
||||
If you need to do unusual things to compile the package, please try
|
||||
to figure out how `configure' could check whether to do them, and mail
|
||||
diffs or instructions to the address given in the `README' so they can
|
||||
be considered for the next release. If you are using the cache, and at
|
||||
some point `config.cache' contains results you don't want to keep, you
|
||||
may remove or edit it.
|
||||
|
||||
The file `configure.ac' (or `configure.in') is used to create
|
||||
`configure' by a program called `autoconf'. You need `configure.ac' if
|
||||
you want to change it or regenerate `configure' using a newer version
|
||||
of `autoconf'.
|
||||
|
||||
The simplest way to compile this package is:
|
||||
|
||||
1. `cd' to the directory containing the package's source code and type
|
||||
`./configure' to configure the package for your system.
|
||||
|
||||
Running `configure' might take a while. While running, it prints
|
||||
some messages telling which features it is checking for.
|
||||
|
||||
2. Type `make' to compile the package.
|
||||
|
||||
3. Optionally, type `make check' to run any self-tests that come with
|
||||
the package, generally using the just-built uninstalled binaries.
|
||||
|
||||
4. Type `make install' to install the programs and any data files and
|
||||
documentation. When installing into a prefix owned by root, it is
|
||||
recommended that the package be configured and built as a regular
|
||||
user, and only the `make install' phase executed with root
|
||||
privileges.
|
||||
|
||||
5. Optionally, type `make installcheck' to repeat any self-tests, but
|
||||
this time using the binaries in their final installed location.
|
||||
This target does not install anything. Running this target as a
|
||||
regular user, particularly if the prior `make install' required
|
||||
root privileges, verifies that the installation completed
|
||||
correctly.
|
||||
|
||||
6. You can remove the program binaries and object files from the
|
||||
source code directory by typing `make clean'. To also remove the
|
||||
files that `configure' created (so you can compile the package for
|
||||
a different kind of computer), type `make distclean'. There is
|
||||
also a `make maintainer-clean' target, but that is intended mainly
|
||||
for the package's developers. If you use it, you may have to get
|
||||
all sorts of other programs in order to regenerate files that came
|
||||
with the distribution.
|
||||
|
||||
7. Often, you can also type `make uninstall' to remove the installed
|
||||
files again. In practice, not all packages have tested that
|
||||
uninstallation works correctly, even though it is required by the
|
||||
GNU Coding Standards.
|
||||
|
||||
8. Some packages, particularly those that use Automake, provide `make
|
||||
distcheck', which can by used by developers to test that all other
|
||||
targets like `make install' and `make uninstall' work correctly.
|
||||
This target is generally not run by end users.
|
||||
|
||||
Compilers and Options
|
||||
=====================
|
||||
|
||||
Some systems require unusual options for compilation or linking that
|
||||
the `configure' script does not know about. Run `./configure --help'
|
||||
for details on some of the pertinent environment variables.
|
||||
|
||||
You can give `configure' initial values for configuration parameters
|
||||
by setting variables in the command line or in the environment. Here
|
||||
is an example:
|
||||
|
||||
./configure CC=c99 CFLAGS=-g LIBS=-lposix
|
||||
|
||||
*Note Defining Variables::, for more details.
|
||||
|
||||
Compiling For Multiple Architectures
|
||||
====================================
|
||||
|
||||
You can compile the package for more than one kind of computer at the
|
||||
same time, by placing the object files for each architecture in their
|
||||
own directory. To do this, you can use GNU `make'. `cd' to the
|
||||
directory where you want the object files and executables to go and run
|
||||
the `configure' script. `configure' automatically checks for the
|
||||
source code in the directory that `configure' is in and in `..'. This
|
||||
is known as a "VPATH" build.
|
||||
|
||||
With a non-GNU `make', it is safer to compile the package for one
|
||||
architecture at a time in the source code directory. After you have
|
||||
installed the package for one architecture, use `make distclean' before
|
||||
reconfiguring for another architecture.
|
||||
|
||||
On MacOS X 10.5 and later systems, you can create libraries and
|
||||
executables that work on multiple system types--known as "fat" or
|
||||
"universal" binaries--by specifying multiple `-arch' options to the
|
||||
compiler but only a single `-arch' option to the preprocessor. Like
|
||||
this:
|
||||
|
||||
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
||||
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
||||
CPP="gcc -E" CXXCPP="g++ -E"
|
||||
|
||||
This is not guaranteed to produce working output in all cases, you
|
||||
may have to build one architecture at a time and combine the results
|
||||
using the `lipo' tool if you have problems.
|
||||
|
||||
Installation Names
|
||||
==================
|
||||
|
||||
By default, `make install' installs the package's commands under
|
||||
`/usr/local/bin', include files under `/usr/local/include', etc. You
|
||||
can specify an installation prefix other than `/usr/local' by giving
|
||||
`configure' the option `--prefix=PREFIX', where PREFIX must be an
|
||||
absolute file name.
|
||||
|
||||
You can specify separate installation prefixes for
|
||||
architecture-specific files and architecture-independent files. If you
|
||||
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
|
||||
PREFIX as the prefix for installing programs and libraries.
|
||||
Documentation and other data files still use the regular prefix.
|
||||
|
||||
In addition, if you use an unusual directory layout you can give
|
||||
options like `--bindir=DIR' to specify different values for particular
|
||||
kinds of files. Run `configure --help' for a list of the directories
|
||||
you can set and what kinds of files go in them. In general, the
|
||||
default for these options is expressed in terms of `${prefix}', so that
|
||||
specifying just `--prefix' will affect all of the other directory
|
||||
specifications that were not explicitly provided.
|
||||
|
||||
The most portable way to affect installation locations is to pass the
|
||||
correct locations to `configure'; however, many packages provide one or
|
||||
both of the following shortcuts of passing variable assignments to the
|
||||
`make install' command line to change installation locations without
|
||||
having to reconfigure or recompile.
|
||||
|
||||
The first method involves providing an override variable for each
|
||||
affected directory. For example, `make install
|
||||
prefix=/alternate/directory' will choose an alternate location for all
|
||||
directory configuration variables that were expressed in terms of
|
||||
`${prefix}'. Any directories that were specified during `configure',
|
||||
but not in terms of `${prefix}', must each be overridden at install
|
||||
time for the entire installation to be relocated. The approach of
|
||||
makefile variable overrides for each directory variable is required by
|
||||
the GNU Coding Standards, and ideally causes no recompilation.
|
||||
However, some platforms have known limitations with the semantics of
|
||||
shared libraries that end up requiring recompilation when using this
|
||||
method, particularly noticeable in packages that use GNU Libtool.
|
||||
|
||||
The second method involves providing the `DESTDIR' variable. For
|
||||
example, `make install DESTDIR=/alternate/directory' will prepend
|
||||
`/alternate/directory' before all installation names. The approach of
|
||||
`DESTDIR' overrides is not required by the GNU Coding Standards, and
|
||||
does not work on platforms that have drive letters. On the other hand,
|
||||
it does better at avoiding recompilation issues, and works well even
|
||||
when some directory options were not specified in terms of `${prefix}'
|
||||
at `configure' time.
|
||||
|
||||
Optional Features
|
||||
=================
|
||||
|
||||
If the package supports it, you can cause programs to be installed
|
||||
with an extra prefix or suffix on their names by giving `configure' the
|
||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||
|
||||
Some packages pay attention to `--enable-FEATURE' options to
|
||||
`configure', where FEATURE indicates an optional part of the package.
|
||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||
is something like `gnu-as' or `x' (for the X Window System). The
|
||||
`README' should mention any `--enable-' and `--with-' options that the
|
||||
package recognizes.
|
||||
|
||||
For packages that use the X Window System, `configure' can usually
|
||||
find the X include and library files automatically, but if it doesn't,
|
||||
you can use the `configure' options `--x-includes=DIR' and
|
||||
`--x-libraries=DIR' to specify their locations.
|
||||
|
||||
Some packages offer the ability to configure how verbose the
|
||||
execution of `make' will be. For these packages, running `./configure
|
||||
--enable-silent-rules' sets the default to minimal output, which can be
|
||||
overridden with `make V=1'; while running `./configure
|
||||
--disable-silent-rules' sets the default to verbose, which can be
|
||||
overridden with `make V=0'.
|
||||
|
||||
Particular systems
|
||||
==================
|
||||
|
||||
On HP-UX, the default C compiler is not ANSI C compatible. If GNU
|
||||
CC is not installed, it is recommended to use the following options in
|
||||
order to use an ANSI C compiler:
|
||||
|
||||
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
|
||||
|
||||
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
|
||||
|
||||
HP-UX `make' updates targets which have the same time stamps as
|
||||
their prerequisites, which makes it generally unusable when shipped
|
||||
generated files such as `configure' are involved. Use GNU `make'
|
||||
instead.
|
||||
|
||||
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
|
||||
parse its `<wchar.h>' header file. The option `-nodtk' can be used as
|
||||
a workaround. If GNU CC is not installed, it is therefore recommended
|
||||
to try
|
||||
|
||||
./configure CC="cc"
|
||||
|
||||
and if that doesn't work, try
|
||||
|
||||
./configure CC="cc -nodtk"
|
||||
|
||||
On Solaris, don't put `/usr/ucb' early in your `PATH'. This
|
||||
directory contains several dysfunctional programs; working variants of
|
||||
these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
|
||||
in your `PATH', put it _after_ `/usr/bin'.
|
||||
|
||||
On Haiku, software installed for all users goes in `/boot/common',
|
||||
not `/usr/local'. It is recommended to use the following options:
|
||||
|
||||
./configure --prefix=/boot/common
|
||||
|
||||
Specifying the System Type
|
||||
==========================
|
||||
|
||||
There may be some features `configure' cannot figure out
|
||||
automatically, but needs to determine by the type of machine the package
|
||||
will run on. Usually, assuming the package is built to be run on the
|
||||
_same_ architectures, `configure' can figure that out, but if it prints
|
||||
a message saying it cannot guess the machine type, give it the
|
||||
`--build=TYPE' option. TYPE can either be a short name for the system
|
||||
type, such as `sun4', or a canonical name which has the form:
|
||||
|
||||
CPU-COMPANY-SYSTEM
|
||||
|
||||
where SYSTEM can have one of these forms:
|
||||
|
||||
OS
|
||||
KERNEL-OS
|
||||
|
||||
See the file `config.sub' for the possible values of each field. If
|
||||
`config.sub' isn't included in this package, then this package doesn't
|
||||
need to know the machine type.
|
||||
|
||||
If you are _building_ compiler tools for cross-compiling, you should
|
||||
use the option `--target=TYPE' to select the type of system they will
|
||||
produce code for.
|
||||
|
||||
If you want to _use_ a cross compiler, that generates code for a
|
||||
platform different from the build platform, you should specify the
|
||||
"host" platform (i.e., that on which the generated programs will
|
||||
eventually be run) with `--host=TYPE'.
|
||||
|
||||
Sharing Defaults
|
||||
================
|
||||
|
||||
If you want to set default values for `configure' scripts to share,
|
||||
you can create a site shell script called `config.site' that gives
|
||||
default values for variables like `CC', `cache_file', and `prefix'.
|
||||
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||
`CONFIG_SITE' environment variable to the location of the site script.
|
||||
A warning: not all `configure' scripts look for a site script.
|
||||
|
||||
Defining Variables
|
||||
==================
|
||||
|
||||
Variables not defined in a site shell script can be set in the
|
||||
environment passed to `configure'. However, some packages may run
|
||||
configure again during the build, and the customized values of these
|
||||
variables may be lost. In order to avoid this problem, you should set
|
||||
them in the `configure' command line, using `VAR=value'. For example:
|
||||
|
||||
./configure CC=/usr/local2/bin/gcc
|
||||
|
||||
causes the specified `gcc' to be used as the C compiler (unless it is
|
||||
overridden in the site shell script).
|
||||
|
||||
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
|
||||
an Autoconf bug. Until the bug is fixed you can use this workaround:
|
||||
|
||||
CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
|
||||
|
||||
`configure' Invocation
|
||||
======================
|
||||
|
||||
`configure' recognizes the following options to control how it
|
||||
operates.
|
||||
|
||||
`--help'
|
||||
`-h'
|
||||
Print a summary of all of the options to `configure', and exit.
|
||||
|
||||
`--help=short'
|
||||
`--help=recursive'
|
||||
Print a summary of the options unique to this package's
|
||||
`configure', and exit. The `short' variant lists options used
|
||||
only in the top level, while the `recursive' variant lists options
|
||||
also present in any nested packages.
|
||||
|
||||
`--version'
|
||||
`-V'
|
||||
Print the version of Autoconf used to generate the `configure'
|
||||
script, and exit.
|
||||
|
||||
`--cache-file=FILE'
|
||||
Enable the cache: use and save the results of the tests in FILE,
|
||||
traditionally `config.cache'. FILE defaults to `/dev/null' to
|
||||
disable caching.
|
||||
|
||||
`--config-cache'
|
||||
`-C'
|
||||
Alias for `--cache-file=config.cache'.
|
||||
|
||||
`--quiet'
|
||||
`--silent'
|
||||
`-q'
|
||||
Do not print messages saying which checks are being made. To
|
||||
suppress all normal output, redirect it to `/dev/null' (any error
|
||||
messages will still be shown).
|
||||
|
||||
`--srcdir=DIR'
|
||||
Look for the package's source code in directory DIR. Usually
|
||||
`configure' can determine that directory automatically.
|
||||
|
||||
`--prefix=DIR'
|
||||
Use DIR as the installation prefix. *note Installation Names::
|
||||
for more details, including other options available for fine-tuning
|
||||
the installation locations.
|
||||
|
||||
`--no-create'
|
||||
`-n'
|
||||
Run the configure checks, but stop before creating any output
|
||||
files.
|
||||
|
||||
`configure' also accepts some other, not widely useful, options. Run
|
||||
`configure --help' for more details.
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
# Copyright 2005 Adam Jackson.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
||||
# license, and/or sell copies of the Software, and to permit persons to whom
|
||||
# the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
# During distcheck, system locations (as provided by pkg-config) may
|
||||
# not be writable; provide instead relative locations.
|
||||
DISTCHECK_CONFIGURE_FLAGS = \
|
||||
--with-sdkdir='$${includedir}/xorg' \
|
||||
--with-xorg-conf-dir='$${datadir}/X11/xorg.conf.d'
|
||||
|
||||
SUBDIRS = include src man tools conf
|
||||
MAINTAINERCLEANFILES = ChangeLog INSTALL
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = xorg-synaptics.pc
|
||||
|
||||
.PHONY: ChangeLog INSTALL
|
||||
|
||||
INSTALL:
|
||||
$(INSTALL_CMD)
|
||||
|
||||
ChangeLog:
|
||||
$(CHANGELOG_CMD)
|
||||
|
||||
dist-hook: ChangeLog INSTALL
|
|
@ -0,0 +1,941 @@
|
|||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# Copyright 2005 Adam Jackson.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
||||
# license, and/or sell copies of the Software, and to permit persons to whom
|
||||
# the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = .
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
|
||||
$(am__configure_deps) $(am__DIST_COMMON)
|
||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
configure.lineno config.status.lineno
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = config.h
|
||||
CONFIG_CLEAN_FILES = xorg-synaptics.pc
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
|
||||
ctags-recursive dvi-recursive html-recursive info-recursive \
|
||||
install-data-recursive install-dvi-recursive \
|
||||
install-exec-recursive install-html-recursive \
|
||||
install-info-recursive install-pdf-recursive \
|
||||
install-ps-recursive install-recursive installcheck-recursive \
|
||||
installdirs-recursive pdf-recursive ps-recursive \
|
||||
tags-recursive uninstall-recursive
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||
am__install_max = 40
|
||||
am__nobase_strip_setup = \
|
||||
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||
am__nobase_strip = \
|
||||
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||
am__nobase_list = $(am__nobase_strip_setup); \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||
if (++n[$$2] == $(am__install_max)) \
|
||||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||
END { for (dir in files) print dir, files[dir] }'
|
||||
am__base_list = \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
am__uninstall_files_from_dir = { \
|
||||
test -z "$$files" \
|
||||
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||
}
|
||||
am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
|
||||
DATA = $(pkgconfig_DATA)
|
||||
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
||||
distclean-recursive maintainer-clean-recursive
|
||||
am__recursive_targets = \
|
||||
$(RECURSIVE_TARGETS) \
|
||||
$(RECURSIVE_CLEAN_TARGETS) \
|
||||
$(am__extra_recursive_targets)
|
||||
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
|
||||
cscope distdir dist dist-all distcheck
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
|
||||
$(LISP)config.h.in
|
||||
# Read a list of newline-separated strings from the standard input,
|
||||
# and print each of them once, without duplicates. Input order is
|
||||
# *not* preserved.
|
||||
am__uniquify_input = $(AWK) '\
|
||||
BEGIN { nonempty = 0; } \
|
||||
{ items[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in items) print i; }; } \
|
||||
'
|
||||
# Make sure the list of sources is unique. This is necessary because,
|
||||
# e.g., the same source file might be shared among _SOURCES variables
|
||||
# for different programs/libraries.
|
||||
am__define_uniq_tagged_files = \
|
||||
list='$(am__tagged_files)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
CSCOPE = cscope
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
||||
$(srcdir)/xorg-synaptics.pc.in COPYING ChangeLog INSTALL \
|
||||
README compile config.guess config.sub install-sh ltmain.sh \
|
||||
missing
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
top_distdir = $(distdir)
|
||||
am__remove_distdir = \
|
||||
if test -d "$(distdir)"; then \
|
||||
find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||
&& rm -rf "$(distdir)" \
|
||||
|| { sleep 5 && rm -rf "$(distdir)"; }; \
|
||||
else :; fi
|
||||
am__post_remove_distdir = $(am__remove_distdir)
|
||||
am__relativize = \
|
||||
dir0=`pwd`; \
|
||||
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
|
||||
sed_rest='s,^[^/]*/*,,'; \
|
||||
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
|
||||
sed_butlast='s,/*[^/]*$$,,'; \
|
||||
while test -n "$$dir1"; do \
|
||||
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
|
||||
if test "$$first" != "."; then \
|
||||
if test "$$first" = ".."; then \
|
||||
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
|
||||
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
|
||||
else \
|
||||
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
|
||||
if test "$$first2" = "$$first"; then \
|
||||
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
|
||||
else \
|
||||
dir2="../$$dir2"; \
|
||||
fi; \
|
||||
dir0="$$dir0"/"$$first"; \
|
||||
fi; \
|
||||
fi; \
|
||||
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
|
||||
done; \
|
||||
reldir="$$dir2"
|
||||
DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
|
||||
GZIP_ENV = --best
|
||||
DIST_TARGETS = dist-bzip2 dist-gzip
|
||||
distuninstallcheck_listfiles = find . -type f -print
|
||||
am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
|
||||
| sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
|
||||
distcleancheck_listfiles = find . -type f -print
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
|
||||
ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
APP_MAN_DIR = @APP_MAN_DIR@
|
||||
APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
BASE_CFLAGS = @BASE_CFLAGS@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CHANGELOG_CMD = @CHANGELOG_CMD@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CWARNFLAGS = @CWARNFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
|
||||
DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CMD = @INSTALL_CMD@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBEVDEV_CFLAGS = @LIBEVDEV_CFLAGS@
|
||||
LIBEVDEV_LIBS = @LIBEVDEV_LIBS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIB_MAN_DIR = @LIB_MAN_DIR@
|
||||
LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MAN_SUBSTS = @MAN_SUBSTS@
|
||||
MISC_MAN_DIR = @MISC_MAN_DIR@
|
||||
MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRICT_CFLAGS = @STRICT_CFLAGS@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
XI_CFLAGS = @XI_CFLAGS@
|
||||
XI_LIBS = @XI_LIBS@
|
||||
XORG_CFLAGS = @XORG_CFLAGS@
|
||||
XORG_LIBS = @XORG_LIBS@
|
||||
XORG_MALLOC_DEBUG_ENV = @XORG_MALLOC_DEBUG_ENV@
|
||||
XORG_MAN_PAGE = @XORG_MAN_PAGE@
|
||||
XTST_CFLAGS = @XTST_CFLAGS@
|
||||
XTST_LIBS = @XTST_LIBS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
configdir = @configdir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
inputdir = @inputdir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sdkdir = @sdkdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
|
||||
# During distcheck, system locations (as provided by pkg-config) may
|
||||
# not be writable; provide instead relative locations.
|
||||
DISTCHECK_CONFIGURE_FLAGS = \
|
||||
--with-sdkdir='$${includedir}/xorg' \
|
||||
--with-xorg-conf-dir='$${datadir}/X11/xorg.conf.d'
|
||||
|
||||
SUBDIRS = include src man tools conf
|
||||
MAINTAINERCLEANFILES = ChangeLog INSTALL
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = xorg-synaptics.pc
|
||||
all: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
am--refresh: Makefile
|
||||
@:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
|
||||
$(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
echo ' $(SHELL) ./config.status'; \
|
||||
$(SHELL) ./config.status;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
$(SHELL) ./config.status --recheck
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
$(am__cd) $(srcdir) && $(AUTOCONF)
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
config.h: stamp-h1
|
||||
@test -f $@ || rm -f stamp-h1
|
||||
@test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
|
||||
|
||||
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
|
||||
@rm -f stamp-h1
|
||||
cd $(top_builddir) && $(SHELL) ./config.status config.h
|
||||
$(srcdir)/config.h.in: $(am__configure_deps)
|
||||
($(am__cd) $(top_srcdir) && $(AUTOHEADER))
|
||||
rm -f stamp-h1
|
||||
touch $@
|
||||
|
||||
distclean-hdr:
|
||||
-rm -f config.h stamp-h1
|
||||
xorg-synaptics.pc: $(top_builddir)/config.status $(srcdir)/xorg-synaptics.pc.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool config.lt
|
||||
install-pkgconfigDATA: $(pkgconfig_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-pkgconfigDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run 'make' without going through this Makefile.
|
||||
# To change the values of 'make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in 'config.status', edit 'config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run 'make');
|
||||
# (2) otherwise, pass the desired values on the 'make' command line.
|
||||
$(am__recursive_targets):
|
||||
@fail=; \
|
||||
if $(am__make_keepgoing); then \
|
||||
failcom='fail=yes'; \
|
||||
else \
|
||||
failcom='exit 1'; \
|
||||
fi; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
ID: $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
||||
tags: tags-recursive
|
||||
TAGS: tags
|
||||
|
||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
$(am__define_uniq_tagged_files); \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: ctags-recursive
|
||||
|
||||
CTAGS: ctags
|
||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
cscope: cscope.files
|
||||
test ! -s cscope.files \
|
||||
|| $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
|
||||
clean-cscope:
|
||||
-rm -f cscope.files
|
||||
cscope.files: clean-cscope cscopelist
|
||||
cscopelist: cscopelist-recursive
|
||||
|
||||
cscopelist-am: $(am__tagged_files)
|
||||
list='$(am__tagged_files)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
-rm -f cscope.out cscope.in.out cscope.po.out cscope.files
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
$(am__remove_distdir)
|
||||
test -d "$(distdir)" || mkdir "$(distdir)"
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
$(am__make_dryrun) \
|
||||
|| test -d "$(distdir)/$$subdir" \
|
||||
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
|
||||
$(am__relativize); \
|
||||
new_distdir=$$reldir; \
|
||||
dir1=$$subdir; dir2="$(top_distdir)"; \
|
||||
$(am__relativize); \
|
||||
new_top_distdir=$$reldir; \
|
||||
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
|
||||
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
|
||||
($(am__cd) $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$new_top_distdir" \
|
||||
distdir="$$new_distdir" \
|
||||
am__remove_distdir=: \
|
||||
am__skip_length_check=: \
|
||||
am__skip_mode_fix=: \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$(top_distdir)" distdir="$(distdir)" \
|
||||
dist-hook
|
||||
-test -n "$(am__skip_mode_fix)" \
|
||||
|| find "$(distdir)" -type d ! -perm -755 \
|
||||
-exec chmod u+rwx,go+rx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|
||||
|| chmod -R a+r "$(distdir)"
|
||||
dist-gzip: distdir
|
||||
tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
|
||||
$(am__post_remove_distdir)
|
||||
dist-bzip2: distdir
|
||||
tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
|
||||
$(am__post_remove_distdir)
|
||||
|
||||
dist-lzip: distdir
|
||||
tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
|
||||
$(am__post_remove_distdir)
|
||||
|
||||
dist-xz: distdir
|
||||
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
|
||||
$(am__post_remove_distdir)
|
||||
|
||||
dist-tarZ: distdir
|
||||
@echo WARNING: "Support for distribution archives compressed with" \
|
||||
"legacy program 'compress' is deprecated." >&2
|
||||
@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
|
||||
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
||||
$(am__post_remove_distdir)
|
||||
|
||||
dist-shar: distdir
|
||||
@echo WARNING: "Support for shar distribution archives is" \
|
||||
"deprecated." >&2
|
||||
@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
|
||||
shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
|
||||
$(am__post_remove_distdir)
|
||||
|
||||
dist-zip: distdir
|
||||
-rm -f $(distdir).zip
|
||||
zip -rq $(distdir).zip $(distdir)
|
||||
$(am__post_remove_distdir)
|
||||
|
||||
dist dist-all:
|
||||
$(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
|
||||
$(am__post_remove_distdir)
|
||||
|
||||
# This target untars the dist file and tries a VPATH configuration. Then
|
||||
# it guarantees that the distribution is self-contained by making another
|
||||
# tarfile.
|
||||
distcheck: dist
|
||||
case '$(DIST_ARCHIVES)' in \
|
||||
*.tar.gz*) \
|
||||
eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
|
||||
*.tar.bz2*) \
|
||||
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||
*.tar.lz*) \
|
||||
lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
|
||||
*.tar.xz*) \
|
||||
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
|
||||
*.tar.Z*) \
|
||||
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||
*.shar.gz*) \
|
||||
eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
|
||||
*.zip*) \
|
||||
unzip $(distdir).zip ;;\
|
||||
esac
|
||||
chmod -R a-w $(distdir)
|
||||
chmod u+w $(distdir)
|
||||
mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
|
||||
chmod a-w $(distdir)
|
||||
test -d $(distdir)/_build || exit 0; \
|
||||
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||
&& am__cwd=`pwd` \
|
||||
&& $(am__cd) $(distdir)/_build/sub \
|
||||
&& ../../configure \
|
||||
$(AM_DISTCHECK_CONFIGURE_FLAGS) \
|
||||
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||
--srcdir=../.. --prefix="$$dc_install_base" \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||
distuninstallcheck \
|
||||
&& chmod -R a-w "$$dc_install_base" \
|
||||
&& ({ \
|
||||
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||
&& rm -rf "$$dc_destdir" \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||
&& rm -rf $(DIST_ARCHIVES) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
|
||||
&& cd "$$am__cwd" \
|
||||
|| exit 1
|
||||
$(am__post_remove_distdir)
|
||||
@(echo "$(distdir) archives ready for distribution: "; \
|
||||
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
|
||||
distuninstallcheck:
|
||||
@test -n '$(distuninstallcheck_dir)' || { \
|
||||
echo 'ERROR: trying to run $@ with an empty' \
|
||||
'$$(distuninstallcheck_dir)' >&2; \
|
||||
exit 1; \
|
||||
}; \
|
||||
$(am__cd) '$(distuninstallcheck_dir)' || { \
|
||||
echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
|
||||
exit 1; \
|
||||
}; \
|
||||
test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
|
||||
|| { echo "ERROR: files left after uninstall:" ; \
|
||||
if test -n "$(DESTDIR)"; then \
|
||||
echo " (check DESTDIR support)"; \
|
||||
fi ; \
|
||||
$(distuninstallcheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
distcleancheck: distclean
|
||||
@if test '$(srcdir)' = . ; then \
|
||||
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
||||
$(distcleancheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile $(DATA) config.h
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
for dir in "$(DESTDIR)$(pkgconfigdir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-hdr \
|
||||
distclean-libtool distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-pkgconfigDATA
|
||||
|
||||
install-dvi: install-dvi-recursive
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-recursive
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-recursive
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-recursive
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -rf $(top_srcdir)/autom4te.cache
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-pkgconfigDATA
|
||||
|
||||
.MAKE: $(am__recursive_targets) all install-am install-strip
|
||||
|
||||
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
|
||||
am--refresh check check-am clean clean-cscope clean-generic \
|
||||
clean-libtool cscope cscopelist-am ctags ctags-am dist \
|
||||
dist-all dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar \
|
||||
dist-tarZ dist-xz dist-zip distcheck distclean \
|
||||
distclean-generic distclean-hdr distclean-libtool \
|
||||
distclean-tags distcleancheck distdir distuninstallcheck dvi \
|
||||
dvi-am html html-am info info-am install install-am \
|
||||
install-data install-data-am install-dvi install-dvi-am \
|
||||
install-exec install-exec-am install-html install-html-am \
|
||||
install-info install-info-am install-man install-pdf \
|
||||
install-pdf-am install-pkgconfigDATA install-ps install-ps-am \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
installdirs-am maintainer-clean maintainer-clean-generic \
|
||||
mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
|
||||
ps ps-am tags tags-am uninstall uninstall-am \
|
||||
uninstall-pkgconfigDATA
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
.PHONY: ChangeLog INSTALL
|
||||
|
||||
INSTALL:
|
||||
$(INSTALL_CMD)
|
||||
|
||||
ChangeLog:
|
||||
$(CHANGELOG_CMD)
|
||||
|
||||
dist-hook: ChangeLog INSTALL
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
|
@ -0,0 +1,152 @@
|
|||
Synaptics touchpad driver for X.Org
|
||||
-----------------------------------
|
||||
|
||||
FAQ
|
||||
---
|
||||
|
||||
* Is this free software?
|
||||
|
||||
Yes, the source code is released under the MIT license.
|
||||
|
||||
* When will the driver be included in the XOrg distribution?
|
||||
|
||||
It is already.
|
||||
|
||||
* How do I use this driver with Linux kernel 2.6.x?
|
||||
|
||||
You need to have the "evdev" driver loaded or compiled into the
|
||||
kernel (CONFIG_INPUT_EVDEV). Set the "Protocol" parameter in the X
|
||||
configuration file to "auto-dev". Also, if you set the "Device"
|
||||
parameter to "/dev/psaux", the same X configuration file should
|
||||
work for a 2.4.x kernel.
|
||||
|
||||
When configuring the kernel, enable PS/2 mouse support
|
||||
(CONFIG_MOUSE_PS2).
|
||||
|
||||
* It still doesn't work with a 2.6 kernel.
|
||||
|
||||
Some distributions come with an incomplete /dev directory. The
|
||||
driver needs the /dev/input/eventX device nodes. Try to create
|
||||
them manually if they don't exist already. (Look at
|
||||
/proc/bus/input/devices to figure out how many nodes you need.)
|
||||
|
||||
# mknod /dev/input/event0 c 13 64
|
||||
# mknod /dev/input/event1 c 13 65
|
||||
# mknod /dev/input/event2 c 13 66
|
||||
...
|
||||
|
||||
* How can I configure tap-to-click behavior?
|
||||
|
||||
If you set MaxTapTime=0 in the X config file then the touchpad
|
||||
will not use tapping at all, i.e. touching/tapping will not be
|
||||
taken as a mouse click.
|
||||
|
||||
If, instead, you set MaxTapMove=0 in the X config file, then the
|
||||
touchpad will not use tapping for a single finger tap (left mouse
|
||||
button click) but will for the two and three finger tap (middle
|
||||
and right button click).
|
||||
|
||||
* Why did tap-to-click stop working after I upgraded from an old version?
|
||||
|
||||
Time is now measured in milliseconds instead of "number of
|
||||
packets". In practice, this means that if you are upgrading from
|
||||
an old version, you need to change MaxTapTime and
|
||||
EmulateMidButtonTime to make "tap to click" work. Good values are
|
||||
180 and 75 respectively.
|
||||
|
||||
* Gnome scrollbars scroll too much when using tap-to-click. Why?
|
||||
|
||||
The ClickTime parameter is probably too big. Try setting it to
|
||||
100. Gnome scrollbars use auto repeat, ie if you press the left
|
||||
mouse button and keep it pressed, the scroll bar will move until
|
||||
you release the button. This will lead to problems if the tap time
|
||||
is longer than the delay before auto repeat starts.
|
||||
|
||||
* Vertical and horizontal scrolling events are mixed up. How come?
|
||||
|
||||
Probably because some X startup/login script uses xmodmap to remap
|
||||
the mouse buttons. Correct settings for the touchpad are:
|
||||
|
||||
xmodmap -e 'pointer = 1 2 3 4 5 6 7'
|
||||
|
||||
You can check the current settings by running:
|
||||
|
||||
xmodmap -pp
|
||||
|
||||
* Horizontal scrolling doesn't work in some programs. Is it a driver
|
||||
bug?
|
||||
|
||||
No, probably not. Support for horizontal scroll events must be
|
||||
handled by the application programs. Not all programs do that
|
||||
yet. Ask the authors of the application in question to implement
|
||||
support for horizontal scroll events.
|
||||
|
||||
You can use the "xev" program to check if the synaptics driver
|
||||
generates the horizontal scroll events.
|
||||
|
||||
If you are having problems with Mozilla, try this link:
|
||||
|
||||
http://lists.debian.org/debian-laptop/2004/08/msg00167.html
|
||||
|
||||
* Can the driver be used together with gpm?
|
||||
|
||||
No, not reliably, if you are using a 2.4.x kernel. The gpm driver
|
||||
and the X driver both try to read data from the touchpad, and if
|
||||
they try to read at the same time, both drivers see incomplete
|
||||
data and don't know how to interpret it.
|
||||
|
||||
If you are running a 2.6.x kernel though, there should be no
|
||||
conflict, because the kernel driver will make sure both user space
|
||||
drivers receive all events from the touchpad.
|
||||
|
||||
* Can I use this driver with an ALPS Glidepoint device?
|
||||
|
||||
Yes, see the README.alps file for more information.
|
||||
|
||||
* The driver says "reset failed" and the touchpad doesn't work. What
|
||||
can I do?
|
||||
|
||||
This problem has been reported for some Compaq models. It's
|
||||
currently not known why it happens, but removing the reset command
|
||||
from the driver appears to make it work. If you use a 2.4 linux
|
||||
kernel, replace the contents of the ps2_synaptics_reset() function
|
||||
in ps2comm.c with a "return TRUE;" statement. If you use a 2.6
|
||||
linux kernel, remove the while loop in synaptics_query_hardware()
|
||||
in the file drivers/input/mouse/synaptics.c in the linux kernel
|
||||
source code.
|
||||
|
||||
|
||||
Authors
|
||||
-------
|
||||
|
||||
Many people have contributed to this driver. Look at the top of
|
||||
synaptics.c and ps2comm.c for details.
|
||||
|
||||
The current maintainer is X.org development team <xorg-devel@lists.x.org>.
|
||||
|
||||
|
||||
Contacts
|
||||
--------
|
||||
All questions regarding this software should be directed at the
|
||||
Xorg mailing list:
|
||||
|
||||
http://lists.freedesktop.org/mailman/listinfo/xorg
|
||||
|
||||
Please submit bug reports to the Xorg bugzilla:
|
||||
|
||||
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
|
||||
|
||||
The master development code repository can be found at:
|
||||
|
||||
git://anongit.freedesktop.org/git/xorg/driver/xf86-input-synaptics
|
||||
|
||||
http://cgit.freedesktop.org/xorg/driver/xf86-input-synaptics
|
||||
|
||||
For patch submission instructions, see:
|
||||
|
||||
http://www.x.org/wiki/Development/Documentation/SubmittingPatches
|
||||
|
||||
For more information on the git code manager, see:
|
||||
|
||||
http://wiki.x.org/wiki/GitPage
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,18 @@
|
|||
#! /bin/sh
|
||||
|
||||
srcdir=`dirname "$0"`
|
||||
test -z "$srcdir" && srcdir=.
|
||||
|
||||
ORIGDIR=`pwd`
|
||||
cd "$srcdir"
|
||||
|
||||
autoreconf -v --install || exit 1
|
||||
cd "$ORIGDIR" || exit $?
|
||||
|
||||
git config --local --get format.subjectPrefix >/dev/null 2>&1 ||
|
||||
git config --local format.subjectPrefix "PATCH xf86-input-synaptics"
|
||||
|
||||
if test -z "$NOCONFIGURE"; then
|
||||
exec "$srcdir"/configure "$@"
|
||||
fi
|
||||
|
|
@ -0,0 +1,348 @@
|
|||
#! /bin/sh
|
||||
# Wrapper for compilers which do not understand '-c -o'.
|
||||
|
||||
scriptversion=2016-01-11.22; # UTC
|
||||
|
||||
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
|
||||
# Written by Tom Tromey <tromey@cygnus.com>.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# This file is maintained in Automake, please report
|
||||
# bugs to <bug-automake@gnu.org> or send patches to
|
||||
# <automake-patches@gnu.org>.
|
||||
|
||||
nl='
|
||||
'
|
||||
|
||||
# We need space, tab and new line, in precisely that order. Quoting is
|
||||
# there to prevent tools from complaining about whitespace usage.
|
||||
IFS=" "" $nl"
|
||||
|
||||
file_conv=
|
||||
|
||||
# func_file_conv build_file lazy
|
||||
# Convert a $build file to $host form and store it in $file
|
||||
# Currently only supports Windows hosts. If the determined conversion
|
||||
# type is listed in (the comma separated) LAZY, no conversion will
|
||||
# take place.
|
||||
func_file_conv ()
|
||||
{
|
||||
file=$1
|
||||
case $file in
|
||||
/ | /[!/]*) # absolute file, and not a UNC file
|
||||
if test -z "$file_conv"; then
|
||||
# lazily determine how to convert abs files
|
||||
case `uname -s` in
|
||||
MINGW*)
|
||||
file_conv=mingw
|
||||
;;
|
||||
CYGWIN*)
|
||||
file_conv=cygwin
|
||||
;;
|
||||
*)
|
||||
file_conv=wine
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
case $file_conv/,$2, in
|
||||
*,$file_conv,*)
|
||||
;;
|
||||
mingw/*)
|
||||
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
|
||||
;;
|
||||
cygwin/*)
|
||||
file=`cygpath -m "$file" || echo "$file"`
|
||||
;;
|
||||
wine/*)
|
||||
file=`winepath -w "$file" || echo "$file"`
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# func_cl_dashL linkdir
|
||||
# Make cl look for libraries in LINKDIR
|
||||
func_cl_dashL ()
|
||||
{
|
||||
func_file_conv "$1"
|
||||
if test -z "$lib_path"; then
|
||||
lib_path=$file
|
||||
else
|
||||
lib_path="$lib_path;$file"
|
||||
fi
|
||||
linker_opts="$linker_opts -LIBPATH:$file"
|
||||
}
|
||||
|
||||
# func_cl_dashl library
|
||||
# Do a library search-path lookup for cl
|
||||
func_cl_dashl ()
|
||||
{
|
||||
lib=$1
|
||||
found=no
|
||||
save_IFS=$IFS
|
||||
IFS=';'
|
||||
for dir in $lib_path $LIB
|
||||
do
|
||||
IFS=$save_IFS
|
||||
if $shared && test -f "$dir/$lib.dll.lib"; then
|
||||
found=yes
|
||||
lib=$dir/$lib.dll.lib
|
||||
break
|
||||
fi
|
||||
if test -f "$dir/$lib.lib"; then
|
||||
found=yes
|
||||
lib=$dir/$lib.lib
|
||||
break
|
||||
fi
|
||||
if test -f "$dir/lib$lib.a"; then
|
||||
found=yes
|
||||
lib=$dir/lib$lib.a
|
||||
break
|
||||
fi
|
||||
done
|
||||
IFS=$save_IFS
|
||||
|
||||
if test "$found" != yes; then
|
||||
lib=$lib.lib
|
||||
fi
|
||||
}
|
||||
|
||||
# func_cl_wrapper cl arg...
|
||||
# Adjust compile command to suit cl
|
||||
func_cl_wrapper ()
|
||||
{
|
||||
# Assume a capable shell
|
||||
lib_path=
|
||||
shared=:
|
||||
linker_opts=
|
||||
for arg
|
||||
do
|
||||
if test -n "$eat"; then
|
||||
eat=
|
||||
else
|
||||
case $1 in
|
||||
-o)
|
||||
# configure might choose to run compile as 'compile cc -o foo foo.c'.
|
||||
eat=1
|
||||
case $2 in
|
||||
*.o | *.[oO][bB][jJ])
|
||||
func_file_conv "$2"
|
||||
set x "$@" -Fo"$file"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
func_file_conv "$2"
|
||||
set x "$@" -Fe"$file"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
-I)
|
||||
eat=1
|
||||
func_file_conv "$2" mingw
|
||||
set x "$@" -I"$file"
|
||||
shift
|
||||
;;
|
||||
-I*)
|
||||
func_file_conv "${1#-I}" mingw
|
||||
set x "$@" -I"$file"
|
||||
shift
|
||||
;;
|
||||
-l)
|
||||
eat=1
|
||||
func_cl_dashl "$2"
|
||||
set x "$@" "$lib"
|
||||
shift
|
||||
;;
|
||||
-l*)
|
||||
func_cl_dashl "${1#-l}"
|
||||
set x "$@" "$lib"
|
||||
shift
|
||||
;;
|
||||
-L)
|
||||
eat=1
|
||||
func_cl_dashL "$2"
|
||||
;;
|
||||
-L*)
|
||||
func_cl_dashL "${1#-L}"
|
||||
;;
|
||||
-static)
|
||||
shared=false
|
||||
;;
|
||||
-Wl,*)
|
||||
arg=${1#-Wl,}
|
||||
save_ifs="$IFS"; IFS=','
|
||||
for flag in $arg; do
|
||||
IFS="$save_ifs"
|
||||
linker_opts="$linker_opts $flag"
|
||||
done
|
||||
IFS="$save_ifs"
|
||||
;;
|
||||
-Xlinker)
|
||||
eat=1
|
||||
linker_opts="$linker_opts $2"
|
||||
;;
|
||||
-*)
|
||||
set x "$@" "$1"
|
||||
shift
|
||||
;;
|
||||
*.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
|
||||
func_file_conv "$1"
|
||||
set x "$@" -Tp"$file"
|
||||
shift
|
||||
;;
|
||||
*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
|
||||
func_file_conv "$1" mingw
|
||||
set x "$@" "$file"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set x "$@" "$1"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
shift
|
||||
done
|
||||
if test -n "$linker_opts"; then
|
||||
linker_opts="-link$linker_opts"
|
||||
fi
|
||||
exec "$@" $linker_opts
|
||||
exit 1
|
||||
}
|
||||
|
||||
eat=
|
||||
|
||||
case $1 in
|
||||
'')
|
||||
echo "$0: No command. Try '$0 --help' for more information." 1>&2
|
||||
exit 1;
|
||||
;;
|
||||
-h | --h*)
|
||||
cat <<\EOF
|
||||
Usage: compile [--help] [--version] PROGRAM [ARGS]
|
||||
|
||||
Wrapper for compilers which do not understand '-c -o'.
|
||||
Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
|
||||
arguments, and rename the output as expected.
|
||||
|
||||
If you are trying to build a whole package this is not the
|
||||
right script to run: please start by reading the file 'INSTALL'.
|
||||
|
||||
Report bugs to <bug-automake@gnu.org>.
|
||||
EOF
|
||||
exit $?
|
||||
;;
|
||||
-v | --v*)
|
||||
echo "compile $scriptversion"
|
||||
exit $?
|
||||
;;
|
||||
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
|
||||
icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
|
||||
func_cl_wrapper "$@" # Doesn't return...
|
||||
;;
|
||||
esac
|
||||
|
||||
ofile=
|
||||
cfile=
|
||||
|
||||
for arg
|
||||
do
|
||||
if test -n "$eat"; then
|
||||
eat=
|
||||
else
|
||||
case $1 in
|
||||
-o)
|
||||
# configure might choose to run compile as 'compile cc -o foo foo.c'.
|
||||
# So we strip '-o arg' only if arg is an object.
|
||||
eat=1
|
||||
case $2 in
|
||||
*.o | *.obj)
|
||||
ofile=$2
|
||||
;;
|
||||
*)
|
||||
set x "$@" -o "$2"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*.c)
|
||||
cfile=$1
|
||||
set x "$@" "$1"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set x "$@" "$1"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
shift
|
||||
done
|
||||
|
||||
if test -z "$ofile" || test -z "$cfile"; then
|
||||
# If no '-o' option was seen then we might have been invoked from a
|
||||
# pattern rule where we don't need one. That is ok -- this is a
|
||||
# normal compilation that the losing compiler can handle. If no
|
||||
# '.c' file was seen then we are probably linking. That is also
|
||||
# ok.
|
||||
exec "$@"
|
||||
fi
|
||||
|
||||
# Name of file we expect compiler to create.
|
||||
cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
|
||||
|
||||
# Create the lock directory.
|
||||
# Note: use '[/\\:.-]' here to ensure that we don't use the same name
|
||||
# that we are using for the .o file. Also, base the name on the expected
|
||||
# object file name, since that is what matters with a parallel build.
|
||||
lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
|
||||
while true; do
|
||||
if mkdir "$lockdir" >/dev/null 2>&1; then
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
# FIXME: race condition here if user kills between mkdir and trap.
|
||||
trap "rmdir '$lockdir'; exit 1" 1 2 15
|
||||
|
||||
# Run the compile.
|
||||
"$@"
|
||||
ret=$?
|
||||
|
||||
if test -f "$cofile"; then
|
||||
test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
|
||||
elif test -f "${cofile}bj"; then
|
||||
test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
|
||||
fi
|
||||
|
||||
rmdir "$lockdir"
|
||||
exit $ret
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 2
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC0"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
|
@ -0,0 +1,40 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!-- Example fdi file that assigns the synaptics driver to any touchpad in
|
||||
the system.
|
||||
|
||||
DO NOT EDIT THIS FILE, your distribution will likely overwrite
|
||||
it when updating. Copy (and rename) this file into
|
||||
/etc/hal/fdi/policy first before adding options.
|
||||
-->
|
||||
<deviceinfo version="0.2">
|
||||
<device>
|
||||
<match key="info.capabilities" contains="input.touchpad">
|
||||
<merge key="input.x11_driver" type="string">synaptics</merge>
|
||||
<!-- Arbitrary options can be passed to the driver using
|
||||
the input.x11_options property since xorg-server-1.5. -->
|
||||
<!-- EXAMPLES:
|
||||
Maximum movement of the finger for detecting a tap
|
||||
<merge key="input.x11_options.MaxTapMove" type="string">2000</merge>
|
||||
|
||||
Enable vertical scrolling when dragging along the right edge
|
||||
<merge key="input.x11_options.VertEdgeScroll" type="string">true</merge>
|
||||
|
||||
Enable vertical scrolling when dragging with two fingers anywhere on the touchpad
|
||||
<merge key="input.x11_options.VertTwoFingerScroll" type="string">true</merge>
|
||||
|
||||
Enable horizontal scrolling when dragging with two fingers anywhere on the touchpad
|
||||
<merge key="input.x11_options.HorizTwoFingerScroll" type="string">true</merge>
|
||||
|
||||
If on, circular scrolling is used
|
||||
<merge key="input.x11_options.CircularScrolling" type="string">true</merge>
|
||||
|
||||
For other possible options, check CONFIGURATION DETAILS in synaptics man page
|
||||
-->
|
||||
<merge key="input.x11_options.SoftButtonAreas" type="string">50% 0 82% 0 0 0 0 0</merge>
|
||||
<merge key="input.x11_options.SecondarySoftButtonAreas" type="string">58% 0 0 8% 42% 58% 0 8%</merge>
|
||||
<match key="info.product" contains="Apple|bcm5974">
|
||||
<merge key="input.x11_options.SoftButtonAreas" type="string">0 0 0 0 0 0 0 0</merge>
|
||||
</match>
|
||||
</match>
|
||||
</device>
|
||||
</deviceinfo>
|
|
@ -0,0 +1,46 @@
|
|||
# Example xorg.conf.d snippet that assigns the touchpad driver
|
||||
# to all touchpads. See xorg.conf.d(5) for more information on
|
||||
# InputClass.
|
||||
# DO NOT EDIT THIS FILE, your distribution will likely overwrite
|
||||
# it when updating. Copy (and rename) this file into
|
||||
# /etc/X11/xorg.conf.d first.
|
||||
# Additional options may be added in the form of
|
||||
# Option "OptionName" "value"
|
||||
#
|
||||
Section "InputClass"
|
||||
Identifier "touchpad catchall"
|
||||
Driver "synaptics"
|
||||
MatchIsTouchpad "on"
|
||||
# This option is recommend on all Linux systems using evdev, but cannot be
|
||||
# enabled by default. See the following link for details:
|
||||
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
|
||||
# MatchDevicePath "/dev/input/event*"
|
||||
EndSection
|
||||
|
||||
Section "InputClass"
|
||||
Identifier "touchpad ignore duplicates"
|
||||
MatchIsTouchpad "on"
|
||||
MatchOS "Linux"
|
||||
MatchDevicePath "/dev/input/mouse*"
|
||||
Option "Ignore" "on"
|
||||
EndSection
|
||||
|
||||
# This option enables the bottom right corner to be a right button on clickpads
|
||||
# and the right and middle top areas to be right / middle buttons on clickpads
|
||||
# with a top button area.
|
||||
# This option is only interpreted by clickpads.
|
||||
Section "InputClass"
|
||||
Identifier "Default clickpad buttons"
|
||||
MatchDriver "synaptics"
|
||||
Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
|
||||
Option "SecondarySoftButtonAreas" "58% 0 0 15% 42% 58% 0 15%"
|
||||
EndSection
|
||||
|
||||
# This option disables software buttons on Apple touchpads.
|
||||
# This option is only interpreted by clickpads.
|
||||
Section "InputClass"
|
||||
Identifier "Disable clickpad buttons on Apple touchpads"
|
||||
MatchProduct "Apple|bcm5974"
|
||||
MatchDriver "synaptics"
|
||||
Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
|
||||
EndSection
|
|
@ -0,0 +1,27 @@
|
|||
# Copyright 2005 Adam Jackson.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
||||
# license, and/or sell copies of the Software, and to permit persons to whom
|
||||
# the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
if HAS_XORG_CONF_DIR
|
||||
dist_config_DATA = 70-synaptics.conf
|
||||
else
|
||||
fdidir = $(datadir)/hal/fdi/policy/20thirdparty
|
||||
dist_fdi_DATA = 11-x11-synaptics.fdi
|
||||
endif
|
|
@ -0,0 +1,568 @@
|
|||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# Copyright 2005 Adam Jackson.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
||||
# license, and/or sell copies of the Software, and to permit persons to whom
|
||||
# the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = conf
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(am__dist_config_DATA_DIST) \
|
||||
$(am__dist_fdi_DATA_DIST) $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
am__dist_config_DATA_DIST = 70-synaptics.conf
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||
am__install_max = 40
|
||||
am__nobase_strip_setup = \
|
||||
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||
am__nobase_strip = \
|
||||
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||
am__nobase_list = $(am__nobase_strip_setup); \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||
if (++n[$$2] == $(am__install_max)) \
|
||||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||
END { for (dir in files) print dir, files[dir] }'
|
||||
am__base_list = \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
am__uninstall_files_from_dir = { \
|
||||
test -z "$$files" \
|
||||
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||
}
|
||||
am__installdirs = "$(DESTDIR)$(configdir)" "$(DESTDIR)$(fdidir)"
|
||||
am__dist_fdi_DATA_DIST = 11-x11-synaptics.fdi
|
||||
DATA = $(dist_config_DATA) $(dist_fdi_DATA)
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
|
||||
ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
APP_MAN_DIR = @APP_MAN_DIR@
|
||||
APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
BASE_CFLAGS = @BASE_CFLAGS@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CHANGELOG_CMD = @CHANGELOG_CMD@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CWARNFLAGS = @CWARNFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
|
||||
DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CMD = @INSTALL_CMD@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBEVDEV_CFLAGS = @LIBEVDEV_CFLAGS@
|
||||
LIBEVDEV_LIBS = @LIBEVDEV_LIBS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIB_MAN_DIR = @LIB_MAN_DIR@
|
||||
LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MAN_SUBSTS = @MAN_SUBSTS@
|
||||
MISC_MAN_DIR = @MISC_MAN_DIR@
|
||||
MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRICT_CFLAGS = @STRICT_CFLAGS@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
XI_CFLAGS = @XI_CFLAGS@
|
||||
XI_LIBS = @XI_LIBS@
|
||||
XORG_CFLAGS = @XORG_CFLAGS@
|
||||
XORG_LIBS = @XORG_LIBS@
|
||||
XORG_MALLOC_DEBUG_ENV = @XORG_MALLOC_DEBUG_ENV@
|
||||
XORG_MAN_PAGE = @XORG_MAN_PAGE@
|
||||
XTST_CFLAGS = @XTST_CFLAGS@
|
||||
XTST_LIBS = @XTST_LIBS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
configdir = @configdir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
inputdir = @inputdir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sdkdir = @sdkdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
@HAS_XORG_CONF_DIR_TRUE@dist_config_DATA = 70-synaptics.conf
|
||||
@HAS_XORG_CONF_DIR_FALSE@fdidir = $(datadir)/hal/fdi/policy/20thirdparty
|
||||
@HAS_XORG_CONF_DIR_FALSE@dist_fdi_DATA = 11-x11-synaptics.fdi
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign conf/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign conf/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
install-dist_configDATA: $(dist_config_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(dist_config_DATA)'; test -n "$(configdir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(configdir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(configdir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(configdir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(configdir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-dist_configDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(dist_config_DATA)'; test -n "$(configdir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(configdir)'; $(am__uninstall_files_from_dir)
|
||||
install-dist_fdiDATA: $(dist_fdi_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(dist_fdi_DATA)'; test -n "$(fdidir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(fdidir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(fdidir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(fdidir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(fdidir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-dist_fdiDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(dist_fdi_DATA)'; test -n "$(fdidir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(fdidir)'; $(am__uninstall_files_from_dir)
|
||||
tags TAGS:
|
||||
|
||||
ctags CTAGS:
|
||||
|
||||
cscope cscopelist:
|
||||
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(DATA)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(configdir)" "$(DESTDIR)$(fdidir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-dist_configDATA install-dist_fdiDATA
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-dist_configDATA uninstall-dist_fdiDATA
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
|
||||
cscopelist-am ctags-am distclean distclean-generic \
|
||||
distclean-libtool distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-data install-data-am \
|
||||
install-dist_configDATA install-dist_fdiDATA install-dvi \
|
||||
install-dvi-am install-exec install-exec-am install-html \
|
||||
install-html-am install-info install-info-am install-man \
|
||||
install-pdf install-pdf-am install-ps install-ps-am \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
maintainer-clean maintainer-clean-generic mostlyclean \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
tags-am uninstall uninstall-am uninstall-dist_configDATA \
|
||||
uninstall-dist_fdiDATA
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,91 @@
|
|||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Optional backend eventcomm enabled */
|
||||
#undef BUILD_EVENTCOMM
|
||||
|
||||
/* Optional backend ps2comm and alpscomm enabled */
|
||||
#undef BUILD_PS2COMM
|
||||
|
||||
/* Optional backend psmcomm enabled */
|
||||
#undef BUILD_PSMCOMM
|
||||
|
||||
/* Enable debugging code */
|
||||
#undef DEBUG
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#undef HAVE_DLFCN_H
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
|
||||
/* libevdev supports per-device log functions */
|
||||
#undef HAVE_LIBEVDEV_DEVICE_LOG_FUNCS
|
||||
|
||||
/* Define to 1 if you have the `m' library (-lm). */
|
||||
#undef HAVE_LIBM
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#undef HAVE_SYS_STAT_H
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Define to 1 if you have the <X11/extensions/record.h> header file. */
|
||||
#undef HAVE_X11_EXTENSIONS_RECORD_H
|
||||
|
||||
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
||||
#undef LT_OBJDIR
|
||||
|
||||
/* Name of package */
|
||||
#undef PACKAGE
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#undef PACKAGE_BUGREPORT
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#undef PACKAGE_NAME
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#undef PACKAGE_STRING
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#undef PACKAGE_URL
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* Major version of this package */
|
||||
#undef PACKAGE_VERSION_MAJOR
|
||||
|
||||
/* Minor version of this package */
|
||||
#undef PACKAGE_VERSION_MINOR
|
||||
|
||||
/* Patch version of this package */
|
||||
#undef PACKAGE_VERSION_PATCHLEVEL
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,169 @@
|
|||
# Copyright 2005 Adam Jackson.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
||||
# license, and/or sell copies of the Software, and to permit persons to whom
|
||||
# the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
# Process this file with autoconf to produce a configure script
|
||||
|
||||
# Initialize Autoconf
|
||||
AC_PREREQ([2.60])
|
||||
AC_INIT([xf86-input-synaptics],
|
||||
[1.9.1],
|
||||
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
||||
[xf86-input-synaptics])
|
||||
AC_CONFIG_SRCDIR([Makefile.am])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AC_CONFIG_AUX_DIR(.)
|
||||
|
||||
# Initialize Automake
|
||||
AM_INIT_AUTOMAKE([foreign dist-bzip2])
|
||||
|
||||
# Initialize libtool
|
||||
AC_DISABLE_STATIC
|
||||
AC_PROG_LIBTOOL
|
||||
|
||||
# Initialize X.Org macros 1.13 or later for XORG_ENABLE_UNIT_TESTS
|
||||
m4_ifndef([XORG_MACROS_VERSION],
|
||||
[m4_fatal([must install xorg-macros 1.13 or later before running autoconf/autogen])])
|
||||
XORG_MACROS_VERSION(1.13)
|
||||
XORG_DEFAULT_OPTIONS
|
||||
XORG_ENABLE_UNIT_TESTS
|
||||
|
||||
# Checks for libraries.
|
||||
AC_CHECK_LIB([m], [rint])
|
||||
|
||||
# Store the list of server defined optional extensions in REQUIRED_MODULES
|
||||
m4_ifndef([XORG_DRIVER_CHECK_EXT],
|
||||
[m4_fatal([must install xorg-server development files before running autoconf/autogen])])
|
||||
XORG_DRIVER_CHECK_EXT(RANDR, randrproto)
|
||||
|
||||
# Obtain compiler/linker options for the Synaptics driver dependencies
|
||||
PKG_CHECK_MODULES(XORG, [inputproto >= 2.1.99.3] [xorg-server >= 1.12] xproto inputproto $REQUIRED_MODULES)
|
||||
|
||||
# X Server SDK location is required to install Synaptics header files
|
||||
# This location is also relayed in the xorg-synaptics.pc file
|
||||
sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
|
||||
AC_SUBST([sdkdir])
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Configuration options
|
||||
# -----------------------------------------------------------------------------
|
||||
# Define a configure option for an alternate input module directory
|
||||
AC_ARG_WITH(xorg-module-dir,
|
||||
AC_HELP_STRING([--with-xorg-module-dir=DIR],
|
||||
[Default xorg module directory [[default=$libdir/xorg/modules]]]),
|
||||
[moduledir="$withval"],
|
||||
[moduledir="$libdir/xorg/modules"])
|
||||
inputdir=${moduledir}/input
|
||||
AC_SUBST(inputdir)
|
||||
|
||||
# Define a configure option for an alternate X Server configuration directory
|
||||
sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server`
|
||||
AC_ARG_WITH(xorg-conf-dir,
|
||||
AC_HELP_STRING([--with-xorg-conf-dir=DIR],
|
||||
[Default xorg.conf.d directory [[default=from $PKG_CONFIG xorg-server]]]),
|
||||
[configdir="$withval"],
|
||||
[configdir="$sysconfigdir"])
|
||||
AC_SUBST(configdir)
|
||||
AM_CONDITIONAL(HAS_XORG_CONF_DIR, [test "x$sysconfigdir" != "x"])
|
||||
|
||||
# Define a configure option to enable code debugging
|
||||
AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug],
|
||||
[Enable debugging (default: disabled)]),
|
||||
[DEBUGGING=$enableval], [DEBUGGING=no])
|
||||
if test "x$DEBUGGING" = xyes; then
|
||||
AC_DEFINE(DEBUG, 1, [Enable debugging code])
|
||||
fi
|
||||
AM_CONDITIONAL(DEBUG, [test "x$DEBUGGING" = xyes])
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Determine which backend, if any, to build
|
||||
# -----------------------------------------------------------------------------
|
||||
AC_MSG_CHECKING([which optional backends will be build])
|
||||
case "${host}" in
|
||||
*linux*)
|
||||
AC_MSG_RESULT([ps2comm alpscomm eventcomm])
|
||||
BUILD_PS2COMM="yes"
|
||||
BUILD_EVENTCOMM="yes"
|
||||
;;
|
||||
*freebsd* | *netbsd* | *dragonfly*)
|
||||
AC_MSG_RESULT([ps2comm alpscomm psmcomm])
|
||||
BUILD_PS2COMM="yes"
|
||||
BUILD_PSMCOMM="yes"
|
||||
;;
|
||||
*solaris* | *gnu*)
|
||||
AC_MSG_RESULT([ps2comm alpscomm])
|
||||
BUILD_PS2COMM="yes"
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([Cannot find suitable backends for this platform.])
|
||||
;;
|
||||
esac
|
||||
if test "x$BUILD_EVENTCOMM" = xyes; then
|
||||
AC_DEFINE(BUILD_EVENTCOMM, 1, [Optional backend eventcomm enabled])
|
||||
PKG_CHECK_MODULES(LIBEVDEV, [libevdev >= 0.4])
|
||||
SAVE_LIBS="$LIBS"
|
||||
LIBS="$LIBEVDEV_LIBS"
|
||||
AC_CHECK_LIB(evdev, libevdev_set_device_log_function,
|
||||
[AC_DEFINE(HAVE_LIBEVDEV_DEVICE_LOG_FUNCS, 1,
|
||||
[libevdev supports per-device log functions])],
|
||||
[])
|
||||
LIBS="$SAVE_LIBS"
|
||||
fi
|
||||
if test "x$BUILD_PSMCOMM" = xyes; then
|
||||
AC_DEFINE(BUILD_PSMCOMM, 1, [Optional backend psmcomm enabled])
|
||||
fi
|
||||
if test "x$BUILD_PS2COMM" = xyes; then
|
||||
AC_DEFINE(BUILD_PS2COMM, 1, [Optional backend ps2comm and alpscomm enabled])
|
||||
fi
|
||||
AM_CONDITIONAL([BUILD_EVENTCOMM], [test "x${BUILD_EVENTCOMM}" = "xyes"])
|
||||
AM_CONDITIONAL([BUILD_PSMCOMM], [test "x${BUILD_PSMCOMM}" = "xyes"])
|
||||
AM_CONDITIONAL([BUILD_PS2COMM], [test "x${BUILD_PS2COMM}" = "xyes"])
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Dependencies for synclient and syndaemon
|
||||
# -----------------------------------------------------------------------------
|
||||
# Obtain compiler/linker options for the Synaptics apps dependencies
|
||||
PKG_CHECK_MODULES(XI, x11 inputproto [xi >= 1.2])
|
||||
|
||||
# The syndaemon program uses an optional XRecord extension implementation
|
||||
# If libxtst >= 1.0.99 is installed, Cflags contains the path to record.h
|
||||
# If recordproto < 1.13.99.1 is installed, Cflags contains the path to record.h
|
||||
PKG_CHECK_MODULES(XTST, xtst recordproto, have_libxtst="yes", have_libxtst="no")
|
||||
if test "x$have_libxtst" = "xyes" ; then
|
||||
# Header record.h may come from the xtst or recordproto package, or may be missing
|
||||
SAVE_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $XTST_CFLAGS"
|
||||
AC_CHECK_HEADERS([X11/extensions/record.h],,,[#include <X11/Xlib.h>])
|
||||
CPPFLAGS="$SAVE_CPPFLAGS"
|
||||
fi
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
# Workaround overriding sdkdir to be able to create a tarball when user has no
|
||||
# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
|
||||
AC_ARG_WITH([sdkdir], [], [sdkdir="$withval"])
|
||||
|
||||
AC_CONFIG_FILES([Makefile
|
||||
src/Makefile
|
||||
man/Makefile
|
||||
tools/Makefile
|
||||
conf/Makefile
|
||||
include/Makefile
|
||||
xorg-synaptics.pc])
|
||||
AC_OUTPUT
|
||||
|
|
@ -0,0 +1,791 @@
|
|||
#! /bin/sh
|
||||
# depcomp - compile a program generating dependencies as side-effects
|
||||
|
||||
scriptversion=2016-01-11.22; # UTC
|
||||
|
||||
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
|
||||
|
||||
case $1 in
|
||||
'')
|
||||
echo "$0: No command. Try '$0 --help' for more information." 1>&2
|
||||
exit 1;
|
||||
;;
|
||||
-h | --h*)
|
||||
cat <<\EOF
|
||||
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
|
||||
|
||||
Run PROGRAMS ARGS to compile a file, generating dependencies
|
||||
as side-effects.
|
||||
|
||||
Environment variables:
|
||||
depmode Dependency tracking mode.
|
||||
source Source file read by 'PROGRAMS ARGS'.
|
||||
object Object file output by 'PROGRAMS ARGS'.
|
||||
DEPDIR directory where to store dependencies.
|
||||
depfile Dependency file to output.
|
||||
tmpdepfile Temporary file to use when outputting dependencies.
|
||||
libtool Whether libtool is used (yes/no).
|
||||
|
||||
Report bugs to <bug-automake@gnu.org>.
|
||||
EOF
|
||||
exit $?
|
||||
;;
|
||||
-v | --v*)
|
||||
echo "depcomp $scriptversion"
|
||||
exit $?
|
||||
;;
|
||||
esac
|
||||
|
||||
# Get the directory component of the given path, and save it in the
|
||||
# global variables '$dir'. Note that this directory component will
|
||||
# be either empty or ending with a '/' character. This is deliberate.
|
||||
set_dir_from ()
|
||||
{
|
||||
case $1 in
|
||||
*/*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
|
||||
*) dir=;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Get the suffix-stripped basename of the given path, and save it the
|
||||
# global variable '$base'.
|
||||
set_base_from ()
|
||||
{
|
||||
base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
|
||||
}
|
||||
|
||||
# If no dependency file was actually created by the compiler invocation,
|
||||
# we still have to create a dummy depfile, to avoid errors with the
|
||||
# Makefile "include basename.Plo" scheme.
|
||||
make_dummy_depfile ()
|
||||
{
|
||||
echo "#dummy" > "$depfile"
|
||||
}
|
||||
|
||||
# Factor out some common post-processing of the generated depfile.
|
||||
# Requires the auxiliary global variable '$tmpdepfile' to be set.
|
||||
aix_post_process_depfile ()
|
||||
{
|
||||
# If the compiler actually managed to produce a dependency file,
|
||||
# post-process it.
|
||||
if test -f "$tmpdepfile"; then
|
||||
# Each line is of the form 'foo.o: dependency.h'.
|
||||
# Do two passes, one to just change these to
|
||||
# $object: dependency.h
|
||||
# and one to simply output
|
||||
# dependency.h:
|
||||
# which is needed to avoid the deleted-header problem.
|
||||
{ sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
|
||||
sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
|
||||
} > "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
else
|
||||
make_dummy_depfile
|
||||
fi
|
||||
}
|
||||
|
||||
# A tabulation character.
|
||||
tab=' '
|
||||
# A newline character.
|
||||
nl='
|
||||
'
|
||||
# Character ranges might be problematic outside the C locale.
|
||||
# These definitions help.
|
||||
upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
lower=abcdefghijklmnopqrstuvwxyz
|
||||
digits=0123456789
|
||||
alpha=${upper}${lower}
|
||||
|
||||
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
||||
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
|
||||
depfile=${depfile-`echo "$object" |
|
||||
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
|
||||
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
||||
|
||||
rm -f "$tmpdepfile"
|
||||
|
||||
# Avoid interferences from the environment.
|
||||
gccflag= dashmflag=
|
||||
|
||||
# Some modes work just like other modes, but use different flags. We
|
||||
# parameterize here, but still list the modes in the big case below,
|
||||
# to make depend.m4 easier to write. Note that we *cannot* use a case
|
||||
# here, because this file can only contain one case statement.
|
||||
if test "$depmode" = hp; then
|
||||
# HP compiler uses -M and no extra arg.
|
||||
gccflag=-M
|
||||
depmode=gcc
|
||||
fi
|
||||
|
||||
if test "$depmode" = dashXmstdout; then
|
||||
# This is just like dashmstdout with a different argument.
|
||||
dashmflag=-xM
|
||||
depmode=dashmstdout
|
||||
fi
|
||||
|
||||
cygpath_u="cygpath -u -f -"
|
||||
if test "$depmode" = msvcmsys; then
|
||||
# This is just like msvisualcpp but w/o cygpath translation.
|
||||
# Just convert the backslash-escaped backslashes to single forward
|
||||
# slashes to satisfy depend.m4
|
||||
cygpath_u='sed s,\\\\,/,g'
|
||||
depmode=msvisualcpp
|
||||
fi
|
||||
|
||||
if test "$depmode" = msvc7msys; then
|
||||
# This is just like msvc7 but w/o cygpath translation.
|
||||
# Just convert the backslash-escaped backslashes to single forward
|
||||
# slashes to satisfy depend.m4
|
||||
cygpath_u='sed s,\\\\,/,g'
|
||||
depmode=msvc7
|
||||
fi
|
||||
|
||||
if test "$depmode" = xlc; then
|
||||
# IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
|
||||
gccflag=-qmakedep=gcc,-MF
|
||||
depmode=gcc
|
||||
fi
|
||||
|
||||
case "$depmode" in
|
||||
gcc3)
|
||||
## gcc 3 implements dependency tracking that does exactly what
|
||||
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
|
||||
## it if -MD -MP comes after the -MF stuff. Hmm.
|
||||
## Unfortunately, FreeBSD c89 acceptance of flags depends upon
|
||||
## the command line argument order; so add the flags where they
|
||||
## appear in depend2.am. Note that the slowdown incurred here
|
||||
## affects only configure: in makefiles, %FASTDEP% shortcuts this.
|
||||
for arg
|
||||
do
|
||||
case $arg in
|
||||
-c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
|
||||
*) set fnord "$@" "$arg" ;;
|
||||
esac
|
||||
shift # fnord
|
||||
shift # $arg
|
||||
done
|
||||
"$@"
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
mv "$tmpdepfile" "$depfile"
|
||||
;;
|
||||
|
||||
gcc)
|
||||
## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
|
||||
## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
|
||||
## (see the conditional assignment to $gccflag above).
|
||||
## There are various ways to get dependency output from gcc. Here's
|
||||
## why we pick this rather obscure method:
|
||||
## - Don't want to use -MD because we'd like the dependencies to end
|
||||
## up in a subdir. Having to rename by hand is ugly.
|
||||
## (We might end up doing this anyway to support other compilers.)
|
||||
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
|
||||
## -MM, not -M (despite what the docs say). Also, it might not be
|
||||
## supported by the other compilers which use the 'gcc' depmode.
|
||||
## - Using -M directly means running the compiler twice (even worse
|
||||
## than renaming).
|
||||
if test -z "$gccflag"; then
|
||||
gccflag=-MD,
|
||||
fi
|
||||
"$@" -Wp,"$gccflag$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
# The second -e expression handles DOS-style file names with drive
|
||||
# letters.
|
||||
sed -e 's/^[^:]*: / /' \
|
||||
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
|
||||
## This next piece of magic avoids the "deleted header file" problem.
|
||||
## The problem is that when a header file which appears in a .P file
|
||||
## is deleted, the dependency causes make to die (because there is
|
||||
## typically no way to rebuild the header). We avoid this by adding
|
||||
## dummy dependencies for each header file. Too bad gcc doesn't do
|
||||
## this for us directly.
|
||||
## Some versions of gcc put a space before the ':'. On the theory
|
||||
## that the space means something, we add a space to the output as
|
||||
## well. hp depmode also adds that space, but also prefixes the VPATH
|
||||
## to the object. Take care to not repeat it in the output.
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
tr ' ' "$nl" < "$tmpdepfile" \
|
||||
| sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
|
||||
| sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
hp)
|
||||
# This case exists only to let depend.m4 do its work. It works by
|
||||
# looking at the text of this script. This case will never be run,
|
||||
# since it is checked for above.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
sgi)
|
||||
if test "$libtool" = yes; then
|
||||
"$@" "-Wp,-MDupdate,$tmpdepfile"
|
||||
else
|
||||
"$@" -MDupdate "$tmpdepfile"
|
||||
fi
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
|
||||
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
|
||||
echo "$object : \\" > "$depfile"
|
||||
# Clip off the initial element (the dependent). Don't try to be
|
||||
# clever and replace this with sed code, as IRIX sed won't handle
|
||||
# lines with more than a fixed number of characters (4096 in
|
||||
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
|
||||
# the IRIX cc adds comments like '#:fec' to the end of the
|
||||
# dependency line.
|
||||
tr ' ' "$nl" < "$tmpdepfile" \
|
||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
|
||||
| tr "$nl" ' ' >> "$depfile"
|
||||
echo >> "$depfile"
|
||||
# The second pass generates a dummy entry for each header file.
|
||||
tr ' ' "$nl" < "$tmpdepfile" \
|
||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
||||
>> "$depfile"
|
||||
else
|
||||
make_dummy_depfile
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
xlc)
|
||||
# This case exists only to let depend.m4 do its work. It works by
|
||||
# looking at the text of this script. This case will never be run,
|
||||
# since it is checked for above.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
aix)
|
||||
# The C for AIX Compiler uses -M and outputs the dependencies
|
||||
# in a .u file. In older versions, this file always lives in the
|
||||
# current directory. Also, the AIX compiler puts '$object:' at the
|
||||
# start of each line; $object doesn't have directory information.
|
||||
# Version 6 uses the directory in both cases.
|
||||
set_dir_from "$object"
|
||||
set_base_from "$object"
|
||||
if test "$libtool" = yes; then
|
||||
tmpdepfile1=$dir$base.u
|
||||
tmpdepfile2=$base.u
|
||||
tmpdepfile3=$dir.libs/$base.u
|
||||
"$@" -Wc,-M
|
||||
else
|
||||
tmpdepfile1=$dir$base.u
|
||||
tmpdepfile2=$dir$base.u
|
||||
tmpdepfile3=$dir$base.u
|
||||
"$@" -M
|
||||
fi
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||
do
|
||||
test -f "$tmpdepfile" && break
|
||||
done
|
||||
aix_post_process_depfile
|
||||
;;
|
||||
|
||||
tcc)
|
||||
# tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
|
||||
# FIXME: That version still under development at the moment of writing.
|
||||
# Make that this statement remains true also for stable, released
|
||||
# versions.
|
||||
# It will wrap lines (doesn't matter whether long or short) with a
|
||||
# trailing '\', as in:
|
||||
#
|
||||
# foo.o : \
|
||||
# foo.c \
|
||||
# foo.h \
|
||||
#
|
||||
# It will put a trailing '\' even on the last line, and will use leading
|
||||
# spaces rather than leading tabs (at least since its commit 0394caf7
|
||||
# "Emit spaces for -MD").
|
||||
"$@" -MD -MF "$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
# Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
|
||||
# We have to change lines of the first kind to '$object: \'.
|
||||
sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
|
||||
# And for each line of the second kind, we have to emit a 'dep.h:'
|
||||
# dummy dependency, to avoid the deleted-header problem.
|
||||
sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
## The order of this option in the case statement is important, since the
|
||||
## shell code in configure will try each of these formats in the order
|
||||
## listed in this file. A plain '-MD' option would be understood by many
|
||||
## compilers, so we must ensure this comes after the gcc and icc options.
|
||||
pgcc)
|
||||
# Portland's C compiler understands '-MD'.
|
||||
# Will always output deps to 'file.d' where file is the root name of the
|
||||
# source file under compilation, even if file resides in a subdirectory.
|
||||
# The object file name does not affect the name of the '.d' file.
|
||||
# pgcc 10.2 will output
|
||||
# foo.o: sub/foo.c sub/foo.h
|
||||
# and will wrap long lines using '\' :
|
||||
# foo.o: sub/foo.c ... \
|
||||
# sub/foo.h ... \
|
||||
# ...
|
||||
set_dir_from "$object"
|
||||
# Use the source, not the object, to determine the base name, since
|
||||
# that's sadly what pgcc will do too.
|
||||
set_base_from "$source"
|
||||
tmpdepfile=$base.d
|
||||
|
||||
# For projects that build the same source file twice into different object
|
||||
# files, the pgcc approach of using the *source* file root name can cause
|
||||
# problems in parallel builds. Use a locking strategy to avoid stomping on
|
||||
# the same $tmpdepfile.
|
||||
lockdir=$base.d-lock
|
||||
trap "
|
||||
echo '$0: caught signal, cleaning up...' >&2
|
||||
rmdir '$lockdir'
|
||||
exit 1
|
||||
" 1 2 13 15
|
||||
numtries=100
|
||||
i=$numtries
|
||||
while test $i -gt 0; do
|
||||
# mkdir is a portable test-and-set.
|
||||
if mkdir "$lockdir" 2>/dev/null; then
|
||||
# This process acquired the lock.
|
||||
"$@" -MD
|
||||
stat=$?
|
||||
# Release the lock.
|
||||
rmdir "$lockdir"
|
||||
break
|
||||
else
|
||||
# If the lock is being held by a different process, wait
|
||||
# until the winning process is done or we timeout.
|
||||
while test -d "$lockdir" && test $i -gt 0; do
|
||||
sleep 1
|
||||
i=`expr $i - 1`
|
||||
done
|
||||
fi
|
||||
i=`expr $i - 1`
|
||||
done
|
||||
trap - 1 2 13 15
|
||||
if test $i -le 0; then
|
||||
echo "$0: failed to acquire lock after $numtries attempts" >&2
|
||||
echo "$0: check lockdir '$lockdir'" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
# Each line is of the form `foo.o: dependent.h',
|
||||
# or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
|
||||
# Do two passes, one to just change these to
|
||||
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
|
||||
# Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
# correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
|
||||
| sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
hp2)
|
||||
# The "hp" stanza above does not work with aCC (C++) and HP's ia64
|
||||
# compilers, which have integrated preprocessors. The correct option
|
||||
# to use with these is +Maked; it writes dependencies to a file named
|
||||
# 'foo.d', which lands next to the object file, wherever that
|
||||
# happens to be.
|
||||
# Much of this is similar to the tru64 case; see comments there.
|
||||
set_dir_from "$object"
|
||||
set_base_from "$object"
|
||||
if test "$libtool" = yes; then
|
||||
tmpdepfile1=$dir$base.d
|
||||
tmpdepfile2=$dir.libs/$base.d
|
||||
"$@" -Wc,+Maked
|
||||
else
|
||||
tmpdepfile1=$dir$base.d
|
||||
tmpdepfile2=$dir$base.d
|
||||
"$@" +Maked
|
||||
fi
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile1" "$tmpdepfile2"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
|
||||
do
|
||||
test -f "$tmpdepfile" && break
|
||||
done
|
||||
if test -f "$tmpdepfile"; then
|
||||
sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
|
||||
# Add 'dependent.h:' lines.
|
||||
sed -ne '2,${
|
||||
s/^ *//
|
||||
s/ \\*$//
|
||||
s/$/:/
|
||||
p
|
||||
}' "$tmpdepfile" >> "$depfile"
|
||||
else
|
||||
make_dummy_depfile
|
||||
fi
|
||||
rm -f "$tmpdepfile" "$tmpdepfile2"
|
||||
;;
|
||||
|
||||
tru64)
|
||||
# The Tru64 compiler uses -MD to generate dependencies as a side
|
||||
# effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
|
||||
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
|
||||
# dependencies in 'foo.d' instead, so we check for that too.
|
||||
# Subdirectories are respected.
|
||||
set_dir_from "$object"
|
||||
set_base_from "$object"
|
||||
|
||||
if test "$libtool" = yes; then
|
||||
# Libtool generates 2 separate objects for the 2 libraries. These
|
||||
# two compilations output dependencies in $dir.libs/$base.o.d and
|
||||
# in $dir$base.o.d. We have to check for both files, because
|
||||
# one of the two compilations can be disabled. We should prefer
|
||||
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
|
||||
# automatically cleaned when .libs/ is deleted, while ignoring
|
||||
# the former would cause a distcleancheck panic.
|
||||
tmpdepfile1=$dir$base.o.d # libtool 1.5
|
||||
tmpdepfile2=$dir.libs/$base.o.d # Likewise.
|
||||
tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
|
||||
"$@" -Wc,-MD
|
||||
else
|
||||
tmpdepfile1=$dir$base.d
|
||||
tmpdepfile2=$dir$base.d
|
||||
tmpdepfile3=$dir$base.d
|
||||
"$@" -MD
|
||||
fi
|
||||
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||
do
|
||||
test -f "$tmpdepfile" && break
|
||||
done
|
||||
# Same post-processing that is required for AIX mode.
|
||||
aix_post_process_depfile
|
||||
;;
|
||||
|
||||
msvc7)
|
||||
if test "$libtool" = yes; then
|
||||
showIncludes=-Wc,-showIncludes
|
||||
else
|
||||
showIncludes=-showIncludes
|
||||
fi
|
||||
"$@" $showIncludes > "$tmpdepfile"
|
||||
stat=$?
|
||||
grep -v '^Note: including file: ' "$tmpdepfile"
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
# The first sed program below extracts the file names and escapes
|
||||
# backslashes for cygpath. The second sed program outputs the file
|
||||
# name when reading, but also accumulates all include files in the
|
||||
# hold buffer in order to output them again at the end. This only
|
||||
# works with sed implementations that can handle large buffers.
|
||||
sed < "$tmpdepfile" -n '
|
||||
/^Note: including file: *\(.*\)/ {
|
||||
s//\1/
|
||||
s/\\/\\\\/g
|
||||
p
|
||||
}' | $cygpath_u | sort -u | sed -n '
|
||||
s/ /\\ /g
|
||||
s/\(.*\)/'"$tab"'\1 \\/p
|
||||
s/.\(.*\) \\/\1:/
|
||||
H
|
||||
$ {
|
||||
s/.*/'"$tab"'/
|
||||
G
|
||||
p
|
||||
}' >> "$depfile"
|
||||
echo >> "$depfile" # make sure the fragment doesn't end with a backslash
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
msvc7msys)
|
||||
# This case exists only to let depend.m4 do its work. It works by
|
||||
# looking at the text of this script. This case will never be run,
|
||||
# since it is checked for above.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
#nosideeffect)
|
||||
# This comment above is used by automake to tell side-effect
|
||||
# dependency tracking mechanisms from slower ones.
|
||||
|
||||
dashmstdout)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout, regardless of -o.
|
||||
"$@" || exit $?
|
||||
|
||||
# Remove the call to Libtool.
|
||||
if test "$libtool" = yes; then
|
||||
while test "X$1" != 'X--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
|
||||
# Remove '-o $object'.
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case $arg in
|
||||
-o)
|
||||
shift
|
||||
;;
|
||||
$object)
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift # fnord
|
||||
shift # $arg
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
test -z "$dashmflag" && dashmflag=-M
|
||||
# Require at least two characters before searching for ':'
|
||||
# in the target name. This is to cope with DOS-style filenames:
|
||||
# a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
|
||||
"$@" $dashmflag |
|
||||
sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
cat < "$tmpdepfile" > "$depfile"
|
||||
# Some versions of the HPUX 10.20 sed can't process this sed invocation
|
||||
# correctly. Breaking it into two sed invocations is a workaround.
|
||||
tr ' ' "$nl" < "$tmpdepfile" \
|
||||
| sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
|
||||
| sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
dashXmstdout)
|
||||
# This case only exists to satisfy depend.m4. It is never actually
|
||||
# run, as this mode is specially recognized in the preamble.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
makedepend)
|
||||
"$@" || exit $?
|
||||
# Remove any Libtool call
|
||||
if test "$libtool" = yes; then
|
||||
while test "X$1" != 'X--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
# X makedepend
|
||||
shift
|
||||
cleared=no eat=no
|
||||
for arg
|
||||
do
|
||||
case $cleared in
|
||||
no)
|
||||
set ""; shift
|
||||
cleared=yes ;;
|
||||
esac
|
||||
if test $eat = yes; then
|
||||
eat=no
|
||||
continue
|
||||
fi
|
||||
case "$arg" in
|
||||
-D*|-I*)
|
||||
set fnord "$@" "$arg"; shift ;;
|
||||
# Strip any option that makedepend may not understand. Remove
|
||||
# the object too, otherwise makedepend will parse it as a source file.
|
||||
-arch)
|
||||
eat=yes ;;
|
||||
-*|$object)
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"; shift ;;
|
||||
esac
|
||||
done
|
||||
obj_suffix=`echo "$object" | sed 's/^.*\././'`
|
||||
touch "$tmpdepfile"
|
||||
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
|
||||
rm -f "$depfile"
|
||||
# makedepend may prepend the VPATH from the source file name to the object.
|
||||
# No need to regex-escape $object, excess matching of '.' is harmless.
|
||||
sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
|
||||
# Some versions of the HPUX 10.20 sed can't process the last invocation
|
||||
# correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed '1,2d' "$tmpdepfile" \
|
||||
| tr ' ' "$nl" \
|
||||
| sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
|
||||
| sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile" "$tmpdepfile".bak
|
||||
;;
|
||||
|
||||
cpp)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout.
|
||||
"$@" || exit $?
|
||||
|
||||
# Remove the call to Libtool.
|
||||
if test "$libtool" = yes; then
|
||||
while test "X$1" != 'X--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
|
||||
# Remove '-o $object'.
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case $arg in
|
||||
-o)
|
||||
shift
|
||||
;;
|
||||
$object)
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift # fnord
|
||||
shift # $arg
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
"$@" -E \
|
||||
| sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
||||
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
||||
| sed '$ s: \\$::' > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
cat < "$tmpdepfile" >> "$depfile"
|
||||
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
msvisualcpp)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout.
|
||||
"$@" || exit $?
|
||||
|
||||
# Remove the call to Libtool.
|
||||
if test "$libtool" = yes; then
|
||||
while test "X$1" != 'X--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case "$arg" in
|
||||
-o)
|
||||
shift
|
||||
;;
|
||||
$object)
|
||||
shift
|
||||
;;
|
||||
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
|
||||
set fnord "$@"
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
"$@" -E 2>/dev/null |
|
||||
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
|
||||
echo "$tab" >> "$depfile"
|
||||
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
msvcmsys)
|
||||
# This case exists only to let depend.m4 do its work. It works by
|
||||
# looking at the text of this script. This case will never be run,
|
||||
# since it is checked for above.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
none)
|
||||
exec "$@"
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Unknown depmode $depmode" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 2
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC0"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
|
@ -0,0 +1,77 @@
|
|||
It is possible to use this driver with an ALPS Glidepoint device. If
|
||||
you use an older 2.6 linux kernel which has no ALPS input driver, you
|
||||
need to apply the ALPS kernel patch in the alps.patch file. See
|
||||
http://www.kernelnewbies.org/faq/ for information about how to apply
|
||||
kernel patches and compile kernels.
|
||||
|
||||
Note! If you use kernel 2.6.11 or later, the alps patch is already
|
||||
included, so you don't have to patch your kernel.
|
||||
|
||||
Since ALPS touchpads don't have the same resolution as Synaptics
|
||||
touchpads, you probably have to change some parameter values. Here is
|
||||
an example InputDevice section for the X configuration file.
|
||||
|
||||
Section "InputDevice"
|
||||
Driver "synaptics"
|
||||
Identifier "Mouse[1]"
|
||||
Option "Device" "/dev/psaux"
|
||||
Option "Protocol" "auto-dev"
|
||||
# enable SHMConfig if you want to enable synclient
|
||||
# NB: enabling SHMConfig is insecure, since any user can invoke it
|
||||
# Option "SHMConfig" "on"
|
||||
Option "LeftEdge" "120"
|
||||
Option "RightEdge" "830"
|
||||
Option "TopEdge" "120"
|
||||
Option "BottomEdge" "650"
|
||||
Option "FingerLow" "14"
|
||||
Option "FingerHigh" "15"
|
||||
Option "MaxTapTime" "180"
|
||||
Option "MaxTapMove" "110"
|
||||
Option "EmulateMidButtonTime" "75"
|
||||
Option "VertScrollDelta" "20"
|
||||
Option "HorizScrollDelta" "20"
|
||||
Option "CornerCoasting" "1"
|
||||
Option "CoastingSpeed" "3"
|
||||
Option "MinSpeed" "0.3"
|
||||
Option "MaxSpeed" "0.75"
|
||||
Option "AccelFactor" "0.015"
|
||||
Option "EdgeMotionMinSpeed" "200"
|
||||
Option "EdgeMotionMaxSpeed" "200"
|
||||
Option "UpDownScrolling" "1"
|
||||
Option "CircularScrolling" "1"
|
||||
Option "CircScrollDelta" "0.1"
|
||||
Option "CircScrollTrigger" "2"
|
||||
EndSection
|
||||
|
||||
If you use a 2.4 linux kernel, you don't need to patch the kernel, but
|
||||
you should instead set "Protocol" like this:
|
||||
|
||||
Option "Protocol" "alps"
|
||||
|
||||
|
||||
On some (all?) ALPS hardware, it is not possible to disable tapping
|
||||
unless you apply the patch below. However, some users have reported
|
||||
that this patch breaks tap-and-drag operations, which is why the patch
|
||||
is not included in the main alps.patch file.
|
||||
|
||||
--- linux/drivers/input/mouse/alps.c~alps-test3 2004-02-28 20:46:34.000000000 +0100
|
||||
+++ linux-petero/drivers/input/mouse/alps.c 2004-02-28 20:49:12.000000000 +0100
|
||||
@@ -87,6 +87,10 @@ static void ALPS_process_packet(struct p
|
||||
y = (packet[4] & 0x7f) | ((packet[3] & 0x70)<<(7-4));
|
||||
z = packet[5];
|
||||
|
||||
+ if (packet[2] & 1) {
|
||||
+ z = 35;
|
||||
+ }
|
||||
+
|
||||
if (z > 0) {
|
||||
input_report_abs(dev, ABS_X, x);
|
||||
input_report_abs(dev, ABS_Y, y);
|
||||
@@ -97,7 +101,6 @@ static void ALPS_process_packet(struct p
|
||||
if (z > 30) input_report_key(dev, BTN_TOUCH, 1);
|
||||
if (z < 25) input_report_key(dev, BTN_TOUCH, 0);
|
||||
|
||||
- left |= (packet[2] ) & 1;
|
||||
left |= (packet[3] ) & 1;
|
||||
right |= (packet[3] >> 1) & 1;
|
||||
if (packet[0] == 0xff) {
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,152 @@
|
|||
Trouble-shooting guide
|
||||
----------------------
|
||||
|
||||
Contents
|
||||
--------
|
||||
|
||||
1. Check that the touchpad is correctly detected by the kernel
|
||||
2. Check that an external PS/2 mouse isn't causing problems
|
||||
3. Check if some other program is using the /dev/psaux device
|
||||
4. Check that the evdev kernel driver is available
|
||||
5. Check that the synaptics driver is properly loaded by the X server
|
||||
6. Check that the touchpad is enabled in the BIOS/hardware
|
||||
|
||||
|
||||
1. Check that the touchpad is correctly detected by the kernel
|
||||
--------------------------------------------------------------
|
||||
|
||||
If you are using a 2.6 linux kernel, check the /proc/bus/input/devices
|
||||
file. The touchpad must be identified a "SynPS/2 Synaptics TouchPad"
|
||||
or an "AlpsPS/2 ALPS TouchPad". If it is identified as a "PS/2 Generic
|
||||
Mouse" or "PS/2 Synaptics TouchPad", something is wrong.
|
||||
|
||||
Possible fixes:
|
||||
|
||||
1. Check your BIOS settings. Some BIOSes can do USB -> PS/2 mouse
|
||||
emulation which can interfere with the touchpad. There may be a way
|
||||
to disable the legacy mouse emulation from the BIOS setup program.
|
||||
|
||||
2. Arrange so that the kernel initializes the USB subsystem before the
|
||||
PS/2 touchpad. Initializing the USB mouse sometimes disables the
|
||||
BIOS emulation. Compiling psmouse as a module and loading it in
|
||||
/etc/rc.d/rc.local usually assures the USB is initialized first.
|
||||
|
||||
3. Disconnect the USB mouse and restart the computer. (Not really a fix,
|
||||
but can help when trying to figure out what's wrong.)
|
||||
|
||||
4. Make sure your boot loader doesn't pass any parameter to the kernel
|
||||
that disables mouse extensions. ("psmouse_proto=bare" for example).
|
||||
Alternatively, if psmouse is compiled as a module, make sure that
|
||||
modprobe doesn't pass such parameters. Check /etc/modprobe.conf and
|
||||
"rmmod psmouse; modprobe -v psmouse".
|
||||
|
||||
If you run a 2.4 kernel or an non-linux kernel, the
|
||||
/proc/bus/input/devices file is not available, but the BIOS setting
|
||||
could be relevant anyway.
|
||||
|
||||
|
||||
2. Check that an external PS/2 mouse isn't causing problems
|
||||
-----------------------------------------------------------
|
||||
|
||||
If you want to use an external PS/2 mouse at the same time as the
|
||||
synaptics touchpad driver, you must use a 2.6 linux kernel and your
|
||||
hardware (keyboard controller) must support active multiplexing. You
|
||||
should see something like this when the computer boots:
|
||||
|
||||
mice: PS/2 mouse device common for all mice
|
||||
i8042.c: Detected active multiplexing controller, rev 1.1.
|
||||
serio: i8042 AUX0 port at 0x60,0x64 irq 12
|
||||
serio: i8042 AUX1 port at 0x60,0x64 irq 12
|
||||
serio: i8042 AUX2 port at 0x60,0x64 irq 12
|
||||
serio: i8042 AUX3 port at 0x60,0x64 irq 12
|
||||
|
||||
If you don't use a 2.6 kernel or your hardware doesn't support active
|
||||
multiplexing, you can't use an external PS/2 mouse together with the
|
||||
touchpad driver.
|
||||
|
||||
|
||||
3. Check if some other program is using the /dev/psaux device
|
||||
-------------------------------------------------------------
|
||||
|
||||
If you use a 2.4 linux kernel, only one program at a time can reliably
|
||||
read from /dev/psaux. This means that if you for example have GPM
|
||||
running, it will probably prevent the synaptics driver from working
|
||||
correctly. It also means that if you have a second InputDevice in your
|
||||
X configuration file, it must not read from /dev/psaux. You probably
|
||||
want it to read from /dev/input/mice instead, which will handle USB
|
||||
mice in both 2.4 and 2.6 linux kernels, and both USB and external PS/2
|
||||
mice if you use a 2.6 kernel.
|
||||
|
||||
The 2.6 linux kernel fixes the /dev/psaux shortcoming, so that you can
|
||||
safely run GPM and the synaptics driver at the same time.
|
||||
|
||||
|
||||
4. Check that the evdev kernel driver is available
|
||||
--------------------------------------------------
|
||||
|
||||
If you are using a 2.6 linux kernel, the evdev kernel driver is needed
|
||||
for the X driver to be able to communicate with the kernel driver.
|
||||
Check the /proc/bus/input/devices file. The Handlers= line should
|
||||
contain an event device name, like this:
|
||||
|
||||
H: Handlers=mouse0 event0
|
||||
|
||||
If there is no event handler, you either have to load the evdev kernel
|
||||
module or recompile the kernel and build it into the kernel. If you
|
||||
don't want to recompile the kernel, adding "/sbin/modprobe evdev" to
|
||||
/etc/rc.d/rc.sysinit usually works.
|
||||
|
||||
|
||||
5. Check that the synaptics driver is properly loaded by the X server
|
||||
---------------------------------------------------------------------
|
||||
|
||||
The X log file is usually called /var/log/XFree86.0.log or
|
||||
/var/log/Xorg.0.log. It should contain something like this:
|
||||
|
||||
(II) LoadModule: "synaptics"
|
||||
(II) Loading /usr/X11R6/lib/modules/input/synaptics_drv.o
|
||||
(II) Module synaptics: vendor="X.Org Foundation"
|
||||
compiled for 4.3.99.902, module version = 1.0.0
|
||||
Module class: X.Org XInput Driver
|
||||
ABI class: X.Org XInput driver, version 0.4
|
||||
|
||||
If the LoadModule line is missing, you probably forgot to add
|
||||
|
||||
Load "synaptics"
|
||||
|
||||
to the "Module" section in the X config file, or you modified the
|
||||
wrong config file. Some systems that have been upgraded from XFree86
|
||||
to Xorg or from XFree86 3.x to XFree86 4.x can have multiple config
|
||||
files in the /etc/X11/ directory, but only one is used.
|
||||
|
||||
Next, check that the log file also contains a line like this:
|
||||
|
||||
(II) Synaptics touchpad driver version 0.13.4
|
||||
|
||||
If there is no such line, there is probably a binary compatibility
|
||||
problem between the synaptics driver and the X server.
|
||||
|
||||
Possible fixes:
|
||||
|
||||
1. Try upgrading to the latest synaptics driver.
|
||||
|
||||
2. Try installing the X SDK package if it is available for your
|
||||
version of X. (In Fedora Core 2, that package is called
|
||||
xorg-x11-sdk-6.7.0-2.i386.rpm.) Then re-compile the synaptics
|
||||
driver and try again.
|
||||
|
||||
3. Make sure the driver is compiled with the same compiler version as
|
||||
the X server.
|
||||
|
||||
|
||||
6. Check that the touchpad is enabled in the BIOS/hardware
|
||||
----------------------------------------------------------
|
||||
|
||||
On some computers, it is possible to disable the touchpad either with
|
||||
a special key combination, from the BIOS, or with a special touchpad
|
||||
on/off button. On some machines, cycling the power doesn't
|
||||
automatically reenable the touchpad.
|
||||
|
||||
If the touchpad appears to be dead, try to enable it from the BIOS or
|
||||
using a key combination. One user also reported that he had to remove
|
||||
the computer battery to make his touchpad operational again.
|
|
@ -0,0 +1,21 @@
|
|||
# Copyright 2005 Adam Jackson.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
||||
# license, and/or sell copies of the Software, and to permit persons to whom
|
||||
# the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
sdk_HEADERS = synaptics-properties.h
|
|
@ -0,0 +1,605 @@
|
|||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# Copyright 2005 Adam Jackson.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
||||
# license, and/or sell copies of the Software, and to permit persons to whom
|
||||
# the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = include
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(sdk_HEADERS) $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||
am__install_max = 40
|
||||
am__nobase_strip_setup = \
|
||||
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||
am__nobase_strip = \
|
||||
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||
am__nobase_list = $(am__nobase_strip_setup); \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||
if (++n[$$2] == $(am__install_max)) \
|
||||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||
END { for (dir in files) print dir, files[dir] }'
|
||||
am__base_list = \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
am__uninstall_files_from_dir = { \
|
||||
test -z "$$files" \
|
||||
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||
}
|
||||
am__installdirs = "$(DESTDIR)$(sdkdir)"
|
||||
HEADERS = $(sdk_HEADERS)
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
# Read a list of newline-separated strings from the standard input,
|
||||
# and print each of them once, without duplicates. Input order is
|
||||
# *not* preserved.
|
||||
am__uniquify_input = $(AWK) '\
|
||||
BEGIN { nonempty = 0; } \
|
||||
{ items[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in items) print i; }; } \
|
||||
'
|
||||
# Make sure the list of sources is unique. This is necessary because,
|
||||
# e.g., the same source file might be shared among _SOURCES variables
|
||||
# for different programs/libraries.
|
||||
am__define_uniq_tagged_files = \
|
||||
list='$(am__tagged_files)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
|
||||
ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
APP_MAN_DIR = @APP_MAN_DIR@
|
||||
APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
BASE_CFLAGS = @BASE_CFLAGS@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CHANGELOG_CMD = @CHANGELOG_CMD@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CWARNFLAGS = @CWARNFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
|
||||
DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CMD = @INSTALL_CMD@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBEVDEV_CFLAGS = @LIBEVDEV_CFLAGS@
|
||||
LIBEVDEV_LIBS = @LIBEVDEV_LIBS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIB_MAN_DIR = @LIB_MAN_DIR@
|
||||
LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MAN_SUBSTS = @MAN_SUBSTS@
|
||||
MISC_MAN_DIR = @MISC_MAN_DIR@
|
||||
MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRICT_CFLAGS = @STRICT_CFLAGS@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
XI_CFLAGS = @XI_CFLAGS@
|
||||
XI_LIBS = @XI_LIBS@
|
||||
XORG_CFLAGS = @XORG_CFLAGS@
|
||||
XORG_LIBS = @XORG_LIBS@
|
||||
XORG_MALLOC_DEBUG_ENV = @XORG_MALLOC_DEBUG_ENV@
|
||||
XORG_MAN_PAGE = @XORG_MAN_PAGE@
|
||||
XTST_CFLAGS = @XTST_CFLAGS@
|
||||
XTST_LIBS = @XTST_LIBS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
configdir = @configdir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
inputdir = @inputdir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sdkdir = @sdkdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
sdk_HEADERS = synaptics-properties.h
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign include/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
install-sdkHEADERS: $(sdk_HEADERS)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(sdk_HEADERS)'; test -n "$(sdkdir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(sdkdir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(sdkdir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(sdkdir)'"; \
|
||||
$(INSTALL_HEADER) $$files "$(DESTDIR)$(sdkdir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-sdkHEADERS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(sdk_HEADERS)'; test -n "$(sdkdir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(sdkdir)'; $(am__uninstall_files_from_dir)
|
||||
|
||||
ID: $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
||||
tags: tags-am
|
||||
TAGS: tags
|
||||
|
||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
$(am__define_uniq_tagged_files); \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: ctags-am
|
||||
|
||||
CTAGS: ctags
|
||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
cscopelist: cscopelist-am
|
||||
|
||||
cscopelist-am: $(am__tagged_files)
|
||||
list='$(am__tagged_files)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(HEADERS)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(sdkdir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-sdkHEADERS
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-sdkHEADERS
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
|
||||
clean-libtool cscopelist-am ctags ctags-am distclean \
|
||||
distclean-generic distclean-libtool distclean-tags distdir dvi \
|
||||
dvi-am html html-am info info-am install install-am \
|
||||
install-data install-data-am install-dvi install-dvi-am \
|
||||
install-exec install-exec-am install-html install-html-am \
|
||||
install-info install-info-am install-man install-pdf \
|
||||
install-pdf-am install-ps install-ps-am install-sdkHEADERS \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
maintainer-clean maintainer-clean-generic mostlyclean \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
tags tags-am uninstall uninstall-am uninstall-sdkHEADERS
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
|
@ -0,0 +1,161 @@
|
|||
/*
|
||||
* Copyright © 2008 Red Hat, Inc.
|
||||
*
|
||||
* Permission to use, copy, modify, distribute, and sell this software
|
||||
* and its documentation for any purpose is hereby granted without
|
||||
* fee, provided that the above copyright notice appear in all copies
|
||||
* and that both that copyright notice and this permission notice
|
||||
* appear in supporting documentation, and that the name of Red Hat
|
||||
* not be used in advertising or publicity pertaining to distribution
|
||||
* of the software without specific, written prior permission. Red
|
||||
* Hat makes no representations about the suitability of this software
|
||||
* for any purpose. It is provided "as is" without express or implied
|
||||
* warranty.
|
||||
*
|
||||
* THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
|
||||
* NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*
|
||||
* Authors: Peter Hutterer
|
||||
*/
|
||||
|
||||
#ifndef _SYNAPTICS_PROPERTIES_H_
|
||||
#define _SYNAPTICS_PROPERTIES_H_
|
||||
|
||||
/**
|
||||
* Properties exported by the synaptics driver. These properties are
|
||||
* recognized by the driver and will change its behavior when modified.
|
||||
* For a description of what each property does, see synaptics.h.
|
||||
*/
|
||||
|
||||
/* 32 bit, 4 values, left, right, top, bottom */
|
||||
#define SYNAPTICS_PROP_EDGES "Synaptics Edges"
|
||||
|
||||
/* 32 bit, 3 values, low, high, <deprecated> */
|
||||
#define SYNAPTICS_PROP_FINGER "Synaptics Finger"
|
||||
|
||||
/* 32 bit */
|
||||
#define SYNAPTICS_PROP_TAP_TIME "Synaptics Tap Time"
|
||||
|
||||
/* 32 bit */
|
||||
#define SYNAPTICS_PROP_TAP_MOVE "Synaptics Tap Move"
|
||||
|
||||
/* 32 bit, 3 values, single touch timeout, max tapping time for double
|
||||
* taps, duration of a single click */
|
||||
#define SYNAPTICS_PROP_TAP_DURATIONS "Synaptics Tap Durations"
|
||||
|
||||
/* 8 bit (BOOL) */
|
||||
#define SYNAPTICS_PROP_CLICKPAD "Synaptics ClickPad"
|
||||
|
||||
/* 8 bit (BOOL), <deprecated> */
|
||||
#define SYNAPTICS_PROP_TAP_FAST "Synaptics Tap FastTap"
|
||||
|
||||
/* 32 bit */
|
||||
#define SYNAPTICS_PROP_MIDDLE_TIMEOUT "Synaptics Middle Button Timeout"
|
||||
|
||||
/* 32 bit */
|
||||
#define SYNAPTICS_PROP_TWOFINGER_PRESSURE "Synaptics Two-Finger Pressure"
|
||||
|
||||
/* 32 bit */
|
||||
#define SYNAPTICS_PROP_TWOFINGER_WIDTH "Synaptics Two-Finger Width"
|
||||
|
||||
/* 32 bit, 2 values, vert, horiz */
|
||||
#define SYNAPTICS_PROP_SCROLL_DISTANCE "Synaptics Scrolling Distance"
|
||||
|
||||
/* 8 bit (BOOL), 3 values, vertical, horizontal, corner */
|
||||
#define SYNAPTICS_PROP_SCROLL_EDGE "Synaptics Edge Scrolling"
|
||||
|
||||
/* 8 bit (BOOL), 2 values, vertical, horizontal */
|
||||
#define SYNAPTICS_PROP_SCROLL_TWOFINGER "Synaptics Two-Finger Scrolling"
|
||||
|
||||
/* FLOAT, 4 values, min, max, accel, <deprecated> */
|
||||
#define SYNAPTICS_PROP_SPEED "Synaptics Move Speed"
|
||||
|
||||
/* 8 bit (BOOL), 2 values, updown, leftright */
|
||||
#define SYNAPTICS_PROP_BUTTONSCROLLING "Synaptics Button Scrolling"
|
||||
|
||||
/* 8 bit (BOOL), 2 values, updown, leftright */
|
||||
#define SYNAPTICS_PROP_BUTTONSCROLLING_REPEAT "Synaptics Button Scrolling Repeat"
|
||||
|
||||
/* 32 bit */
|
||||
#define SYNAPTICS_PROP_BUTTONSCROLLING_TIME "Synaptics Button Scrolling Time"
|
||||
|
||||
/* 8 bit, valid values (0, 1, 2) */
|
||||
#define SYNAPTICS_PROP_OFF "Synaptics Off"
|
||||
|
||||
/* 8 bit (BOOL) */
|
||||
#define SYNAPTICS_PROP_GUESTMOUSE "Synaptics Guestmouse Off"
|
||||
|
||||
/* 8 bit (BOOL) */
|
||||
#define SYNAPTICS_PROP_LOCKED_DRAGS "Synaptics Locked Drags"
|
||||
|
||||
/* 32 bit */
|
||||
#define SYNAPTICS_PROP_LOCKED_DRAGS_TIMEOUT "Synaptics Locked Drags Timeout"
|
||||
|
||||
/* 8 bit, up to MAX_TAP values (see synaptics.h), 0 disables an
|
||||
* element. order: RT, RB, LT, LB, F1, F2, F3 */
|
||||
#define SYNAPTICS_PROP_TAP_ACTION "Synaptics Tap Action"
|
||||
|
||||
/* 8 bit, up to MAX_CLICK values (see synaptics.h), 0 disables an
|
||||
* element. order: Finger 1, 2, 3 */
|
||||
#define SYNAPTICS_PROP_CLICK_ACTION "Synaptics Click Action"
|
||||
|
||||
/* 8 bit (BOOL) */
|
||||
#define SYNAPTICS_PROP_CIRCULAR_SCROLLING "Synaptics Circular Scrolling"
|
||||
|
||||
/* FLOAT */
|
||||
#define SYNAPTICS_PROP_CIRCULAR_SCROLLING_DIST "Synaptics Circular Scrolling Distance"
|
||||
|
||||
/* 8 bit, valid values 0..8 (inclusive)
|
||||
* order: any edge, top, top + right, right, right + bottom, bottom, bottom +
|
||||
* left, left, left + top */
|
||||
#define SYNAPTICS_PROP_CIRCULAR_SCROLLING_TRIGGER "Synaptics Circular Scrolling Trigger"
|
||||
|
||||
/* 8 bit (BOOL) */
|
||||
#define SYNAPTICS_PROP_CIRCULAR_PAD "Synaptics Circular Pad"
|
||||
|
||||
/* 8 bit (BOOL) */
|
||||
#define SYNAPTICS_PROP_PALM_DETECT "Synaptics Palm Detection"
|
||||
|
||||
/* 32 bit, 2 values, width, z */
|
||||
#define SYNAPTICS_PROP_PALM_DIMENSIONS "Synaptics Palm Dimensions"
|
||||
|
||||
/* FLOAT, 2 values, speed, friction */
|
||||
#define SYNAPTICS_PROP_COASTING_SPEED "Synaptics Coasting Speed"
|
||||
|
||||
/* CARD32, 2 values, min, max */
|
||||
#define SYNAPTICS_PROP_PRESSURE_MOTION "Synaptics Pressure Motion"
|
||||
|
||||
/* FLOAT, 2 values, min, max */
|
||||
#define SYNAPTICS_PROP_PRESSURE_MOTION_FACTOR "Synaptics Pressure Motion Factor"
|
||||
|
||||
/* 8 bit (BOOL) */
|
||||
#define SYNAPTICS_PROP_GRAB "Synaptics Grab Event Device"
|
||||
|
||||
/* 8 bit (BOOL), 1 value, tap-and-drag */
|
||||
#define SYNAPTICS_PROP_GESTURES "Synaptics Gestures"
|
||||
|
||||
/* 8 bit (BOOL), 7 values (read-only), has_left, has_middle, has_right,
|
||||
* has_double, has_triple, has_pressure, has_width */
|
||||
#define SYNAPTICS_PROP_CAPABILITIES "Synaptics Capabilities"
|
||||
|
||||
/* 32 bit unsigned, 2 values, vertical, horizontal in units/millimeter */
|
||||
#define SYNAPTICS_PROP_RESOLUTION "Synaptics Pad Resolution"
|
||||
|
||||
/* 32 bit, 4 values, left, right, top, bottom */
|
||||
#define SYNAPTICS_PROP_AREA "Synaptics Area"
|
||||
|
||||
/* 32 bit, 4 values, left, right, top, buttom */
|
||||
#define SYNAPTICS_PROP_SOFTBUTTON_AREAS "Synaptics Soft Button Areas"
|
||||
|
||||
/* 32 bit, 4 values, left, right, top, buttom */
|
||||
#define SYNAPTICS_PROP_SECONDARY_SOFTBUTTON_AREAS "Synaptics Secondary Soft Button Areas"
|
||||
|
||||
/* 32 Bit Integer, 2 values, horizontal hysteresis, vertical hysteresis */
|
||||
#define SYNAPTICS_PROP_NOISE_CANCELLATION "Synaptics Noise Cancellation"
|
||||
|
||||
#endif /* _SYNAPTICS_PROPERTIES_H_ */
|
|
@ -0,0 +1,501 @@
|
|||
#!/bin/sh
|
||||
# install - install a program, script, or datafile
|
||||
|
||||
scriptversion=2016-01-11.22; # UTC
|
||||
|
||||
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||
# following copyright and license.
|
||||
#
|
||||
# Copyright (C) 1994 X Consortium
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to
|
||||
# deal in the Software without restriction, including without limitation the
|
||||
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
# sell copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in
|
||||
# all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
|
||||
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
# Except as contained in this notice, the name of the X Consortium shall not
|
||||
# be used in advertising or otherwise to promote the sale, use or other deal-
|
||||
# ings in this Software without prior written authorization from the X Consor-
|
||||
# tium.
|
||||
#
|
||||
#
|
||||
# FSF changes to this file are in the public domain.
|
||||
#
|
||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||
# 'make' implicit rules from creating a file called install from it
|
||||
# when there is no Makefile.
|
||||
#
|
||||
# This script is compatible with the BSD install script, but was written
|
||||
# from scratch.
|
||||
|
||||
tab=' '
|
||||
nl='
|
||||
'
|
||||
IFS=" $tab$nl"
|
||||
|
||||
# Set DOITPROG to "echo" to test this script.
|
||||
|
||||
doit=${DOITPROG-}
|
||||
doit_exec=${doit:-exec}
|
||||
|
||||
# Put in absolute file names if you don't have them in your path;
|
||||
# or use environment vars.
|
||||
|
||||
chgrpprog=${CHGRPPROG-chgrp}
|
||||
chmodprog=${CHMODPROG-chmod}
|
||||
chownprog=${CHOWNPROG-chown}
|
||||
cmpprog=${CMPPROG-cmp}
|
||||
cpprog=${CPPROG-cp}
|
||||
mkdirprog=${MKDIRPROG-mkdir}
|
||||
mvprog=${MVPROG-mv}
|
||||
rmprog=${RMPROG-rm}
|
||||
stripprog=${STRIPPROG-strip}
|
||||
|
||||
posix_mkdir=
|
||||
|
||||
# Desired mode of installed file.
|
||||
mode=0755
|
||||
|
||||
chgrpcmd=
|
||||
chmodcmd=$chmodprog
|
||||
chowncmd=
|
||||
mvcmd=$mvprog
|
||||
rmcmd="$rmprog -f"
|
||||
stripcmd=
|
||||
|
||||
src=
|
||||
dst=
|
||||
dir_arg=
|
||||
dst_arg=
|
||||
|
||||
copy_on_change=false
|
||||
is_target_a_directory=possibly
|
||||
|
||||
usage="\
|
||||
Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
||||
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
||||
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
||||
or: $0 [OPTION]... -d DIRECTORIES...
|
||||
|
||||
In the 1st form, copy SRCFILE to DSTFILE.
|
||||
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
||||
In the 4th, create DIRECTORIES.
|
||||
|
||||
Options:
|
||||
--help display this help and exit.
|
||||
--version display version info and exit.
|
||||
|
||||
-c (ignored)
|
||||
-C install only if different (preserve the last data modification time)
|
||||
-d create directories instead of installing files.
|
||||
-g GROUP $chgrpprog installed files to GROUP.
|
||||
-m MODE $chmodprog installed files to MODE.
|
||||
-o USER $chownprog installed files to USER.
|
||||
-s $stripprog installed files.
|
||||
-t DIRECTORY install into DIRECTORY.
|
||||
-T report an error if DSTFILE is a directory.
|
||||
|
||||
Environment variables override the default commands:
|
||||
CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
|
||||
RMPROG STRIPPROG
|
||||
"
|
||||
|
||||
while test $# -ne 0; do
|
||||
case $1 in
|
||||
-c) ;;
|
||||
|
||||
-C) copy_on_change=true;;
|
||||
|
||||
-d) dir_arg=true;;
|
||||
|
||||
-g) chgrpcmd="$chgrpprog $2"
|
||||
shift;;
|
||||
|
||||
--help) echo "$usage"; exit $?;;
|
||||
|
||||
-m) mode=$2
|
||||
case $mode in
|
||||
*' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
|
||||
echo "$0: invalid mode: $mode" >&2
|
||||
exit 1;;
|
||||
esac
|
||||
shift;;
|
||||
|
||||
-o) chowncmd="$chownprog $2"
|
||||
shift;;
|
||||
|
||||
-s) stripcmd=$stripprog;;
|
||||
|
||||
-t)
|
||||
is_target_a_directory=always
|
||||
dst_arg=$2
|
||||
# Protect names problematic for 'test' and other utilities.
|
||||
case $dst_arg in
|
||||
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
||||
esac
|
||||
shift;;
|
||||
|
||||
-T) is_target_a_directory=never;;
|
||||
|
||||
--version) echo "$0 $scriptversion"; exit $?;;
|
||||
|
||||
--) shift
|
||||
break;;
|
||||
|
||||
-*) echo "$0: invalid option: $1" >&2
|
||||
exit 1;;
|
||||
|
||||
*) break;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
# We allow the use of options -d and -T together, by making -d
|
||||
# take the precedence; this is for compatibility with GNU install.
|
||||
|
||||
if test -n "$dir_arg"; then
|
||||
if test -n "$dst_arg"; then
|
||||
echo "$0: target directory not allowed when installing a directory." >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
|
||||
# When -d is used, all remaining arguments are directories to create.
|
||||
# When -t is used, the destination is already specified.
|
||||
# Otherwise, the last argument is the destination. Remove it from $@.
|
||||
for arg
|
||||
do
|
||||
if test -n "$dst_arg"; then
|
||||
# $@ is not empty: it contains at least $arg.
|
||||
set fnord "$@" "$dst_arg"
|
||||
shift # fnord
|
||||
fi
|
||||
shift # arg
|
||||
dst_arg=$arg
|
||||
# Protect names problematic for 'test' and other utilities.
|
||||
case $dst_arg in
|
||||
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
|
||||
if test $# -eq 0; then
|
||||
if test -z "$dir_arg"; then
|
||||
echo "$0: no input file specified." >&2
|
||||
exit 1
|
||||
fi
|
||||
# It's OK to call 'install-sh -d' without argument.
|
||||
# This can happen when creating conditional directories.
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if test -z "$dir_arg"; then
|
||||
if test $# -gt 1 || test "$is_target_a_directory" = always; then
|
||||
if test ! -d "$dst_arg"; then
|
||||
echo "$0: $dst_arg: Is not a directory." >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -z "$dir_arg"; then
|
||||
do_exit='(exit $ret); exit $ret'
|
||||
trap "ret=129; $do_exit" 1
|
||||
trap "ret=130; $do_exit" 2
|
||||
trap "ret=141; $do_exit" 13
|
||||
trap "ret=143; $do_exit" 15
|
||||
|
||||
# Set umask so as not to create temps with too-generous modes.
|
||||
# However, 'strip' requires both read and write access to temps.
|
||||
case $mode in
|
||||
# Optimize common cases.
|
||||
*644) cp_umask=133;;
|
||||
*755) cp_umask=22;;
|
||||
|
||||
*[0-7])
|
||||
if test -z "$stripcmd"; then
|
||||
u_plus_rw=
|
||||
else
|
||||
u_plus_rw='% 200'
|
||||
fi
|
||||
cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
|
||||
*)
|
||||
if test -z "$stripcmd"; then
|
||||
u_plus_rw=
|
||||
else
|
||||
u_plus_rw=,u+rw
|
||||
fi
|
||||
cp_umask=$mode$u_plus_rw;;
|
||||
esac
|
||||
fi
|
||||
|
||||
for src
|
||||
do
|
||||
# Protect names problematic for 'test' and other utilities.
|
||||
case $src in
|
||||
-* | [=\(\)!]) src=./$src;;
|
||||
esac
|
||||
|
||||
if test -n "$dir_arg"; then
|
||||
dst=$src
|
||||
dstdir=$dst
|
||||
test -d "$dstdir"
|
||||
dstdir_status=$?
|
||||
else
|
||||
|
||||
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
||||
# might cause directories to be created, which would be especially bad
|
||||
# if $src (and thus $dsttmp) contains '*'.
|
||||
if test ! -f "$src" && test ! -d "$src"; then
|
||||
echo "$0: $src does not exist." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -z "$dst_arg"; then
|
||||
echo "$0: no destination specified." >&2
|
||||
exit 1
|
||||
fi
|
||||
dst=$dst_arg
|
||||
|
||||
# If destination is a directory, append the input filename; won't work
|
||||
# if double slashes aren't ignored.
|
||||
if test -d "$dst"; then
|
||||
if test "$is_target_a_directory" = never; then
|
||||
echo "$0: $dst_arg: Is a directory" >&2
|
||||
exit 1
|
||||
fi
|
||||
dstdir=$dst
|
||||
dst=$dstdir/`basename "$src"`
|
||||
dstdir_status=0
|
||||
else
|
||||
dstdir=`dirname "$dst"`
|
||||
test -d "$dstdir"
|
||||
dstdir_status=$?
|
||||
fi
|
||||
fi
|
||||
|
||||
obsolete_mkdir_used=false
|
||||
|
||||
if test $dstdir_status != 0; then
|
||||
case $posix_mkdir in
|
||||
'')
|
||||
# Create intermediate dirs using mode 755 as modified by the umask.
|
||||
# This is like FreeBSD 'install' as of 1997-10-28.
|
||||
umask=`umask`
|
||||
case $stripcmd.$umask in
|
||||
# Optimize common cases.
|
||||
*[2367][2367]) mkdir_umask=$umask;;
|
||||
.*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
|
||||
|
||||
*[0-7])
|
||||
mkdir_umask=`expr $umask + 22 \
|
||||
- $umask % 100 % 40 + $umask % 20 \
|
||||
- $umask % 10 % 4 + $umask % 2
|
||||
`;;
|
||||
*) mkdir_umask=$umask,go-w;;
|
||||
esac
|
||||
|
||||
# With -d, create the new directory with the user-specified mode.
|
||||
# Otherwise, rely on $mkdir_umask.
|
||||
if test -n "$dir_arg"; then
|
||||
mkdir_mode=-m$mode
|
||||
else
|
||||
mkdir_mode=
|
||||
fi
|
||||
|
||||
posix_mkdir=false
|
||||
case $umask in
|
||||
*[123567][0-7][0-7])
|
||||
# POSIX mkdir -p sets u+wx bits regardless of umask, which
|
||||
# is incompatible with FreeBSD 'install' when (umask & 300) != 0.
|
||||
;;
|
||||
*)
|
||||
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
|
||||
trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
|
||||
|
||||
if (umask $mkdir_umask &&
|
||||
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
|
||||
then
|
||||
if test -z "$dir_arg" || {
|
||||
# Check for POSIX incompatibilities with -m.
|
||||
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
|
||||
# other-writable bit of parent directory when it shouldn't.
|
||||
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
|
||||
ls_ld_tmpdir=`ls -ld "$tmpdir"`
|
||||
case $ls_ld_tmpdir in
|
||||
d????-?r-*) different_mode=700;;
|
||||
d????-?--*) different_mode=755;;
|
||||
*) false;;
|
||||
esac &&
|
||||
$mkdirprog -m$different_mode -p -- "$tmpdir" && {
|
||||
ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
|
||||
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
|
||||
}
|
||||
}
|
||||
then posix_mkdir=:
|
||||
fi
|
||||
rmdir "$tmpdir/d" "$tmpdir"
|
||||
else
|
||||
# Remove any dirs left behind by ancient mkdir implementations.
|
||||
rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
|
||||
fi
|
||||
trap '' 0;;
|
||||
esac;;
|
||||
esac
|
||||
|
||||
if
|
||||
$posix_mkdir && (
|
||||
umask $mkdir_umask &&
|
||||
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
|
||||
)
|
||||
then :
|
||||
else
|
||||
|
||||
# The umask is ridiculous, or mkdir does not conform to POSIX,
|
||||
# or it failed possibly due to a race condition. Create the
|
||||
# directory the slow way, step by step, checking for races as we go.
|
||||
|
||||
case $dstdir in
|
||||
/*) prefix='/';;
|
||||
[-=\(\)!]*) prefix='./';;
|
||||
*) prefix='';;
|
||||
esac
|
||||
|
||||
oIFS=$IFS
|
||||
IFS=/
|
||||
set -f
|
||||
set fnord $dstdir
|
||||
shift
|
||||
set +f
|
||||
IFS=$oIFS
|
||||
|
||||
prefixes=
|
||||
|
||||
for d
|
||||
do
|
||||
test X"$d" = X && continue
|
||||
|
||||
prefix=$prefix$d
|
||||
if test -d "$prefix"; then
|
||||
prefixes=
|
||||
else
|
||||
if $posix_mkdir; then
|
||||
(umask=$mkdir_umask &&
|
||||
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
|
||||
# Don't fail if two instances are running concurrently.
|
||||
test -d "$prefix" || exit 1
|
||||
else
|
||||
case $prefix in
|
||||
*\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
|
||||
*) qprefix=$prefix;;
|
||||
esac
|
||||
prefixes="$prefixes '$qprefix'"
|
||||
fi
|
||||
fi
|
||||
prefix=$prefix/
|
||||
done
|
||||
|
||||
if test -n "$prefixes"; then
|
||||
# Don't fail if two instances are running concurrently.
|
||||
(umask $mkdir_umask &&
|
||||
eval "\$doit_exec \$mkdirprog $prefixes") ||
|
||||
test -d "$dstdir" || exit 1
|
||||
obsolete_mkdir_used=true
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -n "$dir_arg"; then
|
||||
{ test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
|
||||
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
|
||||
{ test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
|
||||
test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
|
||||
else
|
||||
|
||||
# Make a couple of temp file names in the proper directory.
|
||||
dsttmp=$dstdir/_inst.$$_
|
||||
rmtmp=$dstdir/_rm.$$_
|
||||
|
||||
# Trap to clean up those temp files at exit.
|
||||
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
||||
|
||||
# Copy the file name to the temp name.
|
||||
(umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
|
||||
|
||||
# and set any options; do chmod last to preserve setuid bits.
|
||||
#
|
||||
# If any of these fail, we abort the whole thing. If we want to
|
||||
# ignore errors from any of these, just make sure not to ignore
|
||||
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
||||
#
|
||||
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
|
||||
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
|
||||
{ test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
|
||||
{ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
|
||||
|
||||
# If -C, don't bother to copy if it wouldn't change the file.
|
||||
if $copy_on_change &&
|
||||
old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
|
||||
new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
|
||||
set -f &&
|
||||
set X $old && old=:$2:$4:$5:$6 &&
|
||||
set X $new && new=:$2:$4:$5:$6 &&
|
||||
set +f &&
|
||||
test "$old" = "$new" &&
|
||||
$cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
|
||||
then
|
||||
rm -f "$dsttmp"
|
||||
else
|
||||
# Rename the file to the real destination.
|
||||
$doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
|
||||
|
||||
# The rename failed, perhaps because mv can't rename something else
|
||||
# to itself, or perhaps because mv is so ancient that it does not
|
||||
# support -f.
|
||||
{
|
||||
# Now remove or move aside any old file at destination location.
|
||||
# We try this two ways since rm can't unlink itself on some
|
||||
# systems and the destination file might be busy for other
|
||||
# reasons. In this case, the final cleanup might fail but the new
|
||||
# file should still install successfully.
|
||||
{
|
||||
test ! -f "$dst" ||
|
||||
$doit $rmcmd -f "$dst" 2>/dev/null ||
|
||||
{ $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
|
||||
{ $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
|
||||
} ||
|
||||
{ echo "$0: cannot unlink or rename $dst" >&2
|
||||
(exit 1); exit 1
|
||||
}
|
||||
} &&
|
||||
|
||||
# Now rename the file to the real destination.
|
||||
$doit $mvcmd "$dsttmp" "$dst"
|
||||
}
|
||||
fi || exit 1
|
||||
|
||||
trap '' 0
|
||||
fi
|
||||
done
|
||||
|
||||
# Local variables:
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC0"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
|
@ -0,0 +1,47 @@
|
|||
# $Id$
|
||||
#
|
||||
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
# and/or sell copies of the Software, and to permit persons to whom the
|
||||
# Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
# DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
|
||||
synclientmandir = $(APP_MAN_DIR)
|
||||
synclientman_PRE = synclient.man
|
||||
synclientman_DATA = $(synclientman_PRE:man=@APP_MAN_SUFFIX@)
|
||||
|
||||
syndaemonmandir = $(APP_MAN_DIR)
|
||||
syndaemonman_PRE = syndaemon.man
|
||||
syndaemonman_DATA =$(syndaemonman_PRE:man=@APP_MAN_SUFFIX@)
|
||||
|
||||
drivermandir = $(DRIVER_MAN_DIR)
|
||||
driverman_PRE = synaptics.man
|
||||
driverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@)
|
||||
|
||||
EXTRA_DIST = synaptics.man synclient.man syndaemon.man
|
||||
|
||||
CLEANFILES = $(driverman_DATA) $(synclientman_DATA) $(syndaemonman_DATA)
|
||||
|
||||
SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
|
||||
|
||||
# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
|
||||
.man.$(DRIVER_MAN_SUFFIX):
|
||||
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
||||
.man.$(APP_MAN_SUFFIX):
|
||||
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
|
@ -0,0 +1,611 @@
|
|||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# $Id$
|
||||
#
|
||||
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
# and/or sell copies of the Software, and to permit persons to whom the
|
||||
# Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
# DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = man
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||
am__install_max = 40
|
||||
am__nobase_strip_setup = \
|
||||
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||
am__nobase_strip = \
|
||||
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||
am__nobase_list = $(am__nobase_strip_setup); \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||
if (++n[$$2] == $(am__install_max)) \
|
||||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||
END { for (dir in files) print dir, files[dir] }'
|
||||
am__base_list = \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
am__uninstall_files_from_dir = { \
|
||||
test -z "$$files" \
|
||||
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||
}
|
||||
am__installdirs = "$(DESTDIR)$(drivermandir)" \
|
||||
"$(DESTDIR)$(synclientmandir)" "$(DESTDIR)$(syndaemonmandir)"
|
||||
DATA = $(driverman_DATA) $(synclientman_DATA) $(syndaemonman_DATA)
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
|
||||
ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
APP_MAN_DIR = @APP_MAN_DIR@
|
||||
APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
BASE_CFLAGS = @BASE_CFLAGS@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CHANGELOG_CMD = @CHANGELOG_CMD@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CWARNFLAGS = @CWARNFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
|
||||
DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CMD = @INSTALL_CMD@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBEVDEV_CFLAGS = @LIBEVDEV_CFLAGS@
|
||||
LIBEVDEV_LIBS = @LIBEVDEV_LIBS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIB_MAN_DIR = @LIB_MAN_DIR@
|
||||
LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MAN_SUBSTS = @MAN_SUBSTS@
|
||||
MISC_MAN_DIR = @MISC_MAN_DIR@
|
||||
MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRICT_CFLAGS = @STRICT_CFLAGS@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
XI_CFLAGS = @XI_CFLAGS@
|
||||
XI_LIBS = @XI_LIBS@
|
||||
XORG_CFLAGS = @XORG_CFLAGS@
|
||||
XORG_LIBS = @XORG_LIBS@
|
||||
XORG_MALLOC_DEBUG_ENV = @XORG_MALLOC_DEBUG_ENV@
|
||||
XORG_MAN_PAGE = @XORG_MAN_PAGE@
|
||||
XTST_CFLAGS = @XTST_CFLAGS@
|
||||
XTST_LIBS = @XTST_LIBS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
configdir = @configdir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
inputdir = @inputdir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sdkdir = @sdkdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
synclientmandir = $(APP_MAN_DIR)
|
||||
synclientman_PRE = synclient.man
|
||||
synclientman_DATA = $(synclientman_PRE:man=@APP_MAN_SUFFIX@)
|
||||
syndaemonmandir = $(APP_MAN_DIR)
|
||||
syndaemonman_PRE = syndaemon.man
|
||||
syndaemonman_DATA = $(syndaemonman_PRE:man=@APP_MAN_SUFFIX@)
|
||||
drivermandir = $(DRIVER_MAN_DIR)
|
||||
driverman_PRE = synaptics.man
|
||||
driverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@)
|
||||
EXTRA_DIST = synaptics.man synclient.man syndaemon.man
|
||||
CLEANFILES = $(driverman_DATA) $(synclientman_DATA) $(syndaemonman_DATA)
|
||||
SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .$(DRIVER_MAN_SUFFIX) .man .$(APP_MAN_SUFFIX)
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign man/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign man/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
install-drivermanDATA: $(driverman_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(driverman_DATA)'; test -n "$(drivermandir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(drivermandir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(drivermandir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(drivermandir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(drivermandir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-drivermanDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(driverman_DATA)'; test -n "$(drivermandir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(drivermandir)'; $(am__uninstall_files_from_dir)
|
||||
install-synclientmanDATA: $(synclientman_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(synclientman_DATA)'; test -n "$(synclientmandir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(synclientmandir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(synclientmandir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(synclientmandir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(synclientmandir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-synclientmanDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(synclientman_DATA)'; test -n "$(synclientmandir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(synclientmandir)'; $(am__uninstall_files_from_dir)
|
||||
install-syndaemonmanDATA: $(syndaemonman_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(syndaemonman_DATA)'; test -n "$(syndaemonmandir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(syndaemonmandir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(syndaemonmandir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(syndaemonmandir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(syndaemonmandir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-syndaemonmanDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(syndaemonman_DATA)'; test -n "$(syndaemonmandir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(syndaemonmandir)'; $(am__uninstall_files_from_dir)
|
||||
tags TAGS:
|
||||
|
||||
ctags CTAGS:
|
||||
|
||||
cscope cscopelist:
|
||||
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(DATA)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(drivermandir)" "$(DESTDIR)$(synclientmandir)" "$(DESTDIR)$(syndaemonmandir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-drivermanDATA install-synclientmanDATA \
|
||||
install-syndaemonmanDATA
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-drivermanDATA uninstall-synclientmanDATA \
|
||||
uninstall-syndaemonmanDATA
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
|
||||
cscopelist-am ctags-am distclean distclean-generic \
|
||||
distclean-libtool distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-data install-data-am \
|
||||
install-drivermanDATA install-dvi install-dvi-am install-exec \
|
||||
install-exec-am install-html install-html-am install-info \
|
||||
install-info-am install-man install-pdf install-pdf-am \
|
||||
install-ps install-ps-am install-strip \
|
||||
install-synclientmanDATA install-syndaemonmanDATA installcheck \
|
||||
installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-generic \
|
||||
mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \
|
||||
uninstall-am uninstall-drivermanDATA \
|
||||
uninstall-synclientmanDATA uninstall-syndaemonmanDATA
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
|
||||
.man.$(DRIVER_MAN_SUFFIX):
|
||||
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
||||
.man.$(APP_MAN_SUFFIX):
|
||||
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
|
@ -0,0 +1,985 @@
|
|||
.\" shorthand for double quote that works everywhere.
|
||||
.ds q \N'34'
|
||||
.TH SYNAPTICS __drivermansuffix__ __vendorversion__
|
||||
.SH NAME
|
||||
synaptics \- touchpad input driver
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B "Section \*qInputDevice\*q"
|
||||
.BI " Identifier \*q" devname \*q
|
||||
.B " Driver \*qsynaptics\*q"
|
||||
.BI " Option \*qDevice\*q \*q" devpath \*q
|
||||
.BI " Option \*qPath\*q \*q" path \*q
|
||||
\ \ ...
|
||||
.B EndSection
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
.B synaptics
|
||||
is an __xservername__ input driver for touchpads.
|
||||
Even though touchpads can be handled by the normal evdev or mouse drivers,
|
||||
this driver allows more advanced features of the
|
||||
touchpad to become available. Some benefits would be:
|
||||
.IP \(bu 4
|
||||
Movement with adjustable, non-linear acceleration and speed.
|
||||
.IP \(bu 4
|
||||
Button events through short touching of the touchpad.
|
||||
.IP \(bu 4
|
||||
Double-Button events through double short touching of the touchpad.
|
||||
.IP \(bu 4
|
||||
Dragging through short touching and holding down the finger on the
|
||||
touchpad (tap-and-drag gesture).
|
||||
.IP \(bu 4
|
||||
Middle and right button events on the upper and lower corner of the
|
||||
touchpad.
|
||||
.IP \(bu 4
|
||||
Vertical scrolling (button four and five events) through moving the
|
||||
finger on the right side of the touchpad.
|
||||
.IP \(bu 4
|
||||
The up/down button sends button four/five events.
|
||||
.IP \(bu 4
|
||||
Horizontal scrolling (button six and seven events) through moving the
|
||||
finger on the lower side of the touchpad.
|
||||
.IP \(bu 4
|
||||
The multi-buttons send button four/five events for vertical scrolling
|
||||
and button six/seven events for horizontal scrolling.
|
||||
.IP \(bu 4
|
||||
Adjustable finger detection.
|
||||
.IP \(bu 4
|
||||
Multifinger taps: two finger for right button and three finger for
|
||||
middle button events.
|
||||
.
|
||||
(Needs hardware support.
|
||||
.
|
||||
Not all models implement this feature.)
|
||||
.IP \(bu 4
|
||||
Pressure-dependent motion speed.
|
||||
.LP
|
||||
Note that depending on the touchpad firmware, some of these features
|
||||
might be available even without using the synaptics driver. Note also
|
||||
that some functions are not available on all touchpad models, because
|
||||
they need support from the touchpad hardware/firmware. (Multifinger
|
||||
taps for example.)
|
||||
.PP
|
||||
The name "synaptics" is historical and the driver still provides the
|
||||
synaptics protocol parsing code. Under Linux however, the hardware-specifics
|
||||
are handled by the kernel and this driver will work for any touchpad that
|
||||
has a working kernel driver. If your device is recognized as \*qPS/2
|
||||
Mouse\*q or similar, the kernel driver does not support your device and this
|
||||
driver will only provide limited functionality.
|
||||
|
||||
.SH CONFIGURATION OPTIONS
|
||||
Please refer to __xconfigfile__(__filemansuffix__) for general configuration
|
||||
details and for options that can be used with all input drivers. This
|
||||
section only covers configuration details specific to this driver.
|
||||
.PP
|
||||
The following driver
|
||||
.B Options
|
||||
are supported:
|
||||
.TP 7
|
||||
.BI "Option \*qDevice\*q \*q" string \*q
|
||||
This option specifies the device file in your \*q/dev\*q directory which will
|
||||
be used to access the physical device. Normally you should use something like
|
||||
\*q/dev/input/eventX\*q, where X is some integer.
|
||||
.TP 7
|
||||
.BI "Option \*qProtocol\*q \*q" string \*q
|
||||
Specifies which kernel driver will be used by this driver. This is the list of
|
||||
supported drivers and their default use scenarios.
|
||||
.TS
|
||||
l l.
|
||||
auto-dev automatic, default (recommend)
|
||||
event Linux 2.6 kernel events
|
||||
psaux raw device access (Linux 2.4)
|
||||
psm FreeBSD psm driver
|
||||
.TE
|
||||
.TP 7
|
||||
.BI "Option \*qLeftEdge\*q \*q" integer \*q
|
||||
X coordinate for left edge. Property: "Synaptics Edges"
|
||||
.TP 7
|
||||
.BI "Option \*qRightEdge\*q \*q" integer \*q
|
||||
X coordinate for right edge. Property: "Synaptics Edges"
|
||||
.TP 7
|
||||
.BI "Option \*qTopEdge\*q \*q" integer \*q
|
||||
Y coordinate for top edge. Property: "Synaptics Edges"
|
||||
.TP 7
|
||||
.BI "Option \*qBottomEdge\*q \*q" integer \*q
|
||||
Y coordinate for bottom edge. Property: "Synaptics Edges"
|
||||
.TP 7
|
||||
.BI "Option \*qFingerLow\*q \*q" integer \*q
|
||||
When finger pressure drops below this value, the driver counts it as a
|
||||
release. Property: "Synaptics Finger"
|
||||
.TP 7
|
||||
.BI "Option \*qFingerHigh\*q \*q" integer \*q
|
||||
When finger pressure goes above this value, the driver counts it as a
|
||||
touch. Property: "Synaptics Finger"
|
||||
.TP 7
|
||||
.BI "Option \*qMaxTapTime\*q \*q" integer \*q
|
||||
Maximum time (in milliseconds) for detecting a tap. Property: "Synaptics Tap
|
||||
Durations"
|
||||
.TP 7
|
||||
.BI "Option \*qMaxTapMove\*q \*q" integer \*q
|
||||
Maximum movement of the finger for detecting a tap. Property: "Synaptics Tap
|
||||
Move"
|
||||
.TP 7
|
||||
.BI "Option \*qMaxDoubleTapTime\*q \*q" integer \*q
|
||||
Maximum time (in milliseconds) for detecting a double tap. Property:
|
||||
"Synaptics Tap Durations"
|
||||
.TP 7
|
||||
.BI "Option \*qClickTime\*q \*q" integer \*q
|
||||
The duration of the mouse click generated by tapping. Property: "Synaptics Tap
|
||||
Durations"
|
||||
.TP 7
|
||||
.BI "Option \*qClickPad\*q \*q" boolean \*q
|
||||
Whether the device is a click pad. See
|
||||
.B ClickPad support
|
||||
for more details. Property: "Synaptics ClickPad"
|
||||
.TP 7
|
||||
.BI "Option \*qVertEdgeScroll\*q \*q" boolean \*q
|
||||
Enable vertical scrolling when dragging along the right edge. Property:
|
||||
"Synaptics Edge Scrolling"
|
||||
.TP 7
|
||||
.BI "Option \*qHorizEdgeScroll\*q \*q" boolean \*q
|
||||
Enable horizontal scrolling when dragging along the bottom edge. Property:
|
||||
"Synaptics Edge Scrolling"
|
||||
.TP 7
|
||||
.BI "Option \*qCornerCoasting\*q \*q" boolean \*q
|
||||
Enable edge scrolling to continue while the finger stays in an edge corner.
|
||||
Property: "Synaptics Edge Scrolling"
|
||||
.TP 7
|
||||
.BI "Option \*qVertTwoFingerScroll\*q \*q" boolean \*q
|
||||
Enable vertical scrolling when dragging with two fingers anywhere on
|
||||
the touchpad. Property: "Synaptics Two-Finger Scrolling"
|
||||
.TP 7
|
||||
.BI "Option \*qHorizTwoFingerScroll\*q \*q" boolean \*q
|
||||
Enable horizontal scrolling when dragging with two fingers anywhere on
|
||||
the touchpad. Property: "Synaptics Two-Finger Scrolling"
|
||||
.TP 7
|
||||
.BI "Option \*qVertScrollDelta\*q \*q" integer \*q
|
||||
Move distance of the finger for a scroll event. Property: "Synaptics Scrolling
|
||||
Distance"
|
||||
.TP 7
|
||||
.BI "Option \*qHorizScrollDelta\*q \*q" integer \*q
|
||||
Move distance of the finger for a scroll event. Property: "Synaptics Scrolling
|
||||
Distance"
|
||||
.TP
|
||||
.BI "Option \*qMinSpeed\*q \*q" float \*q
|
||||
Minimum speed factor. Property: "Synaptics Move Speed"
|
||||
.TP
|
||||
.BI "Option \*qMaxSpeed\*q \*q" float \*q
|
||||
Maximum speed factor. Property: "Synaptics Move Speed"
|
||||
.TP
|
||||
.BI "Option \*qAccelFactor\*q \*q" float \*q
|
||||
Acceleration factor for normal pointer movements. Property: "Synaptics Move
|
||||
Speed"
|
||||
.TP
|
||||
.BI "Option \*qPressureMotionMinZ\*q \*q" integer \*q
|
||||
Finger pressure at which minimum pressure motion factor is applied. Property:
|
||||
"Synaptics Pressure Motion"
|
||||
.TP
|
||||
.BI "Option \*qPressureMotionMaxZ\*q \*q" integer \*q
|
||||
Finger pressure at which maximum pressure motion factor is applied. Property:
|
||||
"Synaptics Pressure Motion"
|
||||
.TP
|
||||
.BI "Option \*qPressureMotionMinFactor\*q \*q" integer \*q
|
||||
Lowest setting for pressure motion factor. Property: "Synaptics Pressure
|
||||
Motion Factor"
|
||||
.TP
|
||||
.BI "Option \*qPressureMotionMaxFactor\*q \*q" integer \*q
|
||||
Greatest setting for pressure motion factor. Property: "Synaptics Pressure
|
||||
Motion Factor"
|
||||
.TP
|
||||
.BI "Option \*qHorizHysteresis\*q \*q" integer \*q
|
||||
The minimum horizontal HW distance required to generate motion events. Can be
|
||||
specified as a percentage. Increase if noise motion is a problem for you. Zero
|
||||
is disabled.
|
||||
Default: 0.5 percent of the diagonal or (in case of evdev) the appropriate
|
||||
"fuzz" as advertised by the device.
|
||||
.TP
|
||||
.BI "Option \*qVertHysteresis\*q \*q" integer \*q
|
||||
The minimum vertical HW distance required to generate motion events. See
|
||||
\fBHorizHysteresis\fR.
|
||||
.TP
|
||||
.BI "Option \*qUpDownScrolling\*q \*q" boolean \*q
|
||||
If on, the up/down buttons generate button 4/5 events.
|
||||
.
|
||||
If off, the up button generates a double click and the down button
|
||||
generates a button 2 event. This option is only available for touchpads with
|
||||
physical scroll buttons.
|
||||
Property: "Synaptics Button Scrolling"
|
||||
.TP
|
||||
.BI "Option \*qLeftRightScrolling\*q \*q" boolean \*q
|
||||
If on, the left/right buttons generate button 6/7 events.
|
||||
.
|
||||
If off, the left/right buttons both generate button 2 events.
|
||||
This option is only available for touchpads with physical scroll buttons.
|
||||
Property: "Synaptics Button Scrolling"
|
||||
.TP
|
||||
.BI "Option \*qUpDownScrollRepeat\*q \*q" boolean \*q
|
||||
If on, and the up/down buttons are used for scrolling
|
||||
(\fBUpDownScrolling\fR), these buttons will send auto-repeating 4/5 events,
|
||||
with the delay between repeats determined by \fBScrollButtonRepeat\fR.
|
||||
This option is only available for touchpads with physical scroll buttons.
|
||||
Property: "Synaptics Button Scrolling Repeat"
|
||||
.TP
|
||||
.BI "Option \*qLeftRightScrollRepeat\*q \*q" boolean \*q
|
||||
If on, and the left/right buttons are used for scrolling
|
||||
(\fBLeftRightScrolling\fR), these buttons will send auto-repeating 6/7 events,
|
||||
with the delay between repeats determined by \fBScrollButtonRepeat\fR.
|
||||
This option is only available for touchpads with physical scroll buttons.
|
||||
Property: "Synaptics Button Scrolling Repeat"
|
||||
.TP
|
||||
.BI "Option \*qScrollButtonRepeat\*q \*q" integer \*q
|
||||
The number of milliseconds between repeats of button events 4-7 from the
|
||||
up/down/left/right scroll buttons.
|
||||
This option is only available for touchpads with physical scroll buttons.
|
||||
Property: "Synaptics Button Scrolling Time"
|
||||
.TP
|
||||
.BI "Option \*qEmulateMidButtonTime\*q \*q" integer \*q
|
||||
Maximum time (in milliseconds) for middle button emulation. Property:
|
||||
"Synaptics Middle Button Timeout"
|
||||
.TP
|
||||
.BI "Option \*qEmulateTwoFingerMinZ\*q \*q" integer \*q
|
||||
For touchpads not capable of detecting multiple fingers but are capable
|
||||
of detecting finger pressure and width, this sets the
|
||||
Z pressure threshold. When both Z pressure and W width thresholds
|
||||
are crossed, a two finger press will be emulated. This defaults
|
||||
to a value that disables emulation on touchpads with real two-finger detection
|
||||
and defaults to a value that enables emulation on remaining touchpads that
|
||||
support pressure and width support.
|
||||
Property: "Synaptics Two-Finger Pressure"
|
||||
.TP
|
||||
.BI "Option \*qEmulateTwoFingerMinW\*q \*q" integer \*q
|
||||
For touchpads not capable of detecting multiple fingers but are
|
||||
capable of detecting finger width and pressure, this sets the
|
||||
W width threshold. When both W width and Z pressure thresholds
|
||||
are crossed, a two finger press will be emulated. This feature works best
|
||||
with (\fBPalmDetect\fR) off. Property: "Synaptics Two-Finger Width"
|
||||
.TP
|
||||
.BI "Option \*qTouchpadOff\*q \*q" integer \*q
|
||||
Switch off the touchpad.
|
||||
.
|
||||
Valid values are:
|
||||
.TS
|
||||
l l.
|
||||
0 Touchpad is enabled
|
||||
1 Touchpad is switched off (physical clicks still work)
|
||||
2 Only tapping and scrolling is switched off
|
||||
.TE
|
||||
When the touchpad is switched off, button events caused by a physical
|
||||
button press are still interpreted. On a ClickPad, this includes
|
||||
software-emulated middle and right buttons as defined by
|
||||
the SoftButtonAreas setting.
|
||||
.TP
|
||||
Property: "Synaptics Off"
|
||||
.TP
|
||||
.BI "Option \*qLockedDrags\*q \*q" boolean \*q
|
||||
If off, a tap-and-drag gesture ends when you release the finger.
|
||||
.
|
||||
If on, the gesture is active until you tap a second time, or until
|
||||
LockedDragTimeout expires. Property: "Synaptics Locked Drags"
|
||||
.TP
|
||||
.BI "Option \*qLockedDragTimeout\*q \*q" integer \*q
|
||||
This parameter specifies how long it takes (in milliseconds) for the
|
||||
LockedDrags mode to be automatically turned off after the finger is
|
||||
released from the touchpad. Property: "Synaptics Locked Drags Timeout"
|
||||
.TP
|
||||
.BI "Option \*qRTCornerButton\*q \*q" integer \*q
|
||||
.
|
||||
Which mouse button is reported on a right top corner tap.
|
||||
.
|
||||
Set to 0 to disable. Property: "Synaptics Tap Action"
|
||||
.TP
|
||||
.BI "Option \*qRBCornerButton\*q \*q" integer \*q
|
||||
Which mouse button is reported on a right bottom corner tap.
|
||||
.
|
||||
Set to 0 to disable. Property: "Synaptics Tap Action"
|
||||
.TP
|
||||
.BI "Option \*qLTCornerButton\*q \*q" integer \*q
|
||||
Which mouse button is reported on a left top corner tap.
|
||||
.
|
||||
Set to 0 to disable. Property: "Synaptics Tap Action"
|
||||
.TP
|
||||
.BI "Option \*qLBCornerButton\*q \*q" integer \*q
|
||||
Which mouse button is reported on a left bottom corner tap.
|
||||
.
|
||||
Set to 0 to disable. Property: "Synaptics Tap Action"
|
||||
.TP
|
||||
.BI "Option \*qTapButton1\*q \*q" integer \*q
|
||||
Which mouse button is reported on a non-corner one-finger tap.
|
||||
.
|
||||
Set to 0 to disable. Property: "Synaptics Tap Action"
|
||||
.TP
|
||||
.BI "Option \*qTapButton2\*q \*q" integer \*q
|
||||
Which mouse button is reported on a non-corner two-finger tap.
|
||||
.
|
||||
Set to 0 to disable. Property: "Synaptics Tap Action"
|
||||
.TP
|
||||
.BI "Option \*qTapButton3\*q \*q" integer \*q
|
||||
Which mouse button is reported on a non-corner three-finger tap.
|
||||
.
|
||||
Set to 0 to disable. Property: "Synaptics Tap Action"
|
||||
.TP
|
||||
.BI "Option \*qClickFinger1\*q \*q" integer \*q
|
||||
Which mouse button is reported when left-clicking with one finger.
|
||||
.
|
||||
Set to 0 to disable. Property: "Synaptics Click Action"
|
||||
.TP
|
||||
.BI "Option \*qClickFinger2\*q \*q" integer \*q
|
||||
Which mouse button is reported when left-clicking with two fingers.
|
||||
.
|
||||
Set to 0 to disable. Property: "Synaptics Click Action"
|
||||
.TP
|
||||
.BI "Option \*qClickFinger3\*q \*q" integer \*q
|
||||
Which mouse button is reported when left-clicking with three fingers.
|
||||
.
|
||||
Set to 0 to disable. Property: "Synaptics Click Action"
|
||||
.TP
|
||||
.BI "Option \*qCircularScrolling\*q \*q" boolean \*q
|
||||
If on, circular scrolling is used. Property: "Synaptics Circular Scrolling"
|
||||
.TP
|
||||
.BI "Option \*qCircScrollDelta\*q \*q" float \*q
|
||||
Move angle (radians) of finger to generate a scroll event. Property: "Synaptics
|
||||
Circular Scrolling Distance"
|
||||
.TP
|
||||
.BI "Option \*qCircScrollTrigger\*q \*q" integer \*q
|
||||
Trigger region on the touchpad to start circular scrolling
|
||||
.TS
|
||||
l l.
|
||||
0 All Edges
|
||||
1 Top Edge
|
||||
2 Top Right Corner
|
||||
3 Right Edge
|
||||
4 Bottom Right Corner
|
||||
5 Bottom Edge
|
||||
6 Bottom Left Corner
|
||||
7 Left Edge
|
||||
8 Top Left Corner
|
||||
.TE
|
||||
Property: "Synaptics Circular Scrolling Trigger"
|
||||
.TP
|
||||
.BI "Option \*qCircularPad\*q \*q" boolean \*q
|
||||
.
|
||||
Instead of being a rectangle, the edge is the ellipse enclosed by the
|
||||
Left/Right/Top/BottomEdge parameters.
|
||||
.
|
||||
For circular touchpads. Property: "Synaptics Circular Pad"
|
||||
.TP
|
||||
.BI "Option \*qPalmDetect\*q \*q" boolean \*q
|
||||
If palm detection should be enabled.
|
||||
.
|
||||
Note that this also requires hardware/firmware support from the
|
||||
touchpad. Property: "Synaptics Palm Detection"
|
||||
.TP
|
||||
.BI "Option \*qPalmMinWidth\*q \*q" integer \*q
|
||||
Minimum finger width at which touch is considered a palm. Property: "Synaptics
|
||||
Palm Dimensions"
|
||||
.TP
|
||||
.BI "Option \*qPalmMinZ\*q \*q" integer \*q
|
||||
Minimum finger pressure at which touch is considered a palm. Property:
|
||||
"Synaptics Palm Dimensions"
|
||||
.TP
|
||||
.BI "Option \*qCoastingSpeed\*q \*q" float \*q
|
||||
Your finger needs to produce this many scrolls per second in order to start
|
||||
coasting. The default is 20 which should prevent you from starting coasting
|
||||
unintentionally.
|
||||
.
|
||||
0 disables coasting. Property: "Synaptics Coasting Speed"
|
||||
.TP
|
||||
.BI "Option \*qCoastingFriction\*q \*q" float \*q
|
||||
Number of scrolls/second² to decrease the coasting speed. Default
|
||||
is 50.
|
||||
Property: "Synaptics Coasting Speed"
|
||||
.TP
|
||||
.BI "Option \*qSingleTapTimeout\*q \*q" integer \*q
|
||||
Timeout after a tap to recognize it as a single tap. Property: "Synaptics Tap
|
||||
Durations"
|
||||
.TP
|
||||
.BI "Option \*qGrabEventDevice\*q \*q" boolean \*q
|
||||
If GrabEventDevice is true, the driver will grab the event device for
|
||||
exclusive use when using the linux 2.6 event protocol.
|
||||
.
|
||||
When using other protocols, this option has no effect.
|
||||
.
|
||||
Grabbing the event device means that no other user space or kernel
|
||||
space program sees the touchpad events.
|
||||
.
|
||||
This is desirable if the X config file includes /dev/input/mice as an
|
||||
input device, but is undesirable if you want to monitor the device
|
||||
from user space.
|
||||
.
|
||||
When changing this parameter with the synclient program, the change
|
||||
will not take effect until the synaptics driver is disabled and
|
||||
reenabled.
|
||||
.
|
||||
This can be achieved by switching to a text console and then switching
|
||||
back to X.
|
||||
.
|
||||
.
|
||||
.TP
|
||||
.BI "Option \*qTapAndDragGesture\*q \*q" boolean \*q
|
||||
Switch on/off the tap-and-drag gesture.
|
||||
.
|
||||
This gesture is an alternative way of dragging.
|
||||
.
|
||||
It is performed by tapping (touching and releasing the finger), then
|
||||
touching again and moving the finger on the touchpad.
|
||||
.
|
||||
The gesture is enabled by default and can be disabled by setting the
|
||||
TapAndDragGesture option to false. Property: "Synaptics Gestures"
|
||||
.
|
||||
.TP
|
||||
.BI "Option \*qVertResolution\*q \*q" integer \*q
|
||||
Resolution of X coordinates in units/millimeter. The value is used
|
||||
together with HorizResolution to compensate unequal vertical and
|
||||
horizontal sensitivity. Setting VertResolution and HorizResolution
|
||||
equal values means no compensation. Default value is read from
|
||||
the touchpad or set to 1 if value could not be read.
|
||||
Property: "Synaptics Pad Resolution"
|
||||
.
|
||||
.TP
|
||||
.BI "Option \*qHorizResolution\*q \*q" integer \*q
|
||||
Resolution of Y coordinates in units/millimeter. The value is used
|
||||
together with VertResolution to compensate unequal vertical and
|
||||
horizontal sensitivity. Setting VertResolution and HorizResolution
|
||||
equal values means no compensation. Default value is read from
|
||||
the touchpad or set to 1 if value could not be read.
|
||||
Property: "Synaptics Pad Resolution"
|
||||
.
|
||||
.TP
|
||||
.BI "Option \*qAreaLeftEdge\*q \*q" integer \*q
|
||||
Ignore movements, scrolling and tapping which start left of this edge.
|
||||
.
|
||||
The option is disabled by default and can be enabled by setting the
|
||||
AreaLeftEdge option to any integer value other than zero. If supported by the
|
||||
server (version 1.9 and later), the edge may be specified in percent of
|
||||
the total width of the touchpad. Property: "Synaptics Area"
|
||||
.
|
||||
.TP
|
||||
.BI "Option \*qAreaRightEdge\*q \*q" integer \*q
|
||||
Ignore movements, scrolling and tapping which start right of this edge.
|
||||
.
|
||||
The option is disabled by default and can be enabled by setting the
|
||||
AreaRightEdge option to any integer value other than zero. If supported by the
|
||||
server (version 1.9 and later), the edge may be specified in percent of
|
||||
the total width of the touchpad. Property: "Synaptics Area"
|
||||
.
|
||||
.TP
|
||||
.BI "Option \*qAreaTopEdge\*q \*q" integer \*q
|
||||
Ignore movements, scrolling and tapping which start above this edge.
|
||||
.
|
||||
The option is disabled by default and can be enabled by setting the
|
||||
AreaTopEdge option to any integer value other than zero. If supported by the
|
||||
server (version 1.9 and later), the edge may be specified in percent of
|
||||
the total height of the touchpad. Property: "Synaptics Area"
|
||||
.
|
||||
.TP
|
||||
.BI "Option \*qAreaBottomEdge\*q \*q" integer \*q
|
||||
Ignore movements, scrolling and tapping which start below this edge.
|
||||
.
|
||||
The option is disabled by default and can be enabled by setting the
|
||||
AreaBottomEdge option to any integer value other than zero. If supported by the
|
||||
server (version 1.9 and later), the edge may be specified in percent of
|
||||
the total height of the touchpad. Property: "Synaptics Area"
|
||||
.
|
||||
.TP
|
||||
.BI "Option \*qSoftButtonAreas\*q \*q" "RBL RBR RBT RBB MBL MBR MBT MBB" \*q
|
||||
This option is only available on ClickPad devices.
|
||||
Enable soft button click area support on ClickPad devices.
|
||||
The first four parameters are the left, right, top, bottom edge of the right
|
||||
button, respectively, the second four parameters are the left, right, top,
|
||||
bottom edge of the middle button, respectively. Any of the values may be
|
||||
given as percentage of the touchpad width or height, whichever applies.
|
||||
If any edge is set to 0 (not 0%), the button is assumed to extend to
|
||||
infinity in the given direction. Setting all values to 0 (not 0%) disables
|
||||
soft button areas. Button areas may not overlap, however it is permitted for two
|
||||
buttons to share an edge value.
|
||||
Property: "Synaptics Soft Button Areas"
|
||||
.
|
||||
.TP
|
||||
.BI "Option \*qHasSecondarySoftButtons\*q \*q" boolean \*q
|
||||
This option is only available on ClickPad devices.
|
||||
Enable the secondary software button area support. The exact area must be
|
||||
set in option \*qSecondarySoftButtonAreas\*q. See
|
||||
.B ClickPad support
|
||||
for more details.
|
||||
.
|
||||
.TP
|
||||
.BI "Option \*qSecondarySoftButtonAreas\*q \*q" "RBL RBR RBT RBB MBL MBR MBT MBB" \*q
|
||||
This option is only available on ClickPad devices and only if
|
||||
.B Option \*qHasSecondarySoftButtons\*q
|
||||
is enabled.
|
||||
Define the secondary soft button click areas on ClickPad devices (usually on
|
||||
top of the device).
|
||||
For the allowed values for this option, see
|
||||
.B Option \*qSoftButtonAreas\*q.
|
||||
Primary and secondary soft button areas must not overlap each other. If they do,
|
||||
the behavior of the driver is undefined.
|
||||
Property: "Synaptics Secondary Soft Button Areas". This property is only
|
||||
initialized if
|
||||
.B Option \*qHasSecondarySoftButtons\*q
|
||||
is enabled and this option is set in the __xconfigfile__(__filemansuffix__).
|
||||
.
|
||||
|
||||
.SH CONFIGURATION DETAILS
|
||||
.SS Area handling
|
||||
The LeftEdge, RightEdge, TopEdge and BottomEdge parameters are used to
|
||||
define the edge and corner areas of the touchpad.
|
||||
.
|
||||
The parameters split the touchpad area in 9 pieces, like this:
|
||||
.LP
|
||||
.TS
|
||||
l|l|lsls
|
||||
---
|
||||
|c|cw(5P)|c|l
|
||||
---
|
||||
|c|c|c|l
|
||||
|c|c|c|l
|
||||
|c|c|c|l
|
||||
---
|
||||
|c|c|c|l
|
||||
---
|
||||
|lsl|ll.
|
||||
LeftEdge RightEdge
|
||||
Physical top edge
|
||||
1 2 3
|
||||
TopEdge
|
||||
|
||||
4 5 6
|
||||
|
||||
BottomEdge
|
||||
7 8 9
|
||||
Physical bottom edge
|
||||
Physical left edge Physical right edge
|
||||
.TE
|
||||
.LP
|
||||
Coordinates to the left of LeftEdge are part of the left edge (areas
|
||||
1, 4 and 7), coordinates to the left of LeftEdge and above TopEdge
|
||||
(area 1) are part of the upper left corner, etc.
|
||||
.PP
|
||||
A good way to find appropriate edge parameters is to use evtest(1) on the
|
||||
device to see the x/y coordinates corresponding to different positions on
|
||||
the touchpad.
|
||||
.PP
|
||||
The perceived physical edges may be adjusted with the AreaLeftEdge,
|
||||
AreaRightEdge, AreaTopEdge, and AreaBottomEdge options. If these values are
|
||||
set to something other than the physical edges, input that starts in the
|
||||
space between the area edge and the respective physical edge is ignored.
|
||||
Note that this reduces the available space on the touchpad to start motions
|
||||
in.
|
||||
.SS Tapping
|
||||
A tap event happens when the finger is touched and released in a time
|
||||
interval shorter than MaxTapTime, and the touch and release
|
||||
coordinates are less than MaxTapMove units apart.
|
||||
.
|
||||
A "touch" event happens when the Z value goes above FingerHigh, and an
|
||||
"untouch" event happens when the Z value goes below FingerLow.
|
||||
.
|
||||
.LP
|
||||
The MaxDoubleTapTime parameter has the same function as the MaxTapTime
|
||||
parameter, but for the second, third, etc tap in a tap sequence.
|
||||
.
|
||||
If you can't perform double clicks fast enough (for example, xmms
|
||||
depends on fast double clicks), try reducing this parameter.
|
||||
.
|
||||
If you can't get word selection to work in xterm (ie button down,
|
||||
button up, button down, move mouse), try increasing this parameter.
|
||||
.
|
||||
.LP
|
||||
The ClickTime parameter controls the delay between the button down and
|
||||
button up X events generated in response to a tap event.
|
||||
.
|
||||
A too long value can cause undesirable autorepeat in scroll bars and a
|
||||
too small value means that visual feedback from the gui application
|
||||
you are interacting with is harder to see.
|
||||
.
|
||||
.SS Acceleration
|
||||
The MinSpeed, MaxSpeed and AccelFactor parameters control the pointer
|
||||
motion speed.
|
||||
.
|
||||
The speed value defines the scaling between touchpad coordinates and
|
||||
screen coordinates.
|
||||
.
|
||||
When moving the finger very slowly, the MinSpeed value is used, when
|
||||
moving very fast the MaxSpeed value is used.
|
||||
.
|
||||
When moving the finger at moderate speed, you get a pointer motion
|
||||
speed somewhere between MinSpeed and MaxSpeed.
|
||||
.
|
||||
If you don't want any acceleration, set MinSpeed and MaxSpeed to the
|
||||
same value.
|
||||
.
|
||||
.LP
|
||||
The MinSpeed, MaxSpeed and AccelFactor parameters don't have any
|
||||
effect on scrolling speed.
|
||||
.
|
||||
Scrolling speed is determined solely from the VertScrollDelta and
|
||||
HorizScrollDelta parameters.
|
||||
.
|
||||
To invert the direction of vertical or horizontal scrolling, set
|
||||
VertScrollDelta or HorizScrollDelta to a negative value.
|
||||
.
|
||||
.LP
|
||||
Acceleration is mostly handled outside the driver, thus the driver will
|
||||
translate MinSpeed into constant deceleration and adapt MaxSpeed at
|
||||
startup time. This ensures you can user the other acceleration profiles, albeit
|
||||
without pressure motion. However the numbers at runtime will likely be different
|
||||
from any options you may have set.
|
||||
|
||||
.SS Pressure motion
|
||||
When pressure motion is activated, the cursor motion speed depends
|
||||
on the pressure exerted on the touchpad (the more pressure exerted on
|
||||
the touchpad, the faster the pointer).
|
||||
.
|
||||
More precisely the speed is first calculated according to MinSpeed,
|
||||
MaxSpeed and AccelFactor, and then is multiplied by a sensitivity
|
||||
factor.
|
||||
.
|
||||
.LP
|
||||
The sensitivity factor can be adjusted using the PressureMotion
|
||||
parameters.
|
||||
.
|
||||
If the pressure is below PressureMotionMinZ, PressureMotionMinFactor
|
||||
is used, and if the pressure is greater than PressureMotionMaxZ,
|
||||
PressureMotionMaxFactor is used.
|
||||
.
|
||||
For a pressure value between PressureMotionMinZ and
|
||||
PressureMotionMaxZ, the factor is increased linearly.
|
||||
.
|
||||
.SS Middle button emulation
|
||||
Since most synaptics touchpad models don't have a button that
|
||||
corresponds to the middle button on a mouse, the driver can emulate
|
||||
middle mouse button events.
|
||||
.
|
||||
If you press both the left and right mouse buttons at almost the same
|
||||
time (no more than EmulateMidButtonTime milliseconds apart) the driver
|
||||
generates a middle mouse button event.
|
||||
.
|
||||
.SS Circular scrolling
|
||||
Circular scrolling acts like a scrolling wheel on the touchpad.
|
||||
.
|
||||
Scrolling is engaged when a drag starts in the given CircScrollTrigger
|
||||
region, which can be all edges, a particular side, or a particular
|
||||
corner.
|
||||
.
|
||||
Once scrolling is engaged, moving your finger in clockwise circles
|
||||
around the center of the touchpad will generate scroll down events and
|
||||
counter clockwise motion will generate scroll up events.
|
||||
.
|
||||
Lifting your finger will disengage circular scrolling.
|
||||
.
|
||||
Use tight circles near the center of the pad for fast scrolling and
|
||||
large circles for better control.
|
||||
.
|
||||
When used together with vertical scrolling, hitting the upper or lower
|
||||
right corner will seamlessly switch over from vertical to circular
|
||||
scrolling.
|
||||
|
||||
.SS Coasting
|
||||
Coasting is enabled by setting the CoastingSpeed parameter to a
|
||||
non-zero value.
|
||||
.
|
||||
Coasting comes in two flavors: conventional (finger off) coasting, and
|
||||
corner (finger on) coasting.
|
||||
.LP
|
||||
Conventional coasting is enabled when coasting is enabled,
|
||||
and CornerCoasting is set to false.
|
||||
.
|
||||
When conventional coasting is enabled, horizontal/vertical scrolling
|
||||
can continue after the finger is released from the lower/right edge of
|
||||
the touchpad.
|
||||
.
|
||||
The driver computes the scrolling speed corresponding to the finger
|
||||
speed immediately before the finger leaves the touchpad.
|
||||
.
|
||||
If this scrolling speed is larger than the CoastingSpeed parameter
|
||||
(measured in scroll events per second), the scrolling will continue
|
||||
with the same speed in the same direction until the finger touches the
|
||||
touchpad again.
|
||||
.
|
||||
.LP
|
||||
Corner coasting is enabled when coasting is enabled, and
|
||||
CornerCoasting is set to true.
|
||||
.
|
||||
When corner coasting is enabled, edge scrolling can continue as long
|
||||
as the finger stays in a corner.
|
||||
.
|
||||
Coasting begins when the finger enters the corner, and continues until
|
||||
the finger leaves the corner.
|
||||
.
|
||||
CornerCoasting takes precedence over the seamless switch from edge
|
||||
scrolling to circular scrolling. That is, if CornerCoasting is
|
||||
active, scrolling will stop, and circular scrolling will not start,
|
||||
when the finger leaves the corner.
|
||||
|
||||
.SS Noise cancellation
|
||||
The synaptics has a built-in noise cancellation based on hysteresis. This means
|
||||
that incoming coordinates actually shift a box of predefined dimensions such
|
||||
that it covers the incoming coordinate, and only the boxes own center is used
|
||||
as input. Obviously, the smaller the box the better, but the likelyhood of
|
||||
noise motion coming through also increases.
|
||||
|
||||
.SS ClickPad support
|
||||
A click pad device has button(s) integrated into the touchpad surface. The
|
||||
user must press downward on the touchpad in order to generated a button
|
||||
press. ClickPad support is enabled if the option
|
||||
.B ClickPad
|
||||
is set or the property is set at runtime. On some platforms, this option
|
||||
will be set automatically if the kernel detects a matching device. On Linux,
|
||||
the device must have the INPUT_PROP_BUTTONPAD property set.
|
||||
.LP
|
||||
ClickPads do not support middle mouse button emulation. If enabling ClickPad
|
||||
support at runime, the user must also set the middle mouse button timeout to
|
||||
0. If auto-detected, middle mouse button emulation is disabled by the
|
||||
driver.
|
||||
.LP
|
||||
ClickPads provide software emulated buttons through
|
||||
.B Option \*qSoftButtonAreas\*q.
|
||||
These buttons enable areas on the touchpad to perform as right or middle
|
||||
mouse button. When the user performs a click within a defined soft button
|
||||
area, a right or middle click is performed.
|
||||
.LP
|
||||
Some laptops, most notably the Lenovo T440, T540 and x240 series, provide a
|
||||
pointing stick without physical buttons. On those laptops, the top of the
|
||||
touchpad acts as software-emulated button area. This area can be enabled
|
||||
with
|
||||
.B Option \*qHasSecondarySoftButtons\*q
|
||||
and configured
|
||||
with
|
||||
.B Option \*qSecondarySoftButtonAreas\*q.
|
||||
On some platforms, this option
|
||||
will be set automatically if the kernel detects a matching device. On Linux,
|
||||
the device must have the INPUT_PROP_TOPBUTTONPAD property set.
|
||||
|
||||
.SH "DEVICE PROPERTIES"
|
||||
Synaptics 1.0 and higher support input device properties if the driver is
|
||||
running on X server 1.6 or higher. The synclient tool
|
||||
shipped with synaptics version 1.1 uses input device properties by default.
|
||||
.
|
||||
Properties supported:
|
||||
.TP 7
|
||||
.BI "Synaptics Edges"
|
||||
32 bit, 4 values, left, right, top, bottom.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Finger"
|
||||
32 bit, 3 values, low, high, press.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Tap Time"
|
||||
32 bit.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Tap Move"
|
||||
32 bit.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Tap Durations"
|
||||
32 bit, 3 values, single touch timeout, max tapping time for double taps,
|
||||
duration of a single click.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics ClickPad"
|
||||
8 bit (Bool).
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Middle Button Timeout"
|
||||
32 bit.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Two-Finger Pressure"
|
||||
32 bit.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Two-Finger Width"
|
||||
32 bit.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Scrolling Distance"
|
||||
32 bit, 2 values, vert, horiz.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Edge Scrolling"
|
||||
8 bit (BOOL), 3 values, vertical, horizontal, corner.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Two-Finger Scrolling"
|
||||
8 bit (BOOL), 2 values, vertical, horizontal.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Move Speed"
|
||||
FLOAT, 4 values, min, max, accel, <deprecated>
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Button Scrolling"
|
||||
8 bit (BOOL), 2 values, updown, leftright.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Button Scrolling Repeat"
|
||||
8 bit (BOOL), 2 values, updown, leftright.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Button Scrolling Time"
|
||||
32 bit.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Off"
|
||||
8 bit, valid values (0, 1, 2).
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Locked Drags"
|
||||
8 bit (BOOL).
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Locked Drags Timeout"
|
||||
32 bit.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Tap Action"
|
||||
8 bit, up to MAX_TAP values (see synaptics.h), 0 disables an element. order:
|
||||
RT, RB, LT, LB, F1, F2, F3.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Click Action"
|
||||
8 bit, up to MAX_CLICK values (see synaptics.h), 0 disables an element.
|
||||
order: Finger 1, 2, 3.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Circular Scrolling"
|
||||
8 bit (BOOL).
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Circular Scrolling Distance"
|
||||
FLOAT.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Circular Scrolling Trigger"
|
||||
8 bit, valid values 0..8 (inclusive) order: any edge, top, top + right,
|
||||
right, right + bottom, bottom, bottom + left, left, left + top.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Circular Pad"
|
||||
8 bit (BOOL).
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Palm Detection"
|
||||
8 bit (BOOL).
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Palm Dimensions"
|
||||
32 bit, 2 values, width, z.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Coasting Speed"
|
||||
FLOAT, 2 values, speed, friction.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Pressure Motion"
|
||||
32 bit, 2 values, min, max.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Pressure Motion Factor"
|
||||
FLOAT, 2 values, min, max.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Grab Event Device"
|
||||
8 bit (BOOL).
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Gestures"
|
||||
8 bit (BOOL), 1 value, tap-and-drag.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Area"
|
||||
The AreaLeftEdge, AreaRightEdge, AreaTopEdge and AreaBottomEdge parameters are used to
|
||||
define the edges of the active area of the touchpad. All movements, scrolling and tapping
|
||||
which take place outside of this area will be ignored. This property is disabled by
|
||||
default.
|
||||
|
||||
32 bit, 4 values, left, right, top, bottom. 0 disables an element.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Soft Button Areas"
|
||||
This property is only available on ClickPad devices.
|
||||
The Right and middle soft button areas are used to support right and middle
|
||||
click actions on a ClickPad device. Providing 0 for all values of a given button
|
||||
disables the button area.
|
||||
|
||||
32 bit, 8 values, RBL, RBR, RBT, RBB, MBL, MBR, MBT, MBB.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Capabilities"
|
||||
This read-only property expresses the physical capability of the touchpad,
|
||||
most notably whether the touchpad hardware supports multi-finger tapping and
|
||||
scrolling.
|
||||
|
||||
8 bit (BOOL), 7 values (read-only), has left button, has middle button, has
|
||||
right button, two-finger detection, three-finger detection, pressure detection, and finger/palm width detection.
|
||||
|
||||
.TP 7
|
||||
.BI "Synaptics Pad Resolution"
|
||||
32 bit unsigned, 2 values (read-only), vertical, horizontal in units/millimeter.
|
||||
|
||||
.SH "NOTES"
|
||||
Configuration through
|
||||
.I InputClass
|
||||
sections is recommended in X servers 1.8 and later. See xorg.conf.d(5) for
|
||||
more details. An example xorg.conf.d snippet is provided in
|
||||
.I ${sourcecode}/conf/70-synaptics.conf
|
||||
.LP
|
||||
Configuration through hal fdi files is recommended in X servers 1.5, 1.6 and
|
||||
1.7. An example hal policy file is provided in
|
||||
.I ${sourcecode}/conf/11-x11-synaptics.fdi
|
||||
.LP
|
||||
If either of
|
||||
.BI "Protocol \*q" auto-dev \*q
|
||||
(default) or
|
||||
.BI "Protocol \*q" event \*q
|
||||
is used, the driver initializes defaults based on the capabilities reported by
|
||||
the kernel driver. Acceleration, edges and resolution are based on the dimensions
|
||||
reported by the kernel. If the kernel reports multi-finger detection, two-finger
|
||||
vertical scrolling is enabled, horizontal two-finger scrolling is disabled and
|
||||
edge scrolling is disabled. If no multi-finger capabilities are reported,
|
||||
edge scrolling is enabled for both horizontal and vertical scrolling.
|
||||
Tapping is disabled by default for touchpads with one or more physical buttons.
|
||||
To enable it you need to map tap actions to buttons. See the "TapButton1",
|
||||
"TapButton2" and "TapButton3" options.
|
||||
.LP
|
||||
Button mapping for physical buttons is handled in the server.
|
||||
If the device is switched to left-handed (an in-server mapping of physical
|
||||
buttons 1, 2, 3 to the logical buttons 3, 2, 1, respectively), both physical
|
||||
and TapButtons are affected. To counteract this, the TapButtons need to be set
|
||||
up in reverse order (TapButton1=3, TapButton2=1).
|
||||
|
||||
.SH "REMOVED OPTIONS"
|
||||
The following options are no longer part of the driver configuration:
|
||||
.TP
|
||||
.BI "Option \*qRepeater\*q \*q" string \*q
|
||||
.TP
|
||||
.BI "Option \*qHistorySize\*q \*q" integer \*q
|
||||
.TP
|
||||
.BI "Option \*qSpecialScrollAreaRight\*q \*q" boolean \*q
|
||||
.TP
|
||||
.BI "Option \*qGuestMouseOff\*q \*q" boolean \*q
|
||||
.TP
|
||||
.BI "Option \*qSHMConfig\*q \*q" boolean \*q
|
||||
.TP
|
||||
.BI "Option \*qFingerPress\*q \*q" integer \*q
|
||||
.TP
|
||||
.BI "Option \*qTrackstickSpeed\*q \*q" float \*q
|
||||
.TP
|
||||
.BI "Option \*qEdgeMotionMinZ\*q \*q" integer \*q
|
||||
.TP
|
||||
.BI "Option \*qEdgeMotionMaxZ\*q \*q" integer \*q
|
||||
.TP
|
||||
.BI "Option \*qEdgeMotionMinSpeed\*q \*q" integer \*q
|
||||
.TP
|
||||
.BI "Option \*qEdgeMotionMaxSpeed\*q \*q" integer \*q
|
||||
.TP
|
||||
.BI "Option \*qEdgeMotionUseAlways\*q \*q" boolean \*q
|
||||
.TP
|
||||
|
||||
.SH "AUTHORS"
|
||||
.LP
|
||||
Peter Osterlund <petero2@telia.com> and many others.
|
||||
.SH "SEE ALSO"
|
||||
.LP
|
||||
__xservername__(__appmansuffix__), __xconfigfile__(__filemansuffix__), Xserver(__appmansuffix__), X(__miscmansuffix__), synclient(__appmansuffix__), syndaemon(__appmansuffix__)
|
|
@ -0,0 +1,46 @@
|
|||
.\" shorthand for double quote that works everywhere.
|
||||
.ds q \N'34'
|
||||
.TH synclient __appmansuffix__ __vendorversion__
|
||||
.SH NAME
|
||||
.LP
|
||||
synclient \- commandline utility to query and modify Synaptics driver
|
||||
options.
|
||||
.SH "SYNOPSIS"
|
||||
.br
|
||||
synclient [\fI\-lV?\fP] [var1=value1 [var2=value2] ...]
|
||||
.SH "DESCRIPTION"
|
||||
.LP
|
||||
This program lets you change your Synaptics TouchPad driver for
|
||||
XOrg/XFree86 server parameters while X is running.
|
||||
|
||||
.SH "OPTIONS"
|
||||
.LP
|
||||
.TP
|
||||
\fB\-l\fR
|
||||
List current user settings. This is the default if no option is given.
|
||||
.TP
|
||||
\fB\-V\fR
|
||||
Print version number and exit.
|
||||
.TP
|
||||
\fB\-?\fR
|
||||
Show the help message.
|
||||
.TP
|
||||
\fBvar=value\fR
|
||||
Set user parameter \fIvar\fR to \fIvalue\fR.
|
||||
|
||||
.SH "FILES"
|
||||
.LP
|
||||
\fI/etc/X11/xorg.conf\fP
|
||||
.SH "EXAMPLES"
|
||||
.LP
|
||||
To disable EdgeMotionMinSpeed:
|
||||
.LP
|
||||
synclient EdgeMotionMinSpeed=0
|
||||
.SH "AUTHORS"
|
||||
.LP
|
||||
Peter Osterlund <petero2@telia.com> and many others.
|
||||
.TP
|
||||
This man page was written by Mattia Dongili <malattia@debian.org>
|
||||
.SH "SEE ALSO"
|
||||
.LP
|
||||
__xservername__(__appmansuffix__), syndaemon(__appmansuffix__), synaptics(__drivermansuffix__)
|
|
@ -0,0 +1,105 @@
|
|||
.\" shorthand for double quote that works everywhere.
|
||||
.ds q \N'34'
|
||||
.TH syndaemon __appmansuffix__ __vendorversion__
|
||||
.SH NAME
|
||||
.LP
|
||||
syndaemon \- a program that monitors keyboard activity and disables
|
||||
the touchpad when the keyboard is being used.
|
||||
.SH "SYNOPSIS"
|
||||
.LP
|
||||
syndaemon [\fI\-i idle\-time\fP] [\fI\-m poll-inverval\fP] [\fI\-d\fP] [\fI\-p pid\-file\fP]
|
||||
[\fI\-t\fP] [\fI\-k\fP] [\fI\-K\fP] [\fI\-R\fP]
|
||||
.SH "DESCRIPTION"
|
||||
.LP
|
||||
Disabling the touchpad while typing avoids unwanted movements of the
|
||||
pointer that could lead to giving focus to the wrong window.
|
||||
.
|
||||
.SH "OPTIONS"
|
||||
.LP
|
||||
.TP
|
||||
\fB\-i\fR <\fIidle\-time\fP>
|
||||
How many seconds to wait after the last key press before enabling the
|
||||
touchpad.
|
||||
.
|
||||
(default is 2.0s).
|
||||
.LP
|
||||
.TP
|
||||
\fB\-m\fR <\fIpoll\-interval\fP>
|
||||
How many milliseconds to wait between two polling intervals. If this value is
|
||||
too low, it will cause unnecessary wake-ups. If this value is too high,
|
||||
some key presses (press and release happen between two intervals) may not
|
||||
be noticed. This switch has no effect when running with
|
||||
\fB-R\fP.
|
||||
.
|
||||
Default is 200ms.
|
||||
.LP
|
||||
.TP
|
||||
\fB\-d\fP
|
||||
Start as a daemon, ie in the background.
|
||||
.LP
|
||||
.TP
|
||||
\fB\-p\fR <\fIpid\-file\fP>
|
||||
Create a pid file with the specified filename.
|
||||
.
|
||||
A pid file will only be created if the program is started in daemon
|
||||
mode.
|
||||
.LP
|
||||
.TP
|
||||
\fB\-t\fP
|
||||
Only disable tapping and scrolling, not mouse movements, in response
|
||||
to keyboard activity.
|
||||
.LP
|
||||
.TP
|
||||
\fB\-k\fP
|
||||
Ignore modifier keys when monitoring keyboard activity.
|
||||
.LP
|
||||
.TP
|
||||
\fB\-K\fP
|
||||
Like \-k but also ignore Modifier+Key combos.
|
||||
.LP
|
||||
.TP
|
||||
\fB\-R\fP
|
||||
Use the XRecord extension for detecting keyboard activity instead of polling
|
||||
the keyboard state.
|
||||
.LP
|
||||
.TP
|
||||
\fB\-?\fP
|
||||
Show the help message.
|
||||
.SH "ENVIRONMENT VARIABLES"
|
||||
.LP
|
||||
.TP
|
||||
\fBDISPLAY\fP
|
||||
Specifies the X server to contact.
|
||||
.SH EXIT CODES
|
||||
If syndaemon exists with a return code other than 0, the error encountered
|
||||
is as below.
|
||||
.LP
|
||||
.TP
|
||||
\fBExit code 1
|
||||
Invalid commandline argument.
|
||||
.LP
|
||||
.TP
|
||||
\fBExit code 2
|
||||
The connection to the X sever could not be established or no touchpad device
|
||||
could be found.
|
||||
.LP
|
||||
.TP
|
||||
\fBExit code 3
|
||||
The fork into daemon mode failed or the pid file could not be created.
|
||||
.LP
|
||||
.TP
|
||||
\fBExit code 4
|
||||
XRECORD requested but not available or usable on the server.
|
||||
.SH "CAVEATS"
|
||||
.LP
|
||||
It doesn't make much sense to connect to a remote X server, because
|
||||
the daemon will then monitor the remote server for keyboard activity,
|
||||
but will disable the touchpad on the local machine.
|
||||
.SH "AUTHORS"
|
||||
.LP
|
||||
Peter Osterlund <petero2@telia.com>.
|
||||
.TP
|
||||
This man page was written by Mattia Dongili <malattia@debian.org>
|
||||
.SH "SEE ALSO"
|
||||
.LP
|
||||
__xservername__(__appmansuffix__), synclient(__appmansuffix__), synaptics(__drivermansuffix__)
|
|
@ -0,0 +1,215 @@
|
|||
#! /bin/sh
|
||||
# Common wrapper for a few potentially missing GNU programs.
|
||||
|
||||
scriptversion=2016-01-11.22; # UTC
|
||||
|
||||
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
||||
# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
if test $# -eq 0; then
|
||||
echo 1>&2 "Try '$0 --help' for more information"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case $1 in
|
||||
|
||||
--is-lightweight)
|
||||
# Used by our autoconf macros to check whether the available missing
|
||||
# script is modern enough.
|
||||
exit 0
|
||||
;;
|
||||
|
||||
--run)
|
||||
# Back-compat with the calling convention used by older automake.
|
||||
shift
|
||||
;;
|
||||
|
||||
-h|--h|--he|--hel|--help)
|
||||
echo "\
|
||||
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
||||
|
||||
Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
|
||||
to PROGRAM being missing or too old.
|
||||
|
||||
Options:
|
||||
-h, --help display this help and exit
|
||||
-v, --version output version information and exit
|
||||
|
||||
Supported PROGRAM values:
|
||||
aclocal autoconf autoheader autom4te automake makeinfo
|
||||
bison yacc flex lex help2man
|
||||
|
||||
Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
|
||||
'g' are ignored when checking the name.
|
||||
|
||||
Send bug reports to <bug-automake@gnu.org>."
|
||||
exit $?
|
||||
;;
|
||||
|
||||
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||
echo "missing $scriptversion (GNU Automake)"
|
||||
exit $?
|
||||
;;
|
||||
|
||||
-*)
|
||||
echo 1>&2 "$0: unknown '$1' option"
|
||||
echo 1>&2 "Try '$0 --help' for more information"
|
||||
exit 1
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
# Run the given program, remember its exit status.
|
||||
"$@"; st=$?
|
||||
|
||||
# If it succeeded, we are done.
|
||||
test $st -eq 0 && exit 0
|
||||
|
||||
# Also exit now if we it failed (or wasn't found), and '--version' was
|
||||
# passed; such an option is passed most likely to detect whether the
|
||||
# program is present and works.
|
||||
case $2 in --version|--help) exit $st;; esac
|
||||
|
||||
# Exit code 63 means version mismatch. This often happens when the user
|
||||
# tries to use an ancient version of a tool on a file that requires a
|
||||
# minimum version.
|
||||
if test $st -eq 63; then
|
||||
msg="probably too old"
|
||||
elif test $st -eq 127; then
|
||||
# Program was missing.
|
||||
msg="missing on your system"
|
||||
else
|
||||
# Program was found and executed, but failed. Give up.
|
||||
exit $st
|
||||
fi
|
||||
|
||||
perl_URL=http://www.perl.org/
|
||||
flex_URL=http://flex.sourceforge.net/
|
||||
gnu_software_URL=http://www.gnu.org/software
|
||||
|
||||
program_details ()
|
||||
{
|
||||
case $1 in
|
||||
aclocal|automake)
|
||||
echo "The '$1' program is part of the GNU Automake package:"
|
||||
echo "<$gnu_software_URL/automake>"
|
||||
echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
|
||||
echo "<$gnu_software_URL/autoconf>"
|
||||
echo "<$gnu_software_URL/m4/>"
|
||||
echo "<$perl_URL>"
|
||||
;;
|
||||
autoconf|autom4te|autoheader)
|
||||
echo "The '$1' program is part of the GNU Autoconf package:"
|
||||
echo "<$gnu_software_URL/autoconf/>"
|
||||
echo "It also requires GNU m4 and Perl in order to run:"
|
||||
echo "<$gnu_software_URL/m4/>"
|
||||
echo "<$perl_URL>"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
give_advice ()
|
||||
{
|
||||
# Normalize program name to check for.
|
||||
normalized_program=`echo "$1" | sed '
|
||||
s/^gnu-//; t
|
||||
s/^gnu//; t
|
||||
s/^g//; t'`
|
||||
|
||||
printf '%s\n' "'$1' is $msg."
|
||||
|
||||
configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
|
||||
case $normalized_program in
|
||||
autoconf*)
|
||||
echo "You should only need it if you modified 'configure.ac',"
|
||||
echo "or m4 files included by it."
|
||||
program_details 'autoconf'
|
||||
;;
|
||||
autoheader*)
|
||||
echo "You should only need it if you modified 'acconfig.h' or"
|
||||
echo "$configure_deps."
|
||||
program_details 'autoheader'
|
||||
;;
|
||||
automake*)
|
||||
echo "You should only need it if you modified 'Makefile.am' or"
|
||||
echo "$configure_deps."
|
||||
program_details 'automake'
|
||||
;;
|
||||
aclocal*)
|
||||
echo "You should only need it if you modified 'acinclude.m4' or"
|
||||
echo "$configure_deps."
|
||||
program_details 'aclocal'
|
||||
;;
|
||||
autom4te*)
|
||||
echo "You might have modified some maintainer files that require"
|
||||
echo "the 'autom4te' program to be rebuilt."
|
||||
program_details 'autom4te'
|
||||
;;
|
||||
bison*|yacc*)
|
||||
echo "You should only need it if you modified a '.y' file."
|
||||
echo "You may want to install the GNU Bison package:"
|
||||
echo "<$gnu_software_URL/bison/>"
|
||||
;;
|
||||
lex*|flex*)
|
||||
echo "You should only need it if you modified a '.l' file."
|
||||
echo "You may want to install the Fast Lexical Analyzer package:"
|
||||
echo "<$flex_URL>"
|
||||
;;
|
||||
help2man*)
|
||||
echo "You should only need it if you modified a dependency" \
|
||||
"of a man page."
|
||||
echo "You may want to install the GNU Help2man package:"
|
||||
echo "<$gnu_software_URL/help2man/>"
|
||||
;;
|
||||
makeinfo*)
|
||||
echo "You should only need it if you modified a '.texi' file, or"
|
||||
echo "any other file indirectly affecting the aspect of the manual."
|
||||
echo "You might want to install the Texinfo package:"
|
||||
echo "<$gnu_software_URL/texinfo/>"
|
||||
echo "The spurious makeinfo call might also be the consequence of"
|
||||
echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
|
||||
echo "want to install GNU make:"
|
||||
echo "<$gnu_software_URL/make/>"
|
||||
;;
|
||||
*)
|
||||
echo "You might have modified some files without having the proper"
|
||||
echo "tools for further handling them. Check the 'README' file, it"
|
||||
echo "often tells you about the needed prerequisites for installing"
|
||||
echo "this package. You may also peek at any GNU archive site, in"
|
||||
echo "case some other package contains this missing '$1' program."
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
give_advice "$1" | sed -e '1s/^/WARNING: /' \
|
||||
-e '2,$s/^/ /' >&2
|
||||
|
||||
# Propagate the correct exit status (expected to be 127 for a program
|
||||
# not found, 63 for a program that failed due to version mismatch).
|
||||
exit $st
|
||||
|
||||
# Local variables:
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC0"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
|
@ -0,0 +1,58 @@
|
|||
# Copyright 2005 Adam Jackson.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
||||
# license, and/or sell copies of the Software, and to permit persons to whom
|
||||
# the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
# this is obnoxious:
|
||||
# -module lets us name the module exactly how we want
|
||||
# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
|
||||
# _ladir passes a dummy rpath to libtool so the thing will actually link
|
||||
# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
|
||||
synaptics_drv_la_LTLIBRARIES = synaptics_drv.la
|
||||
synaptics_drv_la_LDFLAGS = -module -avoid-version
|
||||
synaptics_drv_ladir = @inputdir@
|
||||
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/include
|
||||
AM_CFLAGS = $(XORG_CFLAGS)
|
||||
|
||||
synaptics_drv_la_SOURCES = \
|
||||
synaptics.c \
|
||||
synapticsstr.h \
|
||||
synproto.c \
|
||||
synproto.h \
|
||||
properties.c
|
||||
|
||||
if BUILD_PS2COMM
|
||||
synaptics_drv_la_SOURCES += \
|
||||
alpscomm.c \
|
||||
ps2comm.c ps2comm.h
|
||||
endif
|
||||
|
||||
if BUILD_EVENTCOMM
|
||||
synaptics_drv_la_SOURCES += \
|
||||
eventcomm.c eventcomm.h
|
||||
synaptics_drv_la_LIBADD = \
|
||||
$(LIBEVDEV_LIBS)
|
||||
AM_CPPFLAGS += $(LIBEVDEV_CFLAGS)
|
||||
endif
|
||||
|
||||
if BUILD_PSMCOMM
|
||||
synaptics_drv_la_SOURCES += \
|
||||
psmcomm.c
|
||||
endif
|
|
@ -0,0 +1,735 @@
|
|||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# Copyright 2005 Adam Jackson.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
||||
# license, and/or sell copies of the Software, and to permit persons to whom
|
||||
# the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
@BUILD_PS2COMM_TRUE@am__append_1 = \
|
||||
@BUILD_PS2COMM_TRUE@ alpscomm.c \
|
||||
@BUILD_PS2COMM_TRUE@ ps2comm.c ps2comm.h
|
||||
|
||||
@BUILD_EVENTCOMM_TRUE@am__append_2 = \
|
||||
@BUILD_EVENTCOMM_TRUE@ eventcomm.c eventcomm.h
|
||||
|
||||
@BUILD_EVENTCOMM_TRUE@am__append_3 = $(LIBEVDEV_CFLAGS)
|
||||
@BUILD_PSMCOMM_TRUE@am__append_4 = \
|
||||
@BUILD_PSMCOMM_TRUE@ psmcomm.c
|
||||
|
||||
subdir = src
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||
am__install_max = 40
|
||||
am__nobase_strip_setup = \
|
||||
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||
am__nobase_strip = \
|
||||
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||
am__nobase_list = $(am__nobase_strip_setup); \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||
if (++n[$$2] == $(am__install_max)) \
|
||||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||
END { for (dir in files) print dir, files[dir] }'
|
||||
am__base_list = \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
am__uninstall_files_from_dir = { \
|
||||
test -z "$$files" \
|
||||
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||
}
|
||||
am__installdirs = "$(DESTDIR)$(synaptics_drv_ladir)"
|
||||
LTLIBRARIES = $(synaptics_drv_la_LTLIBRARIES)
|
||||
am__DEPENDENCIES_1 =
|
||||
@BUILD_EVENTCOMM_TRUE@synaptics_drv_la_DEPENDENCIES = \
|
||||
@BUILD_EVENTCOMM_TRUE@ $(am__DEPENDENCIES_1)
|
||||
am__synaptics_drv_la_SOURCES_DIST = synaptics.c synapticsstr.h \
|
||||
synproto.c synproto.h properties.c alpscomm.c ps2comm.c \
|
||||
ps2comm.h eventcomm.c eventcomm.h psmcomm.c
|
||||
@BUILD_PS2COMM_TRUE@am__objects_1 = alpscomm.lo ps2comm.lo
|
||||
@BUILD_EVENTCOMM_TRUE@am__objects_2 = eventcomm.lo
|
||||
@BUILD_PSMCOMM_TRUE@am__objects_3 = psmcomm.lo
|
||||
am_synaptics_drv_la_OBJECTS = synaptics.lo synproto.lo properties.lo \
|
||||
$(am__objects_1) $(am__objects_2) $(am__objects_3)
|
||||
synaptics_drv_la_OBJECTS = $(am_synaptics_drv_la_OBJECTS)
|
||||
AM_V_lt = $(am__v_lt_@AM_V@)
|
||||
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
||||
am__v_lt_0 = --silent
|
||||
am__v_lt_1 =
|
||||
synaptics_drv_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
|
||||
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
|
||||
$(AM_CFLAGS) $(CFLAGS) $(synaptics_drv_la_LDFLAGS) $(LDFLAGS) \
|
||||
-o $@
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
|
||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
am__mv = mv -f
|
||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
|
||||
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||
$(AM_CFLAGS) $(CFLAGS)
|
||||
AM_V_CC = $(am__v_CC_@AM_V@)
|
||||
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
|
||||
am__v_CC_0 = @echo " CC " $@;
|
||||
am__v_CC_1 =
|
||||
CCLD = $(CC)
|
||||
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
||||
$(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
|
||||
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
|
||||
am__v_CCLD_0 = @echo " CCLD " $@;
|
||||
am__v_CCLD_1 =
|
||||
SOURCES = $(synaptics_drv_la_SOURCES)
|
||||
DIST_SOURCES = $(am__synaptics_drv_la_SOURCES_DIST)
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
# Read a list of newline-separated strings from the standard input,
|
||||
# and print each of them once, without duplicates. Input order is
|
||||
# *not* preserved.
|
||||
am__uniquify_input = $(AWK) '\
|
||||
BEGIN { nonempty = 0; } \
|
||||
{ items[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in items) print i; }; } \
|
||||
'
|
||||
# Make sure the list of sources is unique. This is necessary because,
|
||||
# e.g., the same source file might be shared among _SOURCES variables
|
||||
# for different programs/libraries.
|
||||
am__define_uniq_tagged_files = \
|
||||
list='$(am__tagged_files)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
|
||||
ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
APP_MAN_DIR = @APP_MAN_DIR@
|
||||
APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
BASE_CFLAGS = @BASE_CFLAGS@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CHANGELOG_CMD = @CHANGELOG_CMD@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CWARNFLAGS = @CWARNFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
|
||||
DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CMD = @INSTALL_CMD@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBEVDEV_CFLAGS = @LIBEVDEV_CFLAGS@
|
||||
LIBEVDEV_LIBS = @LIBEVDEV_LIBS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIB_MAN_DIR = @LIB_MAN_DIR@
|
||||
LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MAN_SUBSTS = @MAN_SUBSTS@
|
||||
MISC_MAN_DIR = @MISC_MAN_DIR@
|
||||
MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRICT_CFLAGS = @STRICT_CFLAGS@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
XI_CFLAGS = @XI_CFLAGS@
|
||||
XI_LIBS = @XI_LIBS@
|
||||
XORG_CFLAGS = @XORG_CFLAGS@
|
||||
XORG_LIBS = @XORG_LIBS@
|
||||
XORG_MALLOC_DEBUG_ENV = @XORG_MALLOC_DEBUG_ENV@
|
||||
XORG_MAN_PAGE = @XORG_MAN_PAGE@
|
||||
XTST_CFLAGS = @XTST_CFLAGS@
|
||||
XTST_LIBS = @XTST_LIBS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
configdir = @configdir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
inputdir = @inputdir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sdkdir = @sdkdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
|
||||
# this is obnoxious:
|
||||
# -module lets us name the module exactly how we want
|
||||
# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
|
||||
# _ladir passes a dummy rpath to libtool so the thing will actually link
|
||||
# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
|
||||
synaptics_drv_la_LTLIBRARIES = synaptics_drv.la
|
||||
synaptics_drv_la_LDFLAGS = -module -avoid-version
|
||||
synaptics_drv_ladir = @inputdir@
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/include $(am__append_3)
|
||||
AM_CFLAGS = $(XORG_CFLAGS)
|
||||
synaptics_drv_la_SOURCES = synaptics.c synapticsstr.h synproto.c \
|
||||
synproto.h properties.c $(am__append_1) $(am__append_2) \
|
||||
$(am__append_4)
|
||||
@BUILD_EVENTCOMM_TRUE@synaptics_drv_la_LIBADD = \
|
||||
@BUILD_EVENTCOMM_TRUE@ $(LIBEVDEV_LIBS)
|
||||
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .lo .o .obj
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign src/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
install-synaptics_drv_laLTLIBRARIES: $(synaptics_drv_la_LTLIBRARIES)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(synaptics_drv_la_LTLIBRARIES)'; test -n "$(synaptics_drv_ladir)" || list=; \
|
||||
list2=; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
list2="$$list2 $$p"; \
|
||||
else :; fi; \
|
||||
done; \
|
||||
test -z "$$list2" || { \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(synaptics_drv_ladir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(synaptics_drv_ladir)" || exit 1; \
|
||||
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(synaptics_drv_ladir)'"; \
|
||||
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(synaptics_drv_ladir)"; \
|
||||
}
|
||||
|
||||
uninstall-synaptics_drv_laLTLIBRARIES:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(synaptics_drv_la_LTLIBRARIES)'; test -n "$(synaptics_drv_ladir)" || list=; \
|
||||
for p in $$list; do \
|
||||
$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(synaptics_drv_ladir)/$$f'"; \
|
||||
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(synaptics_drv_ladir)/$$f"; \
|
||||
done
|
||||
|
||||
clean-synaptics_drv_laLTLIBRARIES:
|
||||
-test -z "$(synaptics_drv_la_LTLIBRARIES)" || rm -f $(synaptics_drv_la_LTLIBRARIES)
|
||||
@list='$(synaptics_drv_la_LTLIBRARIES)'; \
|
||||
locs=`for p in $$list; do echo $$p; done | \
|
||||
sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
|
||||
sort -u`; \
|
||||
test -z "$$locs" || { \
|
||||
echo rm -f $${locs}; \
|
||||
rm -f $${locs}; \
|
||||
}
|
||||
|
||||
synaptics_drv.la: $(synaptics_drv_la_OBJECTS) $(synaptics_drv_la_DEPENDENCIES) $(EXTRA_synaptics_drv_la_DEPENDENCIES)
|
||||
$(AM_V_CCLD)$(synaptics_drv_la_LINK) -rpath $(synaptics_drv_ladir) $(synaptics_drv_la_OBJECTS) $(synaptics_drv_la_LIBADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alpscomm.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eventcomm.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/properties.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ps2comm.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/psmcomm.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synaptics.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synproto.Plo@am__quote@
|
||||
|
||||
.c.o:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
|
||||
|
||||
.c.obj:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
|
||||
.c.lo:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
ID: $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
||||
tags: tags-am
|
||||
TAGS: tags
|
||||
|
||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
$(am__define_uniq_tagged_files); \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: ctags-am
|
||||
|
||||
CTAGS: ctags
|
||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
cscopelist: cscopelist-am
|
||||
|
||||
cscopelist-am: $(am__tagged_files)
|
||||
list='$(am__tagged_files)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(LTLIBRARIES)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(synaptics_drv_ladir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool \
|
||||
clean-synaptics_drv_laLTLIBRARIES mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-synaptics_drv_laLTLIBRARIES
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-synaptics_drv_laLTLIBRARIES
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
|
||||
clean-libtool clean-synaptics_drv_laLTLIBRARIES cscopelist-am \
|
||||
ctags ctags-am distclean distclean-compile distclean-generic \
|
||||
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
install-data-am install-dvi install-dvi-am install-exec \
|
||||
install-exec-am install-html install-html-am install-info \
|
||||
install-info-am install-man install-pdf install-pdf-am \
|
||||
install-ps install-ps-am install-strip \
|
||||
install-synaptics_drv_laLTLIBRARIES installcheck \
|
||||
installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
tags tags-am uninstall uninstall-am \
|
||||
uninstall-synaptics_drv_laLTLIBRARIES
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
|
@ -0,0 +1,232 @@
|
|||
/*
|
||||
* Copyright © 2001 Stefan Gmeiner
|
||||
* Copyright © 2003 Neil Brown
|
||||
* Copyright © 2003-2005,2007 Peter Osterlund
|
||||
*
|
||||
* Permission to use, copy, modify, distribute, and sell this software
|
||||
* and its documentation for any purpose is hereby granted without
|
||||
* fee, provided that the above copyright notice appear in all copies
|
||||
* and that both that copyright notice and this permission notice
|
||||
* appear in supporting documentation, and that the name of Red Hat
|
||||
* not be used in advertising or publicity pertaining to distribution
|
||||
* of the software without specific, written prior permission. Red
|
||||
* Hat makes no representations about the suitability of this software
|
||||
* for any purpose. It is provided "as is" without express or implied
|
||||
* warranty.
|
||||
*
|
||||
* THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
|
||||
* NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*
|
||||
* Authors:
|
||||
* Stefan Gmeiner (riddlebox@freesurf.ch)
|
||||
* Neil Brown (neilb@cse.unsw.edu.au)
|
||||
* Peter Osterlund (petero2@telia.com)
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <xorg-server.h>
|
||||
#include "synproto.h"
|
||||
#include "synapticsstr.h"
|
||||
#include "ps2comm.h"
|
||||
#include <xf86.h>
|
||||
|
||||
/* Wait for the channel to go silent, which means we're in sync */
|
||||
static void
|
||||
ALPS_sync(int fd)
|
||||
{
|
||||
byte buffer[64];
|
||||
|
||||
while (xf86WaitForInput(fd, 250000) > 0) {
|
||||
xf86ReadSerial(fd, &buffer, 64);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* send the ALPS init sequence, ie 4 consecutive "disable"s before the "enable"
|
||||
* This "magic knock" is performed both for the trackpad and for the pointing
|
||||
* stick. Not all models have a pointing stick, but trying to initialize it
|
||||
* anyway doesn't seem to hurt.
|
||||
*/
|
||||
static void
|
||||
ALPS_initialize(int fd)
|
||||
{
|
||||
xf86FlushInput(fd);
|
||||
ps2_putbyte(fd, PS2_CMD_SET_DEFAULT);
|
||||
ps2_putbyte(fd, PS2_CMD_SET_SCALING_2_1);
|
||||
ps2_putbyte(fd, PS2_CMD_SET_SCALING_2_1);
|
||||
ps2_putbyte(fd, PS2_CMD_SET_SCALING_2_1);
|
||||
ps2_putbyte(fd, PS2_CMD_DISABLE);
|
||||
|
||||
ps2_putbyte(fd, PS2_CMD_DISABLE);
|
||||
ps2_putbyte(fd, PS2_CMD_DISABLE);
|
||||
ps2_putbyte(fd, PS2_CMD_DISABLE);
|
||||
ps2_putbyte(fd, PS2_CMD_DISABLE);
|
||||
ps2_putbyte(fd, PS2_CMD_ENABLE);
|
||||
|
||||
ps2_putbyte(fd, PS2_CMD_SET_SCALING_1_1);
|
||||
ps2_putbyte(fd, PS2_CMD_SET_SCALING_1_1);
|
||||
ps2_putbyte(fd, PS2_CMD_SET_SCALING_1_1);
|
||||
ps2_putbyte(fd, PS2_CMD_DISABLE);
|
||||
|
||||
ps2_putbyte(fd, PS2_CMD_DISABLE);
|
||||
ps2_putbyte(fd, PS2_CMD_DISABLE);
|
||||
ps2_putbyte(fd, PS2_CMD_DISABLE);
|
||||
ps2_putbyte(fd, PS2_CMD_DISABLE);
|
||||
ps2_putbyte(fd, PS2_CMD_ENABLE);
|
||||
|
||||
ALPS_sync(fd);
|
||||
}
|
||||
|
||||
static Bool
|
||||
ALPSQueryHardware(InputInfoPtr pInfo)
|
||||
{
|
||||
ALPS_initialize(pInfo->fd);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static Bool
|
||||
ALPS_packet_ok(struct CommData *comm)
|
||||
{
|
||||
/* ALPS absolute mode packets start with 0b11111mrl */
|
||||
if ((comm->protoBuf[0] & 0xf8) == 0xf8)
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static Bool
|
||||
ALPS_get_packet(struct CommData *comm, InputInfoPtr pInfo)
|
||||
{
|
||||
int c;
|
||||
|
||||
while ((c = XisbRead(comm->buffer)) >= 0) {
|
||||
unsigned char u = (unsigned char) c;
|
||||
|
||||
comm->protoBuf[comm->protoBufTail++] = u;
|
||||
|
||||
if (comm->protoBufTail == 3) { /* PS/2 packet received? */
|
||||
if ((comm->protoBuf[0] & 0xc8) == 0x08) {
|
||||
comm->protoBufTail = 0;
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
if (comm->protoBufTail >= 6) { /* Full packet received */
|
||||
comm->protoBufTail = 0;
|
||||
if (ALPS_packet_ok(comm))
|
||||
return TRUE;
|
||||
while ((c = XisbRead(comm->buffer)) >= 0); /* If packet is invalid, re-sync */
|
||||
}
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
* ALPS abolute Mode
|
||||
* byte 0: 1 1 1 1 1 mid0 rig0 lef0
|
||||
* byte 1: 0 x6 x5 x4 x3 x2 x1 x0
|
||||
* byte 2: 0 x10 x9 x8 x7 up1 fin ges
|
||||
* byte 3: 0 y9 y8 y7 1 mid1 rig1 lef1
|
||||
* byte 4: 0 y6 y5 y4 y3 y2 y1 y0
|
||||
* byte 5: 0 z6 z5 z4 z3 z2 z1 z0
|
||||
*
|
||||
* On a dualpoint, {mid,rig,lef}0 are the stick, 1 are the pad.
|
||||
* We just 'or' them together for now.
|
||||
*
|
||||
* The touchpad on an 'Acer Aspire' has 4 buttons:
|
||||
* left,right,up,down.
|
||||
* This device always sets {mid,rig,lef}0 to 1 and
|
||||
* reflects left,right,down,up in lef1,rig1,mid1,up1.
|
||||
*/
|
||||
static void
|
||||
ALPS_process_packet(unsigned char *packet, struct SynapticsHwState *hw)
|
||||
{
|
||||
int x = 0, y = 0, z = 0;
|
||||
int left = 0, right = 0, middle = 0;
|
||||
int i;
|
||||
|
||||
hw->millis = GetTimeInMillis();
|
||||
|
||||
x = (packet[1] & 0x7f) | ((packet[2] & 0x78) << (7 - 3));
|
||||
y = (packet[4] & 0x7f) | ((packet[3] & 0x70) << (7 - 4));
|
||||
z = packet[5];
|
||||
|
||||
if (z == 127) { /* DualPoint stick is relative, not absolute */
|
||||
hw->left = packet[3] & 1;
|
||||
hw->right = (packet[3] >> 1) & 1;
|
||||
return;
|
||||
}
|
||||
|
||||
/* Handle normal packets */
|
||||
hw->x = hw->y = hw->z = hw->numFingers = hw->fingerWidth = 0;
|
||||
hw->left = hw->right = hw->up = hw->down = hw->middle = FALSE;
|
||||
for (i = 0; i < 8; i++)
|
||||
hw->multi[i] = FALSE;
|
||||
|
||||
if (z > 0) {
|
||||
hw->x = x;
|
||||
hw->y = y;
|
||||
}
|
||||
hw->z = z;
|
||||
hw->numFingers = (z > 0) ? 1 : 0;
|
||||
hw->fingerWidth = 5;
|
||||
|
||||
left |= (packet[2]) & 1;
|
||||
left |= (packet[3]) & 1;
|
||||
right |= (packet[3] >> 1) & 1;
|
||||
if (packet[0] == 0xff) {
|
||||
int back = (packet[3] >> 2) & 1;
|
||||
int forward = (packet[2] >> 2) & 1;
|
||||
|
||||
if (back && forward) {
|
||||
middle = 1;
|
||||
back = 0;
|
||||
forward = 0;
|
||||
}
|
||||
hw->down = back;
|
||||
hw->up = forward;
|
||||
}
|
||||
else {
|
||||
left |= (packet[0]) & 1;
|
||||
right |= (packet[0] >> 1) & 1;
|
||||
middle |= (packet[0] >> 2) & 1;
|
||||
middle |= (packet[3] >> 2) & 1;
|
||||
}
|
||||
|
||||
hw->left = left;
|
||||
hw->right = right;
|
||||
hw->middle = middle;
|
||||
}
|
||||
|
||||
static Bool
|
||||
ALPSReadHwState(InputInfoPtr pInfo,
|
||||
struct CommData *comm, struct SynapticsHwState *hwRet)
|
||||
{
|
||||
unsigned char *buf = comm->protoBuf;
|
||||
struct SynapticsHwState *hw = comm->hwState;
|
||||
|
||||
if (!ALPS_get_packet(comm, pInfo))
|
||||
return FALSE;
|
||||
|
||||
ALPS_process_packet(buf, hw);
|
||||
|
||||
SynapticsCopyHwState(hwRet, hw);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
struct SynapticsProtocolOperations alps_proto_operations = {
|
||||
NULL,
|
||||
NULL,
|
||||
ALPSQueryHardware,
|
||||
ALPSReadHwState,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* Copyright © 2004 Peter Osterlund
|
||||
*
|
||||
* Permission to use, copy, modify, distribute, and sell this software
|
||||
* and its documentation for any purpose is hereby granted without
|
||||
* fee, provided that the above copyright notice appear in all copies
|
||||
* and that both that copyright notice and this permission notice
|
||||
* appear in supporting documentation, and that the name of Red Hat
|
||||
* not be used in advertising or publicity pertaining to distribution
|
||||
* of the software without specific, written prior permission. Red
|
||||
* Hat makes no representations about the suitability of this software
|
||||
* for any purpose. It is provided "as is" without express or implied
|
||||
* warranty.
|
||||
*
|
||||
* THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
|
||||
* NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*
|
||||
* Authors:
|
||||
* Peter Osterlund (petero2@telia.com)
|
||||
*/
|
||||
|
||||
#ifndef _EVENTCOMM_H_
|
||||
#define _EVENTCOMM_H_
|
||||
|
||||
#include <xorg-server.h>
|
||||
|
||||
#include <linux/input.h>
|
||||
#include <linux/version.h>
|
||||
#include <xf86Xinput.h>
|
||||
#include "synproto.h"
|
||||
|
||||
/* for auto-dev: */
|
||||
#define DEV_INPUT_EVENT "/dev/input"
|
||||
#define EVENT_DEV_NAME "event"
|
||||
|
||||
struct eventcomm_proto_data;
|
||||
|
||||
extern struct eventcomm_proto_data *EventProtoDataAlloc(int fd);
|
||||
|
||||
extern Bool
|
||||
EventReadHwState(InputInfoPtr pInfo,
|
||||
struct CommData *comm, struct SynapticsHwState *hwRet);
|
||||
|
||||
#endif /* _EVENTCOMM_H_ */
|
|
@ -0,0 +1,832 @@
|
|||
/*
|
||||
* Copyright © 2008-2012 Red Hat, Inc.
|
||||
*
|
||||
* Permission to use, copy, modify, distribute, and sell this software
|
||||
* and its documentation for any purpose is hereby granted without
|
||||
* fee, provided that the above copyright notice appear in all copies
|
||||
* and that both that copyright notice and this permission notice
|
||||
* appear in supporting documentation, and that the name of Red Hat
|
||||
* not be used in advertising or publicity pertaining to distribution
|
||||
* of the software without specific, written prior permission. Red
|
||||
* Hat makes no representations about the suitability of this software
|
||||
* for any purpose. It is provided "as is" without express or implied
|
||||
* warranty.
|
||||
*
|
||||
* THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
|
||||
* NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*
|
||||
* Authors: Peter Hutterer
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <xorg-server.h>
|
||||
#include "xf86Module.h"
|
||||
|
||||
#include <X11/Xatom.h>
|
||||
#include <xf86.h>
|
||||
#include <xf86Xinput.h>
|
||||
#include <exevents.h>
|
||||
|
||||
#include "synapticsstr.h"
|
||||
#include "synaptics-properties.h"
|
||||
|
||||
#ifndef XATOM_FLOAT
|
||||
#define XATOM_FLOAT "FLOAT"
|
||||
#endif
|
||||
|
||||
#ifndef XI_PROP_PRODUCT_ID
|
||||
#define XI_PROP_PRODUCT_ID "Device Product ID"
|
||||
#endif
|
||||
|
||||
#ifndef XI_PROP_DEVICE_NODE
|
||||
#define XI_PROP_DEVICE_NODE "Device Node"
|
||||
#endif
|
||||
|
||||
static Atom float_type;
|
||||
|
||||
Atom prop_edges = 0;
|
||||
Atom prop_finger = 0;
|
||||
Atom prop_tap_time = 0;
|
||||
Atom prop_tap_move = 0;
|
||||
Atom prop_tap_durations = 0;
|
||||
Atom prop_clickpad = 0;
|
||||
Atom prop_middle_timeout = 0;
|
||||
Atom prop_twofinger_pressure = 0;
|
||||
Atom prop_twofinger_width = 0;
|
||||
Atom prop_scrolldist = 0;
|
||||
Atom prop_scrolledge = 0;
|
||||
Atom prop_scrolltwofinger = 0;
|
||||
Atom prop_speed = 0;
|
||||
Atom prop_edgemotion_pressure = 0;
|
||||
Atom prop_edgemotion_speed = 0;
|
||||
Atom prop_edgemotion_always = 0;
|
||||
Atom prop_buttonscroll = 0;
|
||||
Atom prop_buttonscroll_repeat = 0;
|
||||
Atom prop_buttonscroll_time = 0;
|
||||
Atom prop_off = 0;
|
||||
Atom prop_lockdrags = 0;
|
||||
Atom prop_lockdrags_time = 0;
|
||||
Atom prop_tapaction = 0;
|
||||
Atom prop_clickaction = 0;
|
||||
Atom prop_circscroll = 0;
|
||||
Atom prop_circscroll_dist = 0;
|
||||
Atom prop_circscroll_trigger = 0;
|
||||
Atom prop_circpad = 0;
|
||||
Atom prop_palm = 0;
|
||||
Atom prop_palm_dim = 0;
|
||||
Atom prop_coastspeed = 0;
|
||||
Atom prop_pressuremotion = 0;
|
||||
Atom prop_pressuremotion_factor = 0;
|
||||
Atom prop_grab = 0;
|
||||
Atom prop_gestures = 0;
|
||||
Atom prop_capabilities = 0;
|
||||
Atom prop_resolution = 0;
|
||||
Atom prop_area = 0;
|
||||
Atom prop_softbutton_areas = 0;
|
||||
Atom prop_secondary_softbutton_areas = 0;
|
||||
Atom prop_noise_cancellation = 0;
|
||||
Atom prop_product_id = 0;
|
||||
Atom prop_device_node = 0;
|
||||
|
||||
static Atom
|
||||
InitTypedAtom(DeviceIntPtr dev, char *name, Atom type, int format, int nvalues,
|
||||
int *values)
|
||||
{
|
||||
int i;
|
||||
Atom atom;
|
||||
uint8_t val_8[9]; /* we never have more than 9 values in an atom */
|
||||
uint16_t val_16[9];
|
||||
uint32_t val_32[9];
|
||||
pointer converted;
|
||||
|
||||
for (i = 0; i < nvalues; i++) {
|
||||
switch (format) {
|
||||
case 8:
|
||||
val_8[i] = values[i];
|
||||
break;
|
||||
case 16:
|
||||
val_16[i] = values[i];
|
||||
break;
|
||||
case 32:
|
||||
val_32[i] = values[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
switch (format) {
|
||||
case 8:
|
||||
converted = val_8;
|
||||
break;
|
||||
case 16:
|
||||
converted = val_16;
|
||||
break;
|
||||
case 32:
|
||||
default:
|
||||
converted = val_32;
|
||||
break;
|
||||
}
|
||||
|
||||
atom = MakeAtom(name, strlen(name), TRUE);
|
||||
XIChangeDeviceProperty(dev, atom, type, format, PropModeReplace, nvalues,
|
||||
converted, FALSE);
|
||||
XISetDevicePropertyDeletable(dev, atom, FALSE);
|
||||
return atom;
|
||||
}
|
||||
|
||||
static Atom
|
||||
InitAtom(DeviceIntPtr dev, char *name, int format, int nvalues, int *values)
|
||||
{
|
||||
return InitTypedAtom(dev, name, XA_INTEGER, format, nvalues, values);
|
||||
}
|
||||
|
||||
static Atom
|
||||
InitFloatAtom(DeviceIntPtr dev, char *name, int nvalues, float *values)
|
||||
{
|
||||
Atom atom;
|
||||
|
||||
atom = MakeAtom(name, strlen(name), TRUE);
|
||||
XIChangeDeviceProperty(dev, atom, float_type, 32, PropModeReplace,
|
||||
nvalues, values, FALSE);
|
||||
XISetDevicePropertyDeletable(dev, atom, FALSE);
|
||||
return atom;
|
||||
}
|
||||
|
||||
static void
|
||||
InitSoftButtonProperty(InputInfoPtr pInfo)
|
||||
{
|
||||
SynapticsPrivate *priv = (SynapticsPrivate *) pInfo->private;
|
||||
SynapticsParameters *para = &priv->synpara;
|
||||
int values[8];
|
||||
|
||||
values[0] = para->softbutton_areas[BOTTOM_RIGHT_BUTTON_AREA][LEFT];
|
||||
values[1] = para->softbutton_areas[BOTTOM_RIGHT_BUTTON_AREA][RIGHT];
|
||||
values[2] = para->softbutton_areas[BOTTOM_RIGHT_BUTTON_AREA][TOP];
|
||||
values[3] = para->softbutton_areas[BOTTOM_RIGHT_BUTTON_AREA][BOTTOM];
|
||||
values[4] = para->softbutton_areas[BOTTOM_MIDDLE_BUTTON_AREA][LEFT];
|
||||
values[5] = para->softbutton_areas[BOTTOM_MIDDLE_BUTTON_AREA][RIGHT];
|
||||
values[6] = para->softbutton_areas[BOTTOM_MIDDLE_BUTTON_AREA][TOP];
|
||||
values[7] = para->softbutton_areas[BOTTOM_MIDDLE_BUTTON_AREA][BOTTOM];
|
||||
prop_softbutton_areas =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_SOFTBUTTON_AREAS, 32, 8, values);
|
||||
|
||||
if (!para->has_secondary_buttons)
|
||||
return;
|
||||
|
||||
values[0] = para->softbutton_areas[TOP_RIGHT_BUTTON_AREA][LEFT];
|
||||
values[1] = para->softbutton_areas[TOP_RIGHT_BUTTON_AREA][RIGHT];
|
||||
values[2] = para->softbutton_areas[TOP_RIGHT_BUTTON_AREA][TOP];
|
||||
values[3] = para->softbutton_areas[TOP_RIGHT_BUTTON_AREA][BOTTOM];
|
||||
values[4] = para->softbutton_areas[TOP_MIDDLE_BUTTON_AREA][LEFT];
|
||||
values[5] = para->softbutton_areas[TOP_MIDDLE_BUTTON_AREA][RIGHT];
|
||||
values[6] = para->softbutton_areas[TOP_MIDDLE_BUTTON_AREA][TOP];
|
||||
values[7] = para->softbutton_areas[TOP_MIDDLE_BUTTON_AREA][BOTTOM];
|
||||
|
||||
if (values[0] || values[1] || values[2] || values[4] ||
|
||||
values[5] || values[6] || values[7])
|
||||
prop_secondary_softbutton_areas =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_SECONDARY_SOFTBUTTON_AREAS, 32, 8, values);
|
||||
}
|
||||
|
||||
void
|
||||
InitDeviceProperties(InputInfoPtr pInfo)
|
||||
{
|
||||
SynapticsPrivate *priv = (SynapticsPrivate *) pInfo->private;
|
||||
SynapticsParameters *para = &priv->synpara;
|
||||
int values[9]; /* we never have more than 9 values in an atom */
|
||||
float fvalues[4]; /* never have more than 4 float values */
|
||||
|
||||
float_type = XIGetKnownProperty(XATOM_FLOAT);
|
||||
if (!float_type) {
|
||||
float_type = MakeAtom(XATOM_FLOAT, strlen(XATOM_FLOAT), TRUE);
|
||||
if (!float_type) {
|
||||
xf86IDrvMsg(pInfo, X_ERROR, "Failed to init float atom. "
|
||||
"Disabling property support.\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
values[0] = para->left_edge;
|
||||
values[1] = para->right_edge;
|
||||
values[2] = para->top_edge;
|
||||
values[3] = para->bottom_edge;
|
||||
|
||||
prop_edges = InitAtom(pInfo->dev, SYNAPTICS_PROP_EDGES, 32, 4, values);
|
||||
|
||||
values[0] = para->finger_low;
|
||||
values[1] = para->finger_high;
|
||||
values[2] = 0;
|
||||
|
||||
prop_finger = InitAtom(pInfo->dev, SYNAPTICS_PROP_FINGER, 32, 3, values);
|
||||
prop_tap_time =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_TAP_TIME, 32, 1, ¶->tap_time);
|
||||
prop_tap_move =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_TAP_MOVE, 32, 1, ¶->tap_move);
|
||||
|
||||
values[0] = para->single_tap_timeout;
|
||||
values[1] = para->tap_time_2;
|
||||
values[2] = para->click_time;
|
||||
|
||||
prop_tap_durations =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_TAP_DURATIONS, 32, 3, values);
|
||||
prop_clickpad =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_CLICKPAD, 8, 1, ¶->clickpad);
|
||||
prop_middle_timeout =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_MIDDLE_TIMEOUT, 32, 1,
|
||||
¶->emulate_mid_button_time);
|
||||
prop_twofinger_pressure =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_TWOFINGER_PRESSURE, 32, 1,
|
||||
¶->emulate_twofinger_z);
|
||||
prop_twofinger_width =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_TWOFINGER_WIDTH, 32, 1,
|
||||
¶->emulate_twofinger_w);
|
||||
|
||||
values[0] = para->scroll_dist_vert;
|
||||
values[1] = para->scroll_dist_horiz;
|
||||
prop_scrolldist =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_SCROLL_DISTANCE, 32, 2, values);
|
||||
|
||||
values[0] = para->scroll_edge_vert;
|
||||
values[1] = para->scroll_edge_horiz;
|
||||
values[2] = para->scroll_edge_corner;
|
||||
prop_scrolledge =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_SCROLL_EDGE, 8, 3, values);
|
||||
values[0] = para->scroll_twofinger_vert;
|
||||
values[1] = para->scroll_twofinger_horiz;
|
||||
prop_scrolltwofinger =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_SCROLL_TWOFINGER, 8, 2, values);
|
||||
|
||||
fvalues[0] = para->min_speed;
|
||||
fvalues[1] = para->max_speed;
|
||||
fvalues[2] = para->accl;
|
||||
fvalues[3] = 0;
|
||||
prop_speed = InitFloatAtom(pInfo->dev, SYNAPTICS_PROP_SPEED, 4, fvalues);
|
||||
|
||||
if (priv->has_scrollbuttons) {
|
||||
values[0] = para->updown_button_scrolling;
|
||||
values[1] = para->leftright_button_scrolling;
|
||||
prop_buttonscroll =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_BUTTONSCROLLING, 8, 2, values);
|
||||
|
||||
values[0] = para->updown_button_repeat;
|
||||
values[1] = para->leftright_button_repeat;
|
||||
prop_buttonscroll_repeat =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_BUTTONSCROLLING_REPEAT, 8, 2,
|
||||
values);
|
||||
prop_buttonscroll_time =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_BUTTONSCROLLING_TIME, 32, 1,
|
||||
¶->scroll_button_repeat);
|
||||
}
|
||||
|
||||
prop_off =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_OFF, 8, 1, ¶->touchpad_off);
|
||||
prop_lockdrags =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_LOCKED_DRAGS, 8, 1,
|
||||
¶->locked_drags);
|
||||
prop_lockdrags_time =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_LOCKED_DRAGS_TIMEOUT, 32, 1,
|
||||
¶->locked_drag_time);
|
||||
|
||||
memcpy(values, para->tap_action, MAX_TAP * sizeof(int));
|
||||
prop_tapaction =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_TAP_ACTION, 8, MAX_TAP, values);
|
||||
|
||||
memcpy(values, para->click_action, MAX_CLICK * sizeof(int));
|
||||
prop_clickaction =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_CLICK_ACTION, 8, MAX_CLICK, values);
|
||||
|
||||
prop_circscroll =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_CIRCULAR_SCROLLING, 8, 1,
|
||||
¶->circular_scrolling);
|
||||
|
||||
fvalues[0] = para->scroll_dist_circ;
|
||||
prop_circscroll_dist =
|
||||
InitFloatAtom(pInfo->dev, SYNAPTICS_PROP_CIRCULAR_SCROLLING_DIST, 1,
|
||||
fvalues);
|
||||
|
||||
prop_circscroll_trigger =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_CIRCULAR_SCROLLING_TRIGGER, 8, 1,
|
||||
¶->circular_trigger);
|
||||
prop_circpad =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_CIRCULAR_PAD, 8, 1,
|
||||
¶->circular_pad);
|
||||
prop_palm =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_PALM_DETECT, 8, 1,
|
||||
¶->palm_detect);
|
||||
|
||||
values[0] = para->palm_min_width;
|
||||
values[1] = para->palm_min_z;
|
||||
|
||||
prop_palm_dim =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_PALM_DIMENSIONS, 32, 2, values);
|
||||
|
||||
fvalues[0] = para->coasting_speed;
|
||||
fvalues[1] = para->coasting_friction;
|
||||
prop_coastspeed =
|
||||
InitFloatAtom(pInfo->dev, SYNAPTICS_PROP_COASTING_SPEED, 2, fvalues);
|
||||
|
||||
values[0] = para->press_motion_min_z;
|
||||
values[1] = para->press_motion_max_z;
|
||||
prop_pressuremotion =
|
||||
InitTypedAtom(pInfo->dev, SYNAPTICS_PROP_PRESSURE_MOTION, XA_CARDINAL,
|
||||
32, 2, values);
|
||||
|
||||
fvalues[0] = para->press_motion_min_factor;
|
||||
fvalues[1] = para->press_motion_max_factor;
|
||||
|
||||
prop_pressuremotion_factor =
|
||||
InitFloatAtom(pInfo->dev, SYNAPTICS_PROP_PRESSURE_MOTION_FACTOR, 2,
|
||||
fvalues);
|
||||
|
||||
prop_grab =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_GRAB, 8, 1,
|
||||
¶->grab_event_device);
|
||||
|
||||
values[0] = para->tap_and_drag_gesture;
|
||||
prop_gestures = InitAtom(pInfo->dev, SYNAPTICS_PROP_GESTURES, 8, 1, values);
|
||||
|
||||
values[0] = priv->has_left;
|
||||
values[1] = priv->has_middle;
|
||||
values[2] = priv->has_right;
|
||||
values[3] = priv->has_double;
|
||||
values[4] = priv->has_triple;
|
||||
values[5] = priv->has_pressure;
|
||||
values[6] = priv->has_width;
|
||||
prop_capabilities =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_CAPABILITIES, 8, 7, values);
|
||||
|
||||
values[0] = para->resolution_vert;
|
||||
values[1] = para->resolution_horiz;
|
||||
prop_resolution =
|
||||
InitAtom(pInfo->dev, SYNAPTICS_PROP_RESOLUTION, 32, 2, values);
|
||||
|
||||
values[0] = para->area_left_edge;
|
||||
values[1] = para->area_right_edge;
|
||||
values[2] = para->area_top_edge;
|
||||
values[3] = para->area_bottom_edge;
|
||||
prop_area = InitAtom(pInfo->dev, SYNAPTICS_PROP_AREA, 32, 4, values);
|
||||
|
||||
if (para->clickpad)
|
||||
InitSoftButtonProperty(pInfo);
|
||||
|
||||
values[0] = para->hyst_x;
|
||||
values[1] = para->hyst_y;
|
||||
prop_noise_cancellation = InitAtom(pInfo->dev,
|
||||
SYNAPTICS_PROP_NOISE_CANCELLATION, 32, 2,
|
||||
values);
|
||||
|
||||
/* only init product_id property if we actually know them */
|
||||
if (priv->id_vendor || priv->id_product) {
|
||||
values[0] = priv->id_vendor;
|
||||
values[1] = priv->id_product;
|
||||
prop_product_id =
|
||||
InitAtom(pInfo->dev, XI_PROP_PRODUCT_ID, 32, 2, values);
|
||||
}
|
||||
|
||||
if (priv->device) {
|
||||
prop_device_node =
|
||||
MakeAtom(XI_PROP_DEVICE_NODE, strlen(XI_PROP_DEVICE_NODE), TRUE);
|
||||
XIChangeDeviceProperty(pInfo->dev, prop_device_node, XA_STRING, 8,
|
||||
PropModeReplace, strlen(priv->device),
|
||||
(pointer) priv->device, FALSE);
|
||||
XISetDevicePropertyDeletable(pInfo->dev, prop_device_node, FALSE);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
int
|
||||
SetProperty(DeviceIntPtr dev, Atom property, XIPropertyValuePtr prop,
|
||||
BOOL checkonly)
|
||||
{
|
||||
InputInfoPtr pInfo = dev->public.devicePrivate;
|
||||
SynapticsPrivate *priv = (SynapticsPrivate *) pInfo->private;
|
||||
SynapticsParameters *para = &priv->synpara;
|
||||
SynapticsParameters tmp;
|
||||
|
||||
/* If checkonly is set, no parameters may be changed. So just let the code
|
||||
* change temporary variables and forget about it. */
|
||||
if (checkonly) {
|
||||
tmp = *para;
|
||||
para = &tmp;
|
||||
}
|
||||
|
||||
if (property == prop_edges) {
|
||||
INT32 *edges;
|
||||
|
||||
if (prop->size != 4 || prop->format != 32 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
edges = (INT32 *) prop->data;
|
||||
if (edges[0] > edges[1] || edges[2] > edges[3])
|
||||
return BadValue;
|
||||
|
||||
para->left_edge = edges[0];
|
||||
para->right_edge = edges[1];
|
||||
para->top_edge = edges[2];
|
||||
para->bottom_edge = edges[3];
|
||||
|
||||
}
|
||||
else if (property == prop_finger) {
|
||||
INT32 *finger;
|
||||
|
||||
if (prop->size != 3 || prop->format != 32 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
finger = (INT32 *) prop->data;
|
||||
if (finger[0] > finger[1])
|
||||
return BadValue;
|
||||
|
||||
para->finger_low = finger[0];
|
||||
para->finger_high = finger[1];
|
||||
}
|
||||
else if (property == prop_tap_time) {
|
||||
if (prop->size != 1 || prop->format != 32 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
para->tap_time = *(INT32 *) prop->data;
|
||||
|
||||
}
|
||||
else if (property == prop_tap_move) {
|
||||
if (prop->size != 1 || prop->format != 32 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
para->tap_move = *(INT32 *) prop->data;
|
||||
}
|
||||
else if (property == prop_tap_durations) {
|
||||
INT32 *timeouts;
|
||||
|
||||
if (prop->size != 3 || prop->format != 32 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
timeouts = (INT32 *) prop->data;
|
||||
|
||||
para->single_tap_timeout = timeouts[0];
|
||||
para->tap_time_2 = timeouts[1];
|
||||
para->click_time = timeouts[2];
|
||||
}
|
||||
else if (property == prop_clickpad) {
|
||||
BOOL value;
|
||||
|
||||
if (prop->size != 1 || prop->format != 8 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
value = *(BOOL *) prop->data;
|
||||
if (!para->clickpad && value && !prop_softbutton_areas)
|
||||
InitSoftButtonProperty(pInfo);
|
||||
else if (para->clickpad && !value && prop_softbutton_areas) {
|
||||
XIDeleteDeviceProperty(dev, prop_softbutton_areas, FALSE);
|
||||
prop_softbutton_areas = 0;
|
||||
}
|
||||
|
||||
para->clickpad = *(BOOL *) prop->data;
|
||||
}
|
||||
else if (property == prop_middle_timeout) {
|
||||
if (prop->size != 1 || prop->format != 32 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
para->emulate_mid_button_time = *(INT32 *) prop->data;
|
||||
}
|
||||
else if (property == prop_twofinger_pressure) {
|
||||
if (prop->size != 1 || prop->format != 32 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
para->emulate_twofinger_z = *(INT32 *) prop->data;
|
||||
}
|
||||
else if (property == prop_twofinger_width) {
|
||||
if (prop->size != 1 || prop->format != 32 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
para->emulate_twofinger_w = *(INT32 *) prop->data;
|
||||
}
|
||||
else if (property == prop_scrolldist) {
|
||||
INT32 *dist;
|
||||
|
||||
if (prop->size != 2 || prop->format != 32 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
dist = (INT32 *) prop->data;
|
||||
if (dist[0] == 0 || dist[1] == 0)
|
||||
return BadValue;
|
||||
|
||||
if (para->scroll_dist_vert != dist[0]) {
|
||||
para->scroll_dist_vert = dist[0];
|
||||
SetScrollValuator(dev, priv->scroll_axis_vert, SCROLL_TYPE_VERTICAL,
|
||||
para->scroll_dist_vert, 0);
|
||||
}
|
||||
if (para->scroll_dist_horiz != dist[1]) {
|
||||
para->scroll_dist_horiz = dist[1];
|
||||
SetScrollValuator(dev, priv->scroll_axis_horiz,
|
||||
SCROLL_TYPE_HORIZONTAL, para->scroll_dist_horiz,
|
||||
0);
|
||||
}
|
||||
}
|
||||
else if (property == prop_scrolledge) {
|
||||
CARD8 *edge;
|
||||
|
||||
if (prop->size != 3 || prop->format != 8 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
edge = (BOOL *) prop->data;
|
||||
para->scroll_edge_vert = edge[0];
|
||||
para->scroll_edge_horiz = edge[1];
|
||||
para->scroll_edge_corner = edge[2];
|
||||
}
|
||||
else if (property == prop_scrolltwofinger) {
|
||||
CARD8 *twofinger;
|
||||
|
||||
if (prop->size != 2 || prop->format != 8 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
twofinger = (BOOL *) prop->data;
|
||||
para->scroll_twofinger_vert = twofinger[0];
|
||||
para->scroll_twofinger_horiz = twofinger[1];
|
||||
}
|
||||
else if (property == prop_speed) {
|
||||
float *speed;
|
||||
|
||||
if (prop->size != 4 || prop->format != 32 || prop->type != float_type)
|
||||
return BadMatch;
|
||||
|
||||
speed = (float *) prop->data;
|
||||
para->min_speed = speed[0];
|
||||
para->max_speed = speed[1];
|
||||
para->accl = speed[2];
|
||||
}
|
||||
else if (property == prop_buttonscroll) {
|
||||
BOOL *scroll;
|
||||
|
||||
if (!priv->has_scrollbuttons)
|
||||
return BadMatch;
|
||||
|
||||
if (prop->size != 2 || prop->format != 8 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
scroll = (BOOL *) prop->data;
|
||||
para->updown_button_scrolling = scroll[0];
|
||||
para->leftright_button_scrolling = scroll[1];
|
||||
|
||||
}
|
||||
else if (property == prop_buttonscroll_repeat) {
|
||||
BOOL *repeat;
|
||||
|
||||
if (!priv->has_scrollbuttons)
|
||||
return BadMatch;
|
||||
|
||||
if (prop->size != 2 || prop->format != 8 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
repeat = (BOOL *) prop->data;
|
||||
para->updown_button_repeat = repeat[0];
|
||||
para->leftright_button_repeat = repeat[1];
|
||||
}
|
||||
else if (property == prop_buttonscroll_time) {
|
||||
if (!priv->has_scrollbuttons)
|
||||
return BadMatch;
|
||||
|
||||
if (prop->size != 1 || prop->format != 32 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
para->scroll_button_repeat = *(INT32 *) prop->data;
|
||||
|
||||
}
|
||||
else if (property == prop_off) {
|
||||
CARD8 off;
|
||||
|
||||
if (prop->size != 1 || prop->format != 8 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
off = *(CARD8 *) prop->data;
|
||||
|
||||
if (off > 2)
|
||||
return BadValue;
|
||||
|
||||
para->touchpad_off = off;
|
||||
}
|
||||
else if (property == prop_gestures) {
|
||||
BOOL *gestures;
|
||||
|
||||
if (prop->size != 1 || prop->format != 8 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
gestures = (BOOL *) prop->data;
|
||||
para->tap_and_drag_gesture = gestures[0];
|
||||
}
|
||||
else if (property == prop_lockdrags) {
|
||||
if (prop->size != 1 || prop->format != 8 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
para->locked_drags = *(BOOL *) prop->data;
|
||||
}
|
||||
else if (property == prop_lockdrags_time) {
|
||||
if (prop->size != 1 || prop->format != 32 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
para->locked_drag_time = *(INT32 *) prop->data;
|
||||
}
|
||||
else if (property == prop_tapaction) {
|
||||
int i;
|
||||
CARD8 *action;
|
||||
|
||||
if (prop->size > MAX_TAP || prop->format != 8 ||
|
||||
prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
action = (CARD8 *) prop->data;
|
||||
|
||||
for (i = 0; i < MAX_TAP; i++)
|
||||
para->tap_action[i] = action[i];
|
||||
}
|
||||
else if (property == prop_clickaction) {
|
||||
int i;
|
||||
CARD8 *action;
|
||||
|
||||
if (prop->size > MAX_CLICK || prop->format != 8 ||
|
||||
prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
action = (CARD8 *) prop->data;
|
||||
|
||||
for (i = 0; i < MAX_CLICK; i++)
|
||||
para->click_action[i] = action[i];
|
||||
}
|
||||
else if (property == prop_circscroll) {
|
||||
if (prop->size != 1 || prop->format != 8 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
para->circular_scrolling = *(BOOL *) prop->data;
|
||||
|
||||
}
|
||||
else if (property == prop_circscroll_dist) {
|
||||
float circdist;
|
||||
|
||||
if (prop->size != 1 || prop->format != 32 || prop->type != float_type)
|
||||
return BadMatch;
|
||||
|
||||
circdist = *(float *) prop->data;
|
||||
if (circdist == 0)
|
||||
return BadValue;
|
||||
|
||||
para->scroll_dist_circ = circdist;
|
||||
}
|
||||
else if (property == prop_circscroll_trigger) {
|
||||
int trigger;
|
||||
|
||||
if (prop->size != 1 || prop->format != 8 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
trigger = *(CARD8 *) prop->data;
|
||||
if (trigger > 8)
|
||||
return BadValue;
|
||||
|
||||
para->circular_trigger = trigger;
|
||||
|
||||
}
|
||||
else if (property == prop_circpad) {
|
||||
if (prop->size != 1 || prop->format != 8 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
para->circular_pad = *(BOOL *) prop->data;
|
||||
}
|
||||
else if (property == prop_palm) {
|
||||
if (prop->size != 1 || prop->format != 8 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
para->palm_detect = *(BOOL *) prop->data;
|
||||
}
|
||||
else if (property == prop_palm_dim) {
|
||||
INT32 *dim;
|
||||
|
||||
if (prop->size != 2 || prop->format != 32 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
dim = (INT32 *) prop->data;
|
||||
|
||||
para->palm_min_width = dim[0];
|
||||
para->palm_min_z = dim[1];
|
||||
}
|
||||
else if (property == prop_coastspeed) {
|
||||
float *coast_speeds;
|
||||
|
||||
if (prop->size != 2 || prop->format != 32 || prop->type != float_type)
|
||||
return BadMatch;
|
||||
|
||||
coast_speeds = (float *) prop->data;
|
||||
para->coasting_speed = coast_speeds[0];
|
||||
para->coasting_friction = coast_speeds[1];
|
||||
}
|
||||
else if (property == prop_pressuremotion) {
|
||||
CARD32 *press;
|
||||
|
||||
if (prop->size != 2 || prop->format != 32 || prop->type != XA_CARDINAL)
|
||||
return BadMatch;
|
||||
|
||||
press = (CARD32 *) prop->data;
|
||||
if (press[0] > press[1])
|
||||
return BadValue;
|
||||
|
||||
para->press_motion_min_z = press[0];
|
||||
para->press_motion_max_z = press[1];
|
||||
}
|
||||
else if (property == prop_pressuremotion_factor) {
|
||||
float *press;
|
||||
|
||||
if (prop->size != 2 || prop->format != 32 || prop->type != float_type)
|
||||
return BadMatch;
|
||||
|
||||
press = (float *) prop->data;
|
||||
if (press[0] > press[1])
|
||||
return BadValue;
|
||||
|
||||
para->press_motion_min_factor = press[0];
|
||||
para->press_motion_max_factor = press[1];
|
||||
}
|
||||
else if (property == prop_grab) {
|
||||
if (prop->size != 1 || prop->format != 8 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
para->grab_event_device = *(BOOL *) prop->data;
|
||||
}
|
||||
else if (property == prop_capabilities) {
|
||||
/* read-only */
|
||||
return BadValue;
|
||||
}
|
||||
else if (property == prop_resolution) {
|
||||
/* read-only */
|
||||
return BadValue;
|
||||
}
|
||||
else if (property == prop_area) {
|
||||
INT32 *area;
|
||||
|
||||
if (prop->size != 4 || prop->format != 32 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
area = (INT32 *) prop->data;
|
||||
if ((((area[0] != 0) && (area[1] != 0)) && (area[0] > area[1])) ||
|
||||
(((area[2] != 0) && (area[3] != 0)) && (area[2] > area[3])))
|
||||
return BadValue;
|
||||
|
||||
para->area_left_edge = area[0];
|
||||
para->area_right_edge = area[1];
|
||||
para->area_top_edge = area[2];
|
||||
para->area_bottom_edge = area[3];
|
||||
}
|
||||
else if (property == prop_softbutton_areas) {
|
||||
int *areas;
|
||||
|
||||
if (prop->size != 8 || prop->format != 32 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
areas = (int *) prop->data;
|
||||
if (!SynapticsIsSoftButtonAreasValid(areas))
|
||||
return BadValue;
|
||||
|
||||
memcpy(para->softbutton_areas[BOTTOM_RIGHT_BUTTON_AREA], areas, 4 * sizeof(int));
|
||||
memcpy(para->softbutton_areas[BOTTOM_MIDDLE_BUTTON_AREA], areas + 4, 4 * sizeof(int));
|
||||
}
|
||||
else if (property == prop_secondary_softbutton_areas) {
|
||||
int *areas;
|
||||
|
||||
if (prop->size != 8 || prop->format != 32 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
areas = (int *) prop->data;
|
||||
if (!SynapticsIsSoftButtonAreasValid(areas))
|
||||
return BadValue;
|
||||
|
||||
memcpy(para->softbutton_areas[TOP_RIGHT_BUTTON_AREA], areas, 4 * sizeof(int));
|
||||
memcpy(para->softbutton_areas[TOP_MIDDLE_BUTTON_AREA], areas + 4, 4 * sizeof(int));
|
||||
}
|
||||
else if (property == prop_noise_cancellation) {
|
||||
INT32 *hyst;
|
||||
|
||||
if (prop->size != 2 || prop->format != 32 || prop->type != XA_INTEGER)
|
||||
return BadMatch;
|
||||
|
||||
hyst = (INT32 *) prop->data;
|
||||
if (hyst[0] < 0 || hyst[1] < 0)
|
||||
return BadValue;
|
||||
para->hyst_x = hyst[0];
|
||||
para->hyst_y = hyst[1];
|
||||
}
|
||||
else if (property == prop_product_id || property == prop_device_node)
|
||||
return BadValue; /* read-only */
|
||||
else { /* unknown property */
|
||||
if (strcmp(SYNAPTICS_PROP_SOFTBUTTON_AREAS, NameForAtom(property)) == 0)
|
||||
{
|
||||
prop_softbutton_areas = property;
|
||||
if (SetProperty(dev, property, prop, checkonly) != Success)
|
||||
prop_softbutton_areas = 0;
|
||||
else if (!checkonly)
|
||||
XISetDevicePropertyDeletable(dev, property, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
return Success;
|
||||
}
|
|
@ -0,0 +1,672 @@
|
|||
/*
|
||||
* Copyright © 1997 C. Scott Ananian
|
||||
* Copyright © 1998-2000 Bruce Kalk
|
||||
* Copyright © 2001 Stefan Gmeiner
|
||||
* Copyright © 2002 Linuxcare Inc. David Kennedy
|
||||
* Copyright © 2003 Fred Hucht <fred@thp.Uni-Duisburg.de>
|
||||
*
|
||||
* Permission to use, copy, modify, distribute, and sell this software
|
||||
* and its documentation for any purpose is hereby granted without
|
||||
* fee, provided that the above copyright notice appear in all copies
|
||||
* and that both that copyright notice and this permission notice
|
||||
* appear in supporting documentation, and that the name of Red Hat
|
||||
* not be used in advertising or publicity pertaining to distribution
|
||||
* of the software without specific, written prior permission. Red
|
||||
* Hat makes no representations about the suitability of this software
|
||||
* for any purpose. It is provided "as is" without express or implied
|
||||
* warranty.
|
||||
*
|
||||
* THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
|
||||
* NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*
|
||||
* Authors:
|
||||
* Stefan Gmeiner (riddlebox@freesurf.ch)
|
||||
* C. Scott Ananian (cananian@alumni.priceton.edu)
|
||||
* Bruce Kalk (kall@compass.com)
|
||||
* Linuxcare Inc. David Kennedy (dkennedy@linuxcare.com)
|
||||
* Fred Hucht (fred@thp.Uni-Duisburg.de)
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <xorg-server.h>
|
||||
#include "synproto.h"
|
||||
#include "synapticsstr.h"
|
||||
#include "ps2comm.h"
|
||||
#include <xf86.h>
|
||||
|
||||
#define MAX_UNSYNC_PACKETS 10 /* i.e. 10 to 60 bytes */
|
||||
/*
|
||||
* The x/y limits are taken from the Synaptics TouchPad interfacing Guide,
|
||||
* section 2.3.2, which says that they should be valid regardless of the
|
||||
* actual size of the sensor.
|
||||
*/
|
||||
#define XMIN_NOMINAL 1472
|
||||
#define XMAX_NOMINAL 5472
|
||||
#define YMIN_NOMINAL 1408
|
||||
#define YMAX_NOMINAL 4448
|
||||
|
||||
#define XMAX_VALID 6143
|
||||
|
||||
/* synaptics queries */
|
||||
#define SYN_QUE_IDENTIFY 0x00
|
||||
#define SYN_QUE_MODES 0x01
|
||||
#define SYN_QUE_CAPABILITIES 0x02
|
||||
#define SYN_QUE_MODEL 0x03
|
||||
#define SYN_QUE_SERIAL_NUMBER_PREFIX 0x06
|
||||
#define SYN_QUE_SERIAL_NUMBER_SUFFIX 0x07
|
||||
#define SYN_QUE_RESOLUTION 0x08
|
||||
#define SYN_QUE_EXT_CAPAB 0x09
|
||||
|
||||
/* status request response bits (PS2_CMD_STATUS_REQUEST) */
|
||||
#define PS2_RES_REMOTE(r) ((r) & (1 << 22))
|
||||
#define PS2_RES_ENABLE(r) ((r) & (1 << 21))
|
||||
#define PS2_RES_SCALING(r) ((r) & (1 << 20))
|
||||
#define PS2_RES_LEFT(r) ((r) & (1 << 18))
|
||||
#define PS2_RES_MIDDLE(r) ((r) & (1 << 17))
|
||||
#define PS2_RES_RIGHT(r) ((r) & (1 << 16))
|
||||
#define PS2_RES_RESOLUTION(r) (((r) >> 8) & 0x03)
|
||||
#define PS2_RES_SAMPLE_RATE(r) ((r) & 0xff)
|
||||
|
||||
#ifdef DEBUG
|
||||
#define PS2DBG(...) ErrorF(__VA_ARGS__)
|
||||
#else
|
||||
#define PS2DBG(...)
|
||||
#endif
|
||||
|
||||
/*****************************************************************************
|
||||
* PS/2 Utility functions.
|
||||
* Many parts adapted from tpconfig.c by C. Scott Ananian
|
||||
****************************************************************************/
|
||||
|
||||
/*
|
||||
* Read a byte from the ps/2 port
|
||||
*/
|
||||
static Bool
|
||||
ps2_getbyte(int fd, byte * b)
|
||||
{
|
||||
if (xf86WaitForInput(fd, 50000) > 0) {
|
||||
if (xf86ReadSerial(fd, b, 1) != 1) {
|
||||
PS2DBG("ps2_getbyte: No byte read\n");
|
||||
return FALSE;
|
||||
}
|
||||
PS2DBG("ps2_getbyte: byte %02X read\n", *b);
|
||||
return TRUE;
|
||||
}
|
||||
PS2DBG("ps2_getbyte: timeout xf86WaitForInput\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write a byte to the ps/2 port, wait for ACK
|
||||
*/
|
||||
Bool
|
||||
ps2_putbyte(int fd, byte b)
|
||||
{
|
||||
byte ack;
|
||||
|
||||
if (xf86WriteSerial(fd, &b, 1) != 1) {
|
||||
PS2DBG("ps2_putbyte: error xf86WriteSerial\n");
|
||||
return FALSE;
|
||||
}
|
||||
PS2DBG("ps2_putbyte: byte %02X send\n", b);
|
||||
/* wait for an ACK */
|
||||
if (!ps2_getbyte(fd, &ack)) {
|
||||
return FALSE;
|
||||
}
|
||||
if (ack != PS2_ACK) {
|
||||
PS2DBG("ps2_putbyte: wrong acknowledge 0x%02x\n", ack);
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Use the Synaptics extended ps/2 syntax to write a special command byte. Needed by
|
||||
* ps2_send_cmd and ps2_set_mode.
|
||||
* special command: 0xE8 rr 0xE8 ss 0xE8 tt 0xE8 uu where (rr*64)+(ss*16)+(tt*4)+uu
|
||||
* is the command. A 0xF3 or 0xE9 must follow (see ps2_send_cmd, ps2_set_mode)
|
||||
*/
|
||||
static Bool
|
||||
ps2_special_cmd(int fd, byte cmd)
|
||||
{
|
||||
int i;
|
||||
|
||||
/* initialize with 'inert' command */
|
||||
if (!ps2_putbyte(fd, PS2_CMD_SET_SCALING_1_1))
|
||||
return FALSE;
|
||||
|
||||
/* send 4x 2-bits with set resolution command */
|
||||
for (i = 0; i < 4; i++) {
|
||||
if (!ps2_putbyte(fd, PS2_CMD_SET_RESOLUTION) ||
|
||||
!ps2_putbyte(fd, (cmd >> 6) & 0x3))
|
||||
return FALSE;
|
||||
cmd <<= 2;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Send a command to the synpatics touchpad by special commands
|
||||
*/
|
||||
static Bool
|
||||
ps2_send_cmd(int fd, byte c)
|
||||
{
|
||||
PS2DBG("send command: 0x%02X\n", c);
|
||||
return (ps2_special_cmd(fd, c) && ps2_putbyte(fd, PS2_CMD_STATUS_REQUEST));
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
* Synaptics communications functions
|
||||
****************************************************************************/
|
||||
|
||||
/*
|
||||
* Set the synaptics touchpad mode byte by special commands
|
||||
*/
|
||||
static Bool
|
||||
ps2_synaptics_set_mode(int fd, byte mode)
|
||||
{
|
||||
PS2DBG("set mode byte to: 0x%02X\n", mode);
|
||||
return (ps2_special_cmd(fd, mode) &&
|
||||
ps2_putbyte(fd, PS2_CMD_SET_SAMPLE_RATE) && ps2_putbyte(fd, 0x14));
|
||||
}
|
||||
|
||||
/*
|
||||
* reset the touchpad
|
||||
*/
|
||||
static Bool
|
||||
ps2_synaptics_reset(int fd)
|
||||
{
|
||||
byte r[2];
|
||||
|
||||
xf86FlushInput(fd);
|
||||
PS2DBG("Reset the Touchpad...\n");
|
||||
if (!ps2_putbyte(fd, PS2_CMD_RESET)) {
|
||||
PS2DBG("...failed\n");
|
||||
return FALSE;
|
||||
}
|
||||
xf86WaitForInput(fd, 4000000);
|
||||
if (ps2_getbyte(fd, &r[0]) && ps2_getbyte(fd, &r[1])) {
|
||||
if (r[0] == 0xAA && r[1] == 0x00) {
|
||||
PS2DBG("...done\n");
|
||||
return TRUE;
|
||||
}
|
||||
else {
|
||||
PS2DBG("...failed. Wrong reset ack 0x%02x, 0x%02x\n", r[0], r[1]);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
PS2DBG("...failed\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Read the model-id bytes from the touchpad
|
||||
* see also SYN_MODEL_* macros
|
||||
*/
|
||||
static Bool
|
||||
ps2_synaptics_model_id(int fd, struct PS2SynapticsHwInfo *synhw)
|
||||
{
|
||||
byte mi[3];
|
||||
|
||||
PS2DBG("Read mode id...\n");
|
||||
|
||||
synhw->model_id = 0;
|
||||
if (ps2_send_cmd(fd, SYN_QUE_MODEL) &&
|
||||
ps2_getbyte(fd, &mi[0]) &&
|
||||
ps2_getbyte(fd, &mi[1]) && ps2_getbyte(fd, &mi[2])) {
|
||||
synhw->model_id = (mi[0] << 16) | (mi[1] << 8) | mi[2];
|
||||
PS2DBG("model-id %06X\n", synhw->model_id);
|
||||
PS2DBG("...done.\n");
|
||||
return TRUE;
|
||||
}
|
||||
PS2DBG("...failed.\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Read the capability-bits from the touchpad
|
||||
* see also the SYN_CAP_* macros
|
||||
*/
|
||||
static Bool
|
||||
ps2_synaptics_capability(int fd, struct PS2SynapticsHwInfo *synhw)
|
||||
{
|
||||
byte cap[3];
|
||||
|
||||
PS2DBG("Read capabilites...\n");
|
||||
|
||||
synhw->capabilities = 0;
|
||||
synhw->ext_cap = 0;
|
||||
if (ps2_send_cmd(fd, SYN_QUE_CAPABILITIES) &&
|
||||
ps2_getbyte(fd, &cap[0]) &&
|
||||
ps2_getbyte(fd, &cap[1]) && ps2_getbyte(fd, &cap[2])) {
|
||||
synhw->capabilities = (cap[0] << 16) | (cap[1] << 8) | cap[2];
|
||||
PS2DBG("capabilities %06X\n", synhw->capabilities);
|
||||
if (SYN_CAP_VALID(synhw)) {
|
||||
if (SYN_EXT_CAP_REQUESTS(synhw)) {
|
||||
if (ps2_send_cmd(fd, SYN_QUE_EXT_CAPAB) &&
|
||||
ps2_getbyte(fd, &cap[0]) &&
|
||||
ps2_getbyte(fd, &cap[1]) && ps2_getbyte(fd, &cap[2])) {
|
||||
synhw->ext_cap = (cap[0] << 16) | (cap[1] << 8) | cap[2];
|
||||
PS2DBG("ext-capability %06X\n", synhw->ext_cap);
|
||||
}
|
||||
else {
|
||||
PS2DBG("synaptics says, that it has extended-capabilities, "
|
||||
"but I cannot read them.");
|
||||
}
|
||||
}
|
||||
PS2DBG("...done.\n");
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
PS2DBG("...failed.\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Identify Touchpad
|
||||
* See also the SYN_ID_* macros
|
||||
*/
|
||||
static Bool
|
||||
ps2_synaptics_identify(int fd, struct PS2SynapticsHwInfo *synhw)
|
||||
{
|
||||
byte id[3];
|
||||
|
||||
PS2DBG("Identify Touchpad...\n");
|
||||
|
||||
synhw->identity = 0;
|
||||
if (ps2_send_cmd(fd, SYN_QUE_IDENTIFY) &&
|
||||
ps2_getbyte(fd, &id[0]) &&
|
||||
ps2_getbyte(fd, &id[1]) && ps2_getbyte(fd, &id[2])) {
|
||||
synhw->identity = (id[0] << 16) | (id[1] << 8) | id[2];
|
||||
PS2DBG("ident %06X\n", synhw->identity);
|
||||
if (SYN_ID_IS_SYNAPTICS(synhw)) {
|
||||
PS2DBG("...done.\n");
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
PS2DBG("...failed.\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static Bool
|
||||
ps2_synaptics_enable_device(int fd)
|
||||
{
|
||||
return ps2_putbyte(fd, PS2_CMD_ENABLE);
|
||||
}
|
||||
|
||||
static Bool
|
||||
ps2_synaptics_disable_device(int fd)
|
||||
{
|
||||
xf86FlushInput(fd);
|
||||
return ps2_putbyte(fd, PS2_CMD_DISABLE);
|
||||
}
|
||||
|
||||
static Bool
|
||||
ps2_query_is_synaptics(InputInfoPtr pInfo, int fd,
|
||||
struct PS2SynapticsHwInfo *synhw)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 3; i++) {
|
||||
if (ps2_synaptics_disable_device(fd))
|
||||
break;
|
||||
}
|
||||
|
||||
xf86WaitForInput(fd, 20000);
|
||||
xf86FlushInput(fd);
|
||||
if (ps2_synaptics_identify(fd, synhw)) {
|
||||
return TRUE;
|
||||
}
|
||||
else {
|
||||
xf86IDrvMsg(pInfo, X_ERROR, "Query no Synaptics: %06X\n",
|
||||
synhw->identity);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ps2_print_ident(InputInfoPtr pInfo, const struct PS2SynapticsHwInfo *synhw)
|
||||
{
|
||||
xf86IDrvMsg(pInfo, X_PROBED, " Synaptics Touchpad, model: %d\n",
|
||||
SYN_ID_MODEL(synhw));
|
||||
xf86IDrvMsg(pInfo, X_PROBED, " Firmware: %d.%d\n", SYN_ID_MAJOR(synhw),
|
||||
SYN_ID_MINOR(synhw));
|
||||
|
||||
if (SYN_MODEL_ROT180(synhw))
|
||||
xf86IDrvMsg(pInfo, X_PROBED, " 180 degree mounted touchpad\n");
|
||||
if (SYN_MODEL_PORTRAIT(synhw))
|
||||
xf86IDrvMsg(pInfo, X_PROBED, " portrait touchpad\n");
|
||||
xf86IDrvMsg(pInfo, X_PROBED, " Sensor: %d\n", SYN_MODEL_SENSOR(synhw));
|
||||
if (SYN_MODEL_NEWABS(synhw))
|
||||
xf86IDrvMsg(pInfo, X_PROBED, " new absolute packet format\n");
|
||||
if (SYN_MODEL_PEN(synhw))
|
||||
xf86IDrvMsg(pInfo, X_PROBED, " pen detection\n");
|
||||
|
||||
if (SYN_CAP_EXTENDED(synhw)) {
|
||||
xf86IDrvMsg(pInfo, X_PROBED,
|
||||
" Touchpad has extended capability bits\n");
|
||||
if (SYN_CAP_MULTI_BUTTON_NO(synhw))
|
||||
xf86IDrvMsg(pInfo, X_PROBED,
|
||||
" -> %d multi buttons, i.e. besides standard buttons\n",
|
||||
(int) (SYN_CAP_MULTI_BUTTON_NO(synhw)));
|
||||
if (SYN_CAP_MIDDLE_BUTTON(synhw))
|
||||
xf86IDrvMsg(pInfo, X_PROBED, " -> middle button\n");
|
||||
if (SYN_CAP_FOUR_BUTTON(synhw))
|
||||
xf86IDrvMsg(pInfo, X_PROBED, " -> four buttons\n");
|
||||
if (SYN_CAP_MULTIFINGER(synhw))
|
||||
xf86IDrvMsg(pInfo, X_PROBED, " -> multifinger detection\n");
|
||||
if (SYN_CAP_PALMDETECT(synhw))
|
||||
xf86IDrvMsg(pInfo, X_PROBED, " -> palm detection\n");
|
||||
if (SYN_CAP_PASSTHROUGH(synhw))
|
||||
xf86IDrvMsg(pInfo, X_PROBED, " -> pass-through port\n");
|
||||
}
|
||||
}
|
||||
|
||||
static Bool
|
||||
PS2DeviceOffHook(InputInfoPtr pInfo)
|
||||
{
|
||||
ps2_synaptics_reset(pInfo->fd);
|
||||
ps2_synaptics_enable_device(pInfo->fd);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static Bool
|
||||
PS2QueryHardware(InputInfoPtr pInfo)
|
||||
{
|
||||
int mode;
|
||||
SynapticsPrivate *priv = (SynapticsPrivate *) pInfo->private;
|
||||
struct PS2SynapticsHwInfo *synhw;
|
||||
|
||||
if (!priv->proto_data)
|
||||
priv->proto_data = calloc(1, sizeof(struct PS2SynapticsHwInfo));
|
||||
synhw = (struct PS2SynapticsHwInfo *) priv->proto_data;
|
||||
|
||||
/* is the synaptics touchpad active? */
|
||||
if (!ps2_query_is_synaptics(pInfo, pInfo->fd, synhw))
|
||||
return FALSE;
|
||||
|
||||
xf86IDrvMsg(pInfo, X_PROBED, "synaptics touchpad found\n");
|
||||
|
||||
if (!ps2_synaptics_reset(pInfo->fd))
|
||||
xf86IDrvMsg(pInfo, X_ERROR, "reset failed\n");
|
||||
|
||||
if (!ps2_synaptics_identify(pInfo->fd, synhw))
|
||||
return FALSE;
|
||||
|
||||
if (!ps2_synaptics_model_id(pInfo->fd, synhw))
|
||||
return FALSE;
|
||||
|
||||
if (!ps2_synaptics_capability(pInfo->fd, synhw))
|
||||
return FALSE;
|
||||
|
||||
mode = SYN_BIT_ABSOLUTE_MODE | SYN_BIT_HIGH_RATE;
|
||||
if (SYN_ID_MAJOR(synhw) >= 4)
|
||||
mode |= SYN_BIT_DISABLE_GESTURE;
|
||||
if (SYN_CAP_EXTENDED(synhw))
|
||||
mode |= SYN_BIT_W_MODE;
|
||||
if (!ps2_synaptics_set_mode(pInfo->fd, mode))
|
||||
return FALSE;
|
||||
|
||||
ps2_synaptics_enable_device(pInfo->fd);
|
||||
|
||||
ps2_print_ident(pInfo, synhw);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Decide if the current packet stored in priv->protoBuf is valid.
|
||||
*/
|
||||
static Bool
|
||||
ps2_packet_ok(struct PS2SynapticsHwInfo *synhw, struct CommData *comm)
|
||||
{
|
||||
unsigned char *buf = comm->protoBuf;
|
||||
int newabs = SYN_MODEL_NEWABS(synhw);
|
||||
|
||||
if (newabs ? ((buf[0] & 0xC0) != 0x80) : ((buf[0] & 0xC0) != 0xC0)) {
|
||||
PS2DBG("Synaptics driver lost sync at 1st byte\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (!newabs && ((buf[1] & 0x60) != 0x00)) {
|
||||
PS2DBG("Synaptics driver lost sync at 2nd byte\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if ((newabs ? ((buf[3] & 0xC0) != 0xC0) : ((buf[3] & 0xC0) != 0x80))) {
|
||||
PS2DBG("Synaptics driver lost sync at 4th byte\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (!newabs && ((buf[4] & 0x60) != 0x00)) {
|
||||
PS2DBG("Synaptics driver lost sync at 5th byte\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static Bool
|
||||
ps2_synaptics_get_packet(InputInfoPtr pInfo, struct PS2SynapticsHwInfo *synhw,
|
||||
struct SynapticsProtocolOperations *proto_ops,
|
||||
struct CommData *comm)
|
||||
{
|
||||
int count = 0;
|
||||
int c;
|
||||
unsigned char u;
|
||||
|
||||
while ((c = XisbRead(comm->buffer)) >= 0) {
|
||||
u = (unsigned char) c;
|
||||
|
||||
/* test if there is a reset sequence received */
|
||||
if ((c == 0x00) && (comm->lastByte == 0xAA)) {
|
||||
if (xf86WaitForInput(pInfo->fd, 50000) == 0) {
|
||||
PS2DBG("Reset received\n");
|
||||
proto_ops->QueryHardware(pInfo);
|
||||
}
|
||||
else
|
||||
PS2DBG("faked reset received\n");
|
||||
}
|
||||
comm->lastByte = u;
|
||||
|
||||
/* to avoid endless loops */
|
||||
if (count++ > 30) {
|
||||
LogMessageVerbSigSafe(X_ERROR, 0,
|
||||
"Synaptics driver lost sync... got gigantic packet!\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
comm->protoBuf[comm->protoBufTail++] = u;
|
||||
|
||||
/* Check that we have a valid packet. If not, we are out of sync,
|
||||
so we throw away the first byte in the packet. */
|
||||
if (comm->protoBufTail >= 6) {
|
||||
if (!ps2_packet_ok(synhw, comm)) {
|
||||
int i;
|
||||
|
||||
for (i = 0; i < comm->protoBufTail - 1; i++)
|
||||
comm->protoBuf[i] = comm->protoBuf[i + 1];
|
||||
comm->protoBufTail--;
|
||||
comm->outOfSync++;
|
||||
if (comm->outOfSync > MAX_UNSYNC_PACKETS) {
|
||||
comm->outOfSync = 0;
|
||||
PS2DBG("Synaptics synchronization lost too long -> reset touchpad.\n");
|
||||
proto_ops->QueryHardware(pInfo); /* including a reset */
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (comm->protoBufTail >= 6) { /* Full packet received */
|
||||
if (comm->outOfSync > 0) {
|
||||
comm->outOfSync = 0;
|
||||
PS2DBG("Synaptics driver resynced.\n");
|
||||
}
|
||||
comm->protoBufTail = 0;
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Bool
|
||||
PS2ReadHwStateProto(InputInfoPtr pInfo,
|
||||
struct SynapticsProtocolOperations *proto_ops,
|
||||
struct CommData *comm, struct SynapticsHwState *hwRet)
|
||||
{
|
||||
unsigned char *buf = comm->protoBuf;
|
||||
struct SynapticsHwState *hw = comm->hwState;
|
||||
SynapticsPrivate *priv = (SynapticsPrivate *) pInfo->private;
|
||||
SynapticsParameters *para = &priv->synpara;
|
||||
struct PS2SynapticsHwInfo *synhw;
|
||||
int newabs;
|
||||
int w, i;
|
||||
|
||||
synhw = (struct PS2SynapticsHwInfo *) priv->proto_data;
|
||||
if (!synhw) {
|
||||
LogMessageVerbSigSafe(X_ERROR, 0,
|
||||
"PS2ReadHwState, synhw is NULL. This is a bug.\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
newabs = SYN_MODEL_NEWABS(synhw);
|
||||
|
||||
if (!ps2_synaptics_get_packet(pInfo, synhw, proto_ops, comm))
|
||||
return FALSE;
|
||||
|
||||
/* Handle normal packets */
|
||||
hw->x = hw->y = hw->z = hw->numFingers = hw->fingerWidth = 0;
|
||||
hw->left = hw->right = hw->up = hw->down = hw->middle = FALSE;
|
||||
for (i = 0; i < 8; i++)
|
||||
hw->multi[i] = FALSE;
|
||||
|
||||
if (newabs) { /* newer protos... */
|
||||
PS2DBG("using new protocols\n");
|
||||
hw->x = (((buf[3] & 0x10) << 8) | ((buf[1] & 0x0f) << 8) | buf[4]);
|
||||
hw->y = (((buf[3] & 0x20) << 7) | ((buf[1] & 0xf0) << 4) | buf[5]);
|
||||
|
||||
hw->z = buf[2];
|
||||
w = (((buf[0] & 0x30) >> 2) |
|
||||
((buf[0] & 0x04) >> 1) | ((buf[3] & 0x04) >> 2));
|
||||
|
||||
hw->left = (buf[0] & 0x01) ? 1 : 0;
|
||||
hw->right = (buf[0] & 0x02) ? 1 : 0;
|
||||
|
||||
if (SYN_CAP_EXTENDED(synhw)) {
|
||||
if (SYN_CAP_MIDDLE_BUTTON(synhw)) {
|
||||
hw->middle = ((buf[0] ^ buf[3]) & 0x01) ? 1 : 0;
|
||||
}
|
||||
if (SYN_CAP_FOUR_BUTTON(synhw)) {
|
||||
hw->up = ((buf[3] & 0x01)) ? 1 : 0;
|
||||
if (hw->left)
|
||||
hw->up = !hw->up;
|
||||
hw->down = ((buf[3] & 0x02)) ? 1 : 0;
|
||||
if (hw->right)
|
||||
hw->down = !hw->down;
|
||||
}
|
||||
if (SYN_CAP_MULTI_BUTTON_NO(synhw)) {
|
||||
if ((buf[3] & 2) ? !hw->right : hw->right) {
|
||||
switch (SYN_CAP_MULTI_BUTTON_NO(synhw) & ~0x01) {
|
||||
default:
|
||||
break;
|
||||
case 8:
|
||||
hw->multi[7] = ((buf[5] & 0x08)) ? 1 : 0;
|
||||
hw->multi[6] = ((buf[4] & 0x08)) ? 1 : 0;
|
||||
/* fallthrough */
|
||||
case 6:
|
||||
hw->multi[5] = ((buf[5] & 0x04)) ? 1 : 0;
|
||||
hw->multi[4] = ((buf[4] & 0x04)) ? 1 : 0;
|
||||
/* fallthrough */
|
||||
case 4:
|
||||
hw->multi[3] = ((buf[5] & 0x02)) ? 1 : 0;
|
||||
hw->multi[2] = ((buf[4] & 0x02)) ? 1 : 0;
|
||||
/* fallthrough */
|
||||
case 2:
|
||||
hw->multi[1] = ((buf[5] & 0x01)) ? 1 : 0;
|
||||
hw->multi[0] = ((buf[4] & 0x01)) ? 1 : 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else { /* old proto... */
|
||||
PS2DBG("using old protocol\n");
|
||||
hw->x = (((buf[1] & 0x1F) << 8) | buf[2]);
|
||||
hw->y = (((buf[4] & 0x1F) << 8) | buf[5]);
|
||||
|
||||
hw->z = (((buf[0] & 0x30) << 2) | (buf[3] & 0x3F));
|
||||
w = (((buf[1] & 0x80) >> 4) | ((buf[0] & 0x04) >> 1));
|
||||
|
||||
hw->left = (buf[0] & 0x01) ? 1 : 0;
|
||||
hw->right = (buf[0] & 0x02) ? 1 : 0;
|
||||
}
|
||||
|
||||
hw->y = YMAX_NOMINAL + YMIN_NOMINAL - hw->y;
|
||||
|
||||
if (hw->z >= para->finger_high) {
|
||||
int w_ok = 0;
|
||||
|
||||
/*
|
||||
* Use capability bits to decide if the w value is valid.
|
||||
* If not, set it to 5, which corresponds to a finger of
|
||||
* normal width.
|
||||
*/
|
||||
if (SYN_CAP_EXTENDED(synhw)) {
|
||||
if ((w >= 0) && (w <= 1)) {
|
||||
w_ok = SYN_CAP_MULTIFINGER(synhw);
|
||||
}
|
||||
else if (w == 2) {
|
||||
w_ok = SYN_MODEL_PEN(synhw);
|
||||
}
|
||||
else if ((w >= 4) && (w <= 15)) {
|
||||
w_ok = SYN_CAP_PALMDETECT(synhw);
|
||||
}
|
||||
}
|
||||
if (!w_ok)
|
||||
w = 5;
|
||||
|
||||
switch (w) {
|
||||
case 0:
|
||||
hw->numFingers = 2;
|
||||
hw->fingerWidth = 5;
|
||||
break;
|
||||
case 1:
|
||||
hw->numFingers = 3;
|
||||
hw->fingerWidth = 5;
|
||||
break;
|
||||
default:
|
||||
hw->numFingers = 1;
|
||||
hw->fingerWidth = w;
|
||||
break;
|
||||
}
|
||||
}
|
||||
hw->millis = GetTimeInMillis();
|
||||
SynapticsCopyHwState(hwRet, hw);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static Bool
|
||||
PS2ReadHwState(InputInfoPtr pInfo,
|
||||
struct CommData *comm, struct SynapticsHwState *hwRet)
|
||||
{
|
||||
return PS2ReadHwStateProto(pInfo, &psaux_proto_operations, comm, hwRet);
|
||||
}
|
||||
|
||||
struct SynapticsProtocolOperations psaux_proto_operations = {
|
||||
NULL,
|
||||
PS2DeviceOffHook,
|
||||
PS2QueryHardware,
|
||||
PS2ReadHwState,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
|
@ -0,0 +1,113 @@
|
|||
/*
|
||||
* Permission to use, copy, modify, distribute, and sell this software
|
||||
* and its documentation for any purpose is hereby granted without
|
||||
* fee, provided that the above copyright notice appear in all copies
|
||||
* and that both that copyright notice and this permission notice
|
||||
* appear in supporting documentation, and that the name of Red Hat
|
||||
* not be used in advertising or publicity pertaining to distribution
|
||||
* of the software without specific, written prior permission. Red
|
||||
* Hat makes no representations about the suitability of this software
|
||||
* for any purpose. It is provided "as is" without express or implied
|
||||
* warranty.
|
||||
*
|
||||
* THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
|
||||
* NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef _PS2COMM_H_
|
||||
#define _PS2COMM_H_
|
||||
|
||||
#include <xorg-server.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include "xf86_OSproc.h"
|
||||
|
||||
/* acknowledge for commands and parameter */
|
||||
#define PS2_ACK 0xFA
|
||||
#define PS2_ERROR 0xFC
|
||||
|
||||
/* standard PS/2 commands */
|
||||
#define PS2_CMD_RESET 0xFF
|
||||
#define PS2_CMD_RESEND 0xFE
|
||||
#define PS2_CMD_SET_DEFAULT 0xF6
|
||||
#define PS2_CMD_DISABLE 0xF5
|
||||
#define PS2_CMD_ENABLE 0xF4
|
||||
#define PS2_CMD_SET_SAMPLE_RATE 0xF3
|
||||
#define PS2_CMD_READ_DEVICE_TYPE 0xF2
|
||||
#define PS2_CMD_SET_REMOTE_MODE 0xF0
|
||||
#define PS2_CMD_SET_WRAP_MODE 0xEE
|
||||
#define PS2_CMD_RESET_WRAP_MODE 0xEC
|
||||
#define PS2_CMD_READ_DATA 0xEB
|
||||
#define PS2_CMD_SET_STREAM_MODE 0xEA
|
||||
#define PS2_CMD_STATUS_REQUEST 0xE9
|
||||
#define PS2_CMD_SET_RESOLUTION 0xE8
|
||||
#define PS2_CMD_SET_SCALING_2_1 0xE7
|
||||
#define PS2_CMD_SET_SCALING_1_1 0xE6
|
||||
|
||||
/* synaptics modes */
|
||||
#define SYN_BIT_ABSOLUTE_MODE (1 << 7)
|
||||
#define SYN_BIT_HIGH_RATE (1 << 6)
|
||||
#define SYN_BIT_SLEEP_MODE (1 << 3)
|
||||
#define SYN_BIT_DISABLE_GESTURE (1 << 2)
|
||||
#define SYN_BIT_W_MODE (1 << 0)
|
||||
|
||||
/* synaptics model ID bits */
|
||||
#define SYN_MODEL_ROT180(synhw) ((synhw)->model_id & (1 << 23))
|
||||
#define SYN_MODEL_PORTRAIT(synhw) ((synhw)->model_id & (1 << 22))
|
||||
#define SYN_MODEL_SENSOR(synhw) (((synhw)->model_id >> 16) & 0x3f)
|
||||
#define SYN_MODEL_HARDWARE(synhw) (((synhw)->model_id >> 9) & 0x7f)
|
||||
#define SYN_MODEL_NEWABS(synhw) ((synhw)->model_id & (1 << 7))
|
||||
#define SYN_MODEL_PEN(synhw) ((synhw)->model_id & (1 << 6))
|
||||
#define SYN_MODEL_SIMPLIC(synhw) ((synhw)->model_id & (1 << 5))
|
||||
#define SYN_MODEL_GEOMETRY(synhw) ((synhw)->model_id & 0x0f)
|
||||
|
||||
/* synaptics capability bits */
|
||||
#define SYN_CAP_EXTENDED(synhw) ((synhw)->capabilities & (1 << 23))
|
||||
#define SYN_CAP_MIDDLE_BUTTON(synhw) ((synhw)->capabilities & (1 << 18))
|
||||
#define SYN_CAP_PASSTHROUGH(synhw) ((synhw)->capabilities & (1 << 7))
|
||||
#define SYN_CAP_SLEEP(synhw) ((synhw)->capabilities & (1 << 4))
|
||||
#define SYN_CAP_FOUR_BUTTON(synhw) ((synhw)->capabilities & (1 << 3))
|
||||
#define SYN_CAP_MULTIFINGER(synhw) ((synhw)->capabilities & (1 << 1))
|
||||
#define SYN_CAP_PALMDETECT(synhw) ((synhw)->capabilities & (1 << 0))
|
||||
#define SYN_CAP_VALID(synhw) ((((synhw)->capabilities & 0x00ff00) >> 8) == 0x47)
|
||||
#define SYN_EXT_CAP_REQUESTS(synhw) (((synhw)->capabilities & 0x700000) != 0)
|
||||
#define SYN_CAP_MULTI_BUTTON_NO(synhw) (((synhw)->ext_cap & 0x00f000) >> 12)
|
||||
|
||||
/* synaptics modes query bits */
|
||||
#define SYN_MODE_ABSOLUTE(m) ((m) & (1 << 7))
|
||||
#define SYN_MODE_RATE(m) ((m) & (1 << 6))
|
||||
#define SYN_MODE_BAUD_SLEEP(m) ((m) & (1 << 3))
|
||||
#define SYN_MODE_DISABLE_GESTURE(m) ((m) & (1 << 2))
|
||||
#define SYN_MODE_PACKSIZE(m) ((m) & (1 << 1))
|
||||
#define SYN_MODE_WMODE(m) ((m) & (1 << 0))
|
||||
#define SYN_MODE_VALID(m) (((m) & 0xffff00) == 0x3B47)
|
||||
|
||||
/* synaptics identify query bits */
|
||||
#define SYN_ID_MODEL(synhw) (((synhw)->identity >> 4) & 0x0f)
|
||||
#define SYN_ID_MAJOR(synhw) ((synhw)->identity & 0x0f)
|
||||
#define SYN_ID_MINOR(synhw) (((synhw)->identity >> 16) & 0xff)
|
||||
#define SYN_ID_IS_SYNAPTICS(synhw) ((((synhw)->identity >> 8) & 0xff) == 0x47)
|
||||
|
||||
typedef unsigned char byte;
|
||||
|
||||
struct PS2SynapticsHwInfo {
|
||||
unsigned int model_id; /* Model-ID */
|
||||
unsigned int capabilities; /* Capabilities */
|
||||
unsigned int ext_cap; /* Extended Capabilities */
|
||||
unsigned int identity; /* Identification */
|
||||
};
|
||||
|
||||
Bool ps2_putbyte(int fd, byte b);
|
||||
void ps2_print_ident(InputInfoPtr pInfo,
|
||||
const struct PS2SynapticsHwInfo *synhw);
|
||||
Bool PS2ReadHwStateProto(InputInfoPtr pInfo,
|
||||
struct SynapticsProtocolOperations *proto_ops,
|
||||
struct CommData *comm, struct SynapticsHwState *hwRet);
|
||||
|
||||
#endif /* _PS2COMM_H_ */
|
|
@ -0,0 +1,174 @@
|
|||
/*
|
||||
* Copyright © 1997 C. Scott Ananian
|
||||
* Copyright © 1998-2000 Bruce Kalk
|
||||
* Copyright © 2001 Stefan Gmeiner
|
||||
* Copyright © 2002 Linuxcare Inc. David Kennedy
|
||||
* Copyright © 2003 Fred Hucht
|
||||
* Copyright © 2004 Arne Schwabe
|
||||
*
|
||||
* Permission to use, copy, modify, distribute, and sell this software
|
||||
* and its documentation for any purpose is hereby granted without
|
||||
* fee, provided that the above copyright notice appear in all copies
|
||||
* and that both that copyright notice and this permission notice
|
||||
* appear in supporting documentation, and that the name of Red Hat
|
||||
* not be used in advertising or publicity pertaining to distribution
|
||||
* of the software without specific, written prior permission. Red
|
||||
* Hat makes no representations about the suitability of this software
|
||||
* for any purpose. It is provided "as is" without express or implied
|
||||
* warranty.
|
||||
*
|
||||
* THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
|
||||
* NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*
|
||||
* Authors:
|
||||
* Stefan Gmeiner (riddlebox@freesurf.ch)
|
||||
* C. Scott Ananian (cananian@alumni.priceton.edu)
|
||||
* Bruce Kalk (kall@compass.com)
|
||||
* Linuxcare Inc. David Kennedy (dkennedy@linuxcare.com)
|
||||
* Fred Hucht (fred@thp.Uni-Duisburg.de)
|
||||
* Arne Schwabe <schwabe@uni-paderborn.de>
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <xorg-server.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/mouse.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include "synproto.h"
|
||||
#include "synapticsstr.h"
|
||||
#include "ps2comm.h" /* ps2_print_ident() */
|
||||
#include <xf86.h>
|
||||
|
||||
#define SYSCALL(call) while (((call) == -1) && (errno == EINTR))
|
||||
|
||||
/*
|
||||
* Identify Touchpad
|
||||
* See also the SYN_ID_* macros
|
||||
*/
|
||||
static Bool
|
||||
psm_synaptics_identify(int fd, synapticshw_t * ident)
|
||||
{
|
||||
int ret;
|
||||
|
||||
SYSCALL(ret = ioctl(fd, MOUSE_SYN_GETHWINFO, ident));
|
||||
if (ret == 0)
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* This define is used in a ioctl but not in mouse.h :/ */
|
||||
#define PSM_LEVEL_NATIVE 2
|
||||
|
||||
static Bool
|
||||
PSMQueryIsSynaptics(InputInfoPtr pInfo)
|
||||
{
|
||||
int ret;
|
||||
int level = PSM_LEVEL_NATIVE;
|
||||
mousehw_t mhw;
|
||||
|
||||
/* Put the device in native protocol mode to be sure
|
||||
* Otherwise HWINFO will not return the right id
|
||||
* And we will need native mode anyway ...
|
||||
*/
|
||||
SYSCALL(ret = ioctl(pInfo->fd, MOUSE_SETLEVEL, &level));
|
||||
if (ret != 0) {
|
||||
xf86IDrvMsg(pInfo, X_ERROR, "%s Can't set native mode\n", pInfo->name);
|
||||
return FALSE;
|
||||
}
|
||||
SYSCALL(ret = ioctl(pInfo->fd, MOUSE_GETHWINFO, &mhw));
|
||||
if (ret != 0) {
|
||||
xf86IDrvMsg(pInfo, X_ERROR, "%s Can't get hardware info\n",
|
||||
pInfo->name);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (mhw.model == MOUSE_MODEL_SYNAPTICS) {
|
||||
return TRUE;
|
||||
}
|
||||
else {
|
||||
xf86IDrvMsg(pInfo, X_ERROR,
|
||||
"%s Found no Synaptics, found Mouse model %d instead\n",
|
||||
pInfo->name, mhw.model);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
convert_hw_info(const synapticshw_t * psm_ident,
|
||||
struct PS2SynapticsHwInfo *synhw)
|
||||
{
|
||||
memset(synhw, 0, sizeof(*synhw));
|
||||
synhw->model_id = ((psm_ident->infoRot180 << 23) |
|
||||
(psm_ident->infoPortrait << 22) |
|
||||
(psm_ident->infoSensor << 16) |
|
||||
(psm_ident->infoHardware << 9) |
|
||||
(psm_ident->infoNewAbs << 7) |
|
||||
(psm_ident->capPen << 6) |
|
||||
(psm_ident->infoSimplC << 5) |
|
||||
(psm_ident->infoGeometry));
|
||||
synhw->capabilities = ((psm_ident->capExtended << 23) |
|
||||
(psm_ident->capPassthrough << 7) |
|
||||
(psm_ident->capSleep << 4) |
|
||||
(psm_ident->capFourButtons << 3) |
|
||||
(psm_ident->capMultiFinger << 1) |
|
||||
(psm_ident->capPalmDetect));
|
||||
synhw->ext_cap = 0;
|
||||
synhw->identity = ((psm_ident->infoMajor) |
|
||||
(0x47 << 8) | (psm_ident->infoMinor << 16));
|
||||
}
|
||||
|
||||
static Bool
|
||||
PSMQueryHardware(InputInfoPtr pInfo)
|
||||
{
|
||||
synapticshw_t psm_ident;
|
||||
struct PS2SynapticsHwInfo *synhw;
|
||||
SynapticsPrivate *priv;
|
||||
|
||||
priv = (SynapticsPrivate *) pInfo->private;
|
||||
|
||||
if (!priv->proto_data)
|
||||
priv->proto_data = calloc(1, sizeof(struct PS2SynapticsHwInfo));
|
||||
synhw = (struct PS2SynapticsHwInfo *) priv->proto_data;
|
||||
|
||||
/* is the synaptics touchpad active? */
|
||||
if (!PSMQueryIsSynaptics(pInfo))
|
||||
return FALSE;
|
||||
|
||||
xf86IDrvMsg(pInfo, X_PROBED, "synaptics touchpad found\n");
|
||||
|
||||
if (!psm_synaptics_identify(pInfo->fd, &psm_ident))
|
||||
return FALSE;
|
||||
|
||||
convert_hw_info(&psm_ident, synhw);
|
||||
|
||||
ps2_print_ident(pInfo, synhw);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static Bool
|
||||
PSMReadHwState(InputInfoPtr pInfo,
|
||||
struct CommData *comm, struct SynapticsHwState *hwRet)
|
||||
{
|
||||
return PS2ReadHwStateProto(pInfo, &psm_proto_operations, comm, hwRet);
|
||||
}
|
||||
|
||||
struct SynapticsProtocolOperations psm_proto_operations = {
|
||||
NULL,
|
||||
NULL,
|
||||
PSMQueryHardware,
|
||||
PSMReadHwState,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,334 @@
|
|||
/*
|
||||
* Permission to use, copy, modify, distribute, and sell this software
|
||||
* and its documentation for any purpose is hereby granted without
|
||||
* fee, provided that the above copyright notice appear in all copies
|
||||
* and that both that copyright notice and this permission notice
|
||||
* appear in supporting documentation, and that the name of Red Hat
|
||||
* not be used in advertising or publicity pertaining to distribution
|
||||
* of the software without specific, written prior permission. Red
|
||||
* Hat makes no representations about the suitability of this software
|
||||
* for any purpose. It is provided "as is" without express or implied
|
||||
* warranty.
|
||||
*
|
||||
* THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
|
||||
* NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef _SYNAPTICSSTR_H_
|
||||
#define _SYNAPTICSSTR_H_
|
||||
|
||||
#include "synproto.h"
|
||||
|
||||
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 18
|
||||
#define LogMessageVerbSigSafe xf86MsgVerb
|
||||
#endif
|
||||
|
||||
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) > 19
|
||||
#define NO_DRIVER_SCALING 1
|
||||
#elif GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 19 && GET_ABI_MINOR(ABI_XINPUT_VERSION) >= 2
|
||||
/* as of 19.2, the server takes device resolution into account when scaling
|
||||
relative events from abs device, so we must not scale in synaptics. */
|
||||
#define NO_DRIVER_SCALING 1
|
||||
#endif
|
||||
|
||||
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 23
|
||||
#define HAVE_THREADED_INPUT 1
|
||||
#endif
|
||||
|
||||
#ifdef DBG
|
||||
#undef DBG
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
#define DBG(verb, ...) \
|
||||
xf86MsgVerb(X_INFO, verb, __VA_ARGS__)
|
||||
#else
|
||||
#define DBG(verb, msg, ...) /* */
|
||||
#endif
|
||||
|
||||
/******************************************************************************
|
||||
* Definitions
|
||||
* structs, typedefs, #defines, enums
|
||||
*****************************************************************************/
|
||||
#define SYNAPTICS_MOVE_HISTORY 5
|
||||
#define SYNAPTICS_MAX_TOUCHES 10
|
||||
#define SYN_MAX_BUTTONS 12 /* Max number of mouse buttons */
|
||||
|
||||
/* Minimum and maximum values for scroll_button_repeat */
|
||||
#define SBR_MIN 10
|
||||
#define SBR_MAX 1000
|
||||
|
||||
enum OffState {
|
||||
TOUCHPAD_ON = 0,
|
||||
TOUCHPAD_OFF = 1,
|
||||
TOUCHPAD_TAP_OFF = 2,
|
||||
};
|
||||
|
||||
enum TapEvent {
|
||||
RT_TAP = 0, /* Right top corner */
|
||||
RB_TAP, /* Right bottom corner */
|
||||
LT_TAP, /* Left top corner */
|
||||
LB_TAP, /* Left bottom corner */
|
||||
F1_TAP, /* Non-corner tap, one finger */
|
||||
F2_TAP, /* Non-corner tap, two fingers */
|
||||
F3_TAP, /* Non-corner tap, three fingers */
|
||||
MAX_TAP
|
||||
};
|
||||
|
||||
enum ClickFingerEvent {
|
||||
F1_CLICK1 = 0, /* Click left, one finger */
|
||||
F2_CLICK1, /* Click left, two fingers */
|
||||
F3_CLICK1, /* Click left, three fingers */
|
||||
MAX_CLICK
|
||||
};
|
||||
|
||||
|
||||
typedef struct _SynapticsMoveHist {
|
||||
int x, y;
|
||||
CARD32 millis;
|
||||
} SynapticsMoveHistRec;
|
||||
|
||||
typedef struct _SynapticsTouchAxis {
|
||||
const char *label;
|
||||
int min;
|
||||
int max;
|
||||
int res;
|
||||
} SynapticsTouchAxisRec;
|
||||
|
||||
enum FingerState { /* Note! The order matters. Compared with < operator. */
|
||||
FS_BLOCKED = -1,
|
||||
FS_UNTOUCHED = 0, /* this is 0 so it's the initialized value. */
|
||||
FS_TOUCHED = 1,
|
||||
FS_PRESSED = 2,
|
||||
};
|
||||
|
||||
enum MovingState {
|
||||
MS_FALSE,
|
||||
MS_TOUCHPAD_RELATIVE,
|
||||
};
|
||||
|
||||
enum MidButtonEmulation {
|
||||
MBE_OFF, /* No button pressed */
|
||||
MBE_LEFT, /* Left button pressed, waiting for right button or timeout */
|
||||
MBE_RIGHT, /* Right button pressed, waiting for left button or timeout */
|
||||
MBE_MID, /* Left and right buttons pressed, waiting for both buttons
|
||||
to be released */
|
||||
MBE_TIMEOUT, /* Waiting for both buttons to be released. */
|
||||
MBE_LEFT_CLICK, /* Emulate left button click. */
|
||||
MBE_RIGHT_CLICK, /* Emulate right button click. */
|
||||
};
|
||||
|
||||
/* See docs/tapndrag.dia for a state machine diagram */
|
||||
enum TapState {
|
||||
TS_START, /* No tap/drag in progress */
|
||||
TS_1, /* After first touch */
|
||||
TS_MOVE, /* Pointer movement enabled */
|
||||
TS_2A, /* After first release */
|
||||
TS_2B, /* After second/third/... release */
|
||||
TS_SINGLETAP, /* After timeout after first release */
|
||||
TS_3, /* After second touch */
|
||||
TS_DRAG, /* Pointer drag enabled */
|
||||
TS_4, /* After release when "locked drags" enabled */
|
||||
TS_5, /* After touch when "locked drags" enabled */
|
||||
TS_CLICKPAD_MOVE, /* After left button press on a clickpad */
|
||||
};
|
||||
|
||||
enum TapButtonState {
|
||||
TBS_BUTTON_UP, /* "Virtual tap button" is up */
|
||||
TBS_BUTTON_DOWN, /* "Virtual tap button" is down */
|
||||
};
|
||||
|
||||
enum TouchpadModel {
|
||||
MODEL_UNKNOWN = 0,
|
||||
MODEL_SYNAPTICS,
|
||||
MODEL_ALPS,
|
||||
MODEL_APPLETOUCH,
|
||||
MODEL_ELANTECH,
|
||||
MODEL_UNIBODY_MACBOOK
|
||||
};
|
||||
|
||||
enum SoftButtonAreas {
|
||||
NO_BUTTON_AREA = -1,
|
||||
BOTTOM_BUTTON_AREA = 0,
|
||||
BOTTOM_RIGHT_BUTTON_AREA = 0,
|
||||
BOTTOM_MIDDLE_BUTTON_AREA = 1,
|
||||
TOP_BUTTON_AREA = 2,
|
||||
TOP_RIGHT_BUTTON_AREA = 2,
|
||||
TOP_MIDDLE_BUTTON_AREA = 3
|
||||
};
|
||||
|
||||
enum SoftButtonAreaEdges {
|
||||
LEFT = 0,
|
||||
RIGHT = 1,
|
||||
TOP = 2,
|
||||
BOTTOM = 3
|
||||
};
|
||||
|
||||
typedef struct _SynapticsParameters {
|
||||
/* Parameter data */
|
||||
int left_edge, right_edge, top_edge, bottom_edge; /* edge coordinates absolute */
|
||||
int finger_low, finger_high, finger_press; /* finger detection values in Z-values */
|
||||
int tap_time;
|
||||
int tap_move; /* max. tapping time and movement in packets and coord. */
|
||||
int single_tap_timeout; /* timeout to recognize a single tap */
|
||||
int tap_time_2; /* max. tapping time for double taps */
|
||||
int click_time; /* The duration of a single click */
|
||||
Bool clickpad; /* Device is a has integrated buttons */
|
||||
Bool has_secondary_buttons; /* Device has a top soft-button area */
|
||||
int clickpad_ignore_motion_time; /* Ignore motion for X ms after a click */
|
||||
int emulate_mid_button_time; /* Max time between left and right button presses to
|
||||
emulate a middle button press. */
|
||||
int emulate_twofinger_z; /* pressure threshold to emulate two finger touch (for Alps) */
|
||||
int emulate_twofinger_w; /* Finger width threshold to emulate two finger touch */
|
||||
int scroll_dist_vert; /* Scrolling distance in absolute coordinates */
|
||||
int scroll_dist_horiz; /* Scrolling distance in absolute coordinates */
|
||||
Bool scroll_edge_vert; /* Enable/disable vertical scrolling on right edge */
|
||||
Bool scroll_edge_horiz; /* Enable/disable horizontal scrolling on left edge */
|
||||
Bool scroll_edge_corner; /* Enable/disable continuous edge scrolling when in the corner */
|
||||
Bool scroll_twofinger_vert; /* Enable/disable vertical two-finger scrolling */
|
||||
Bool scroll_twofinger_horiz; /* Enable/disable horizontal two-finger scrolling */
|
||||
double min_speed, max_speed, accl; /* movement parameters */
|
||||
|
||||
Bool updown_button_scrolling; /* Up/Down-Button scrolling or middle/double-click */
|
||||
Bool leftright_button_scrolling; /* Left/right-button scrolling, or two lots of middle button */
|
||||
Bool updown_button_repeat; /* If up/down button being used to scroll, auto-repeat? */
|
||||
Bool leftright_button_repeat; /* If left/right button being used to scroll, auto-repeat? */
|
||||
int scroll_button_repeat; /* time, in milliseconds, between scroll events being
|
||||
* sent when holding down scroll buttons */
|
||||
int touchpad_off; /* Switches the touchpad off
|
||||
* 0 : Not off
|
||||
* 1 : Off
|
||||
* 2 : Only tapping and scrolling off
|
||||
*/
|
||||
Bool locked_drags; /* Enable locked drags */
|
||||
int locked_drag_time; /* timeout for locked drags */
|
||||
int tap_action[MAX_TAP]; /* Button to report on tap events */
|
||||
int click_action[MAX_CLICK]; /* Button to report on click with fingers */
|
||||
Bool circular_scrolling; /* Enable circular scrolling */
|
||||
double scroll_dist_circ; /* Scrolling angle radians */
|
||||
int circular_trigger; /* Trigger area for circular scrolling */
|
||||
Bool circular_pad; /* Edge has an oval or circular shape */
|
||||
Bool palm_detect; /* Enable Palm Detection */
|
||||
int palm_min_width; /* Palm detection width */
|
||||
int palm_min_z; /* Palm detection depth */
|
||||
double coasting_speed; /* Coasting threshold scrolling speed in scrolls/s */
|
||||
double coasting_friction; /* Number of scrolls per second per second to change coasting speed */
|
||||
int press_motion_min_z; /* finger pressure at which minimum pressure motion factor is applied */
|
||||
int press_motion_max_z; /* finger pressure at which maximum pressure motion factor is applied */
|
||||
double press_motion_min_factor; /* factor applied on speed when finger pressure is at minimum */
|
||||
double press_motion_max_factor; /* factor applied on speed when finger pressure is at minimum */
|
||||
Bool grab_event_device; /* grab event device for exclusive use? */
|
||||
Bool tap_and_drag_gesture; /* Switches the tap-and-drag gesture on/off */
|
||||
unsigned int resolution_horiz; /* horizontal resolution of touchpad in units/mm */
|
||||
unsigned int resolution_vert; /* vertical resolution of touchpad in units/mm */
|
||||
int area_left_edge, area_right_edge, area_top_edge, area_bottom_edge; /* area coordinates absolute */
|
||||
int softbutton_areas[4][4]; /* soft button area coordinates, 0 => right, 1 => middle , 2 => secondary right, 3 => secondary middle button */
|
||||
int hyst_x, hyst_y; /* x and y width of hysteresis box */
|
||||
|
||||
int maxDeltaMM; /* maximum delta movement (vector length) in mm */
|
||||
} SynapticsParameters;
|
||||
|
||||
struct _SynapticsPrivateRec {
|
||||
SynapticsParameters synpara; /* Default parameter settings, read from
|
||||
the X config file */
|
||||
struct SynapticsProtocolOperations *proto_ops;
|
||||
void *proto_data; /* protocol-specific data */
|
||||
|
||||
struct SynapticsHwState *hwState;
|
||||
|
||||
const char *device; /* device node */
|
||||
CARD32 timer_time; /* when timer last fired */
|
||||
OsTimerPtr timer; /* for up/down-button repeat, tap processing, etc */
|
||||
|
||||
struct CommData comm;
|
||||
|
||||
struct SynapticsHwState *local_hw_state; /* used in place of local hw state variables */
|
||||
|
||||
SynapticsMoveHistRec move_hist[SYNAPTICS_MOVE_HISTORY]; /* movement history */
|
||||
int hist_index; /* Last added entry in move_hist[] */
|
||||
int hyst_center_x; /* center x of hysteresis */
|
||||
int hyst_center_y; /* center y of hysteresis */
|
||||
struct {
|
||||
int last_x; /* last x-scroll position */
|
||||
int last_y; /* last y-scroll position */
|
||||
double delta_x; /* accumulated horiz scroll delta */
|
||||
double delta_y; /* accumulated vert scroll delta */
|
||||
double last_a; /* last angle-scroll position */
|
||||
CARD32 last_millis; /* time last scroll event posted */
|
||||
double coast_speed_x; /* Horizontal coasting speed in scrolls/s */
|
||||
double coast_speed_y; /* Vertical coasting speed in scrolls/s */
|
||||
double coast_delta_x; /* Accumulated horizontal coast delta */
|
||||
double coast_delta_y; /* Accumulated vertical coast delta */
|
||||
int packets_this_scroll; /* Events received for this scroll */
|
||||
} scroll;
|
||||
int count_packet_finger; /* packet counter with finger on the touchpad */
|
||||
int button_delay_millis; /* button delay for 3rd button emulation */
|
||||
Bool prev_up; /* Previous up button value, for double click emulation */
|
||||
enum FingerState finger_state; /* previous finger state */
|
||||
CARD32 last_motion_millis; /* time of the last motion */
|
||||
enum SoftButtonAreas last_button_area; /* Last button area we were in */
|
||||
int clickpad_click_millis; /* Time of last clickpad click */
|
||||
|
||||
enum TapState tap_state; /* State of tap processing */
|
||||
int tap_max_fingers; /* Max number of fingers seen since entering start state */
|
||||
int tap_button; /* Which button started the tap processing */
|
||||
enum TapButtonState tap_button_state; /* Current tap action */
|
||||
SynapticsMoveHistRec touch_on; /* data when the touchpad is touched/released */
|
||||
|
||||
enum MovingState moving_state; /* previous moving state */
|
||||
Bool vert_scroll_edge_on; /* Keeps track of currently active scroll modes */
|
||||
Bool horiz_scroll_edge_on; /* Keeps track of currently active scroll modes */
|
||||
Bool vert_scroll_twofinger_on; /* Keeps track of currently active scroll modes */
|
||||
Bool horiz_scroll_twofinger_on; /* Keeps track of currently active scroll modes */
|
||||
Bool circ_scroll_on; /* Keeps track of currently active scroll modes */
|
||||
Bool circ_scroll_vert; /* True: Generate vertical scroll events
|
||||
False: Generate horizontal events */
|
||||
enum MidButtonEmulation mid_emu_state; /* emulated 3rd button */
|
||||
int repeatButtons; /* buttons for repeat */
|
||||
int nextRepeat; /* Time when to trigger next auto repeat event */
|
||||
int lastButtons; /* last state of the buttons */
|
||||
int prev_z; /* previous z value, for palm detection */
|
||||
int prevFingers; /* previous numFingers, for transition detection */
|
||||
int avg_width; /* weighted average of previous fingerWidth values */
|
||||
#ifndef NO_DRIVER_SCALING
|
||||
double horiz_coeff; /* normalization factor for x coordintes */
|
||||
double vert_coeff; /* normalization factor for y coordintes */
|
||||
#endif
|
||||
|
||||
int minx, maxx, miny, maxy; /* min/max dimensions as detected */
|
||||
int minp, maxp, minw, maxw; /* min/max pressure and finger width as detected */
|
||||
int resx, resy; /* resolution of coordinates as detected in units/mm */
|
||||
Bool has_left; /* left button detected for this device */
|
||||
Bool has_right; /* right button detected for this device */
|
||||
Bool has_middle; /* middle button detected for this device */
|
||||
Bool has_double; /* double click detected for this device */
|
||||
Bool has_triple; /* triple click detected for this device */
|
||||
Bool has_pressure; /* device reports pressure */
|
||||
Bool has_width; /* device reports finger width */
|
||||
Bool has_scrollbuttons; /* device has physical scrollbuttons */
|
||||
Bool has_semi_mt; /* device is only semi-multitouch capable */
|
||||
Bool has_mt_palm_detect; /* device reports per finger width and pressure */
|
||||
|
||||
enum TouchpadModel model; /* The detected model */
|
||||
unsigned short id_vendor; /* vendor id */
|
||||
unsigned short id_product; /* product id */
|
||||
|
||||
int scroll_axis_horiz; /* Horizontal smooth-scrolling axis */
|
||||
int scroll_axis_vert; /* Vertical smooth-scrolling axis */
|
||||
ValuatorMask *scroll_events_mask; /* ValuatorMask for smooth-scrolling */
|
||||
|
||||
Bool has_touch; /* Device has multitouch capabilities */
|
||||
int max_touches; /* Number of touches supported */
|
||||
int num_mt_axes; /* Number of multitouch axes other than X, Y */
|
||||
SynapticsTouchAxisRec *touch_axes; /* Touch axis information other than X, Y */
|
||||
int num_slots; /* Number of touch slots allocated */
|
||||
int *open_slots; /* Array of currently open touch slots */
|
||||
int num_active_touches; /* Number of active touches on device */
|
||||
};
|
||||
|
||||
#endif /* _SYNAPTICSSTR_H_ */
|
|
@ -0,0 +1,170 @@
|
|||
/*
|
||||
* Copyright © 2012 Canonical, Ltd.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the next
|
||||
* paragraph) shall be included in all copies or substantial portions of the
|
||||
* Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "synproto.h"
|
||||
#include "synapticsstr.h"
|
||||
|
||||
static int
|
||||
HwStateAllocTouch(struct SynapticsHwState *hw, SynapticsPrivate * priv)
|
||||
{
|
||||
int num_vals;
|
||||
int i = 0;
|
||||
|
||||
hw->num_mt_mask = priv->num_slots;
|
||||
hw->mt_mask = malloc(hw->num_mt_mask * sizeof(ValuatorMask *));
|
||||
if (!hw->mt_mask)
|
||||
goto fail;
|
||||
|
||||
num_vals = 2; /* x and y */
|
||||
num_vals += 2; /* scroll axes */
|
||||
num_vals += priv->num_mt_axes;
|
||||
|
||||
for (; i < hw->num_mt_mask; i++) {
|
||||
hw->mt_mask[i] = valuator_mask_new(num_vals);
|
||||
if (!hw->mt_mask[i])
|
||||
goto fail;
|
||||
}
|
||||
|
||||
hw->slot_state = calloc(hw->num_mt_mask, sizeof(enum SynapticsSlotState));
|
||||
if (!hw->slot_state)
|
||||
goto fail;
|
||||
|
||||
return Success;
|
||||
|
||||
fail:
|
||||
for (i--; i >= 0; i--)
|
||||
valuator_mask_free(&hw->mt_mask[i]);
|
||||
free(hw->mt_mask);
|
||||
hw->mt_mask = NULL;
|
||||
return BadAlloc;
|
||||
}
|
||||
|
||||
struct SynapticsHwState *
|
||||
SynapticsHwStateAlloc(SynapticsPrivate * priv)
|
||||
{
|
||||
struct SynapticsHwState *hw;
|
||||
|
||||
hw = calloc(1, sizeof(struct SynapticsHwState));
|
||||
if (!hw)
|
||||
return NULL;
|
||||
|
||||
if (HwStateAllocTouch(hw, priv) != Success) {
|
||||
free(hw);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return hw;
|
||||
}
|
||||
|
||||
void
|
||||
SynapticsHwStateFree(struct SynapticsHwState **hw)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (!*hw)
|
||||
return;
|
||||
|
||||
free((*hw)->slot_state);
|
||||
for (i = 0; i < (*hw)->num_mt_mask; i++)
|
||||
valuator_mask_free(&(*hw)->mt_mask[i]);
|
||||
free((*hw)->mt_mask);
|
||||
|
||||
free(*hw);
|
||||
*hw = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
SynapticsCopyHwState(struct SynapticsHwState *dst,
|
||||
const struct SynapticsHwState *src)
|
||||
{
|
||||
int i;
|
||||
|
||||
dst->millis = src->millis;
|
||||
dst->x = src->x;
|
||||
dst->y = src->y;
|
||||
dst->z = src->z;
|
||||
dst->cumulative_dx = src->cumulative_dx;
|
||||
dst->cumulative_dy = src->cumulative_dy;
|
||||
dst->numFingers = src->numFingers;
|
||||
dst->fingerWidth = src->fingerWidth;
|
||||
dst->left = src->left & BTN_EMULATED_FLAG ? 0 : src->left;
|
||||
dst->right = src->right & BTN_EMULATED_FLAG ? 0 : src->right;
|
||||
dst->up = src->up;
|
||||
dst->down = src->down;
|
||||
memcpy(dst->multi, src->multi, sizeof(dst->multi));
|
||||
dst->middle = src->middle & BTN_EMULATED_FLAG ? 0 : src->middle;
|
||||
for (i = 0; i < dst->num_mt_mask && i < src->num_mt_mask; i++)
|
||||
valuator_mask_copy(dst->mt_mask[i], src->mt_mask[i]);
|
||||
memcpy(dst->slot_state, src->slot_state,
|
||||
dst->num_mt_mask * sizeof(enum SynapticsSlotState));
|
||||
}
|
||||
|
||||
void
|
||||
SynapticsResetHwState(struct SynapticsHwState *hw)
|
||||
{
|
||||
hw->millis = 0;
|
||||
hw->x = INT_MIN;
|
||||
hw->y = INT_MIN;
|
||||
hw->z = 0;
|
||||
hw->cumulative_dx = 0;
|
||||
hw->cumulative_dy = 0;
|
||||
hw->numFingers = 0;
|
||||
hw->fingerWidth = 0;
|
||||
|
||||
hw->left = 0;
|
||||
hw->right = 0;
|
||||
hw->up = 0;
|
||||
hw->down = 0;
|
||||
|
||||
hw->middle = 0;
|
||||
memset(hw->multi, 0, sizeof(hw->multi));
|
||||
|
||||
SynapticsResetTouchHwState(hw, TRUE);
|
||||
}
|
||||
|
||||
void
|
||||
SynapticsResetTouchHwState(struct SynapticsHwState *hw, Bool set_slot_empty)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < hw->num_mt_mask; i++) {
|
||||
int j;
|
||||
|
||||
/* Leave x and y valuators in case we need to restart touch */
|
||||
for (j = 2; j < valuator_mask_num_valuators(hw->mt_mask[i]); j++)
|
||||
valuator_mask_unset(hw->mt_mask[i], j);
|
||||
|
||||
switch (hw->slot_state[i]) {
|
||||
case SLOTSTATE_OPEN:
|
||||
case SLOTSTATE_OPEN_EMPTY:
|
||||
case SLOTSTATE_UPDATE:
|
||||
hw->slot_state[i] =
|
||||
set_slot_empty ? SLOTSTATE_EMPTY : SLOTSTATE_OPEN_EMPTY;
|
||||
break;
|
||||
|
||||
default:
|
||||
hw->slot_state[i] = SLOTSTATE_EMPTY;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,135 @@
|
|||
/*
|
||||
* Copyright © 2004 Peter Osterlund
|
||||
*
|
||||
* Permission to use, copy, modify, distribute, and sell this software
|
||||
* and its documentation for any purpose is hereby granted without
|
||||
* fee, provided that the above copyright notice appear in all copies
|
||||
* and that both that copyright notice and this permission notice
|
||||
* appear in supporting documentation, and that the name of Red Hat
|
||||
* not be used in advertising or publicity pertaining to distribution
|
||||
* of the software without specific, written prior permission. Red
|
||||
* Hat makes no representations about the suitability of this software
|
||||
* for any purpose. It is provided "as is" without express or implied
|
||||
* warranty.
|
||||
*
|
||||
* THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
|
||||
* NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*
|
||||
* Authors:
|
||||
* Peter Osterlund (petero2@telia.com)
|
||||
*/
|
||||
|
||||
#ifndef _SYNPROTO_H_
|
||||
#define _SYNPROTO_H_
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <xorg-server.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <xf86Xinput.h>
|
||||
#include <xisb.h>
|
||||
|
||||
#ifndef XI86_SERVER_FD
|
||||
#define XI86_SERVER_FD 0x20
|
||||
#endif
|
||||
|
||||
struct _SynapticsPrivateRec;
|
||||
typedef struct _SynapticsPrivateRec SynapticsPrivate;
|
||||
|
||||
enum SynapticsSlotState {
|
||||
SLOTSTATE_EMPTY = 0, /* no slot in this cycle */
|
||||
SLOTSTATE_OPEN, /* tracking ID received */
|
||||
SLOTSTATE_CLOSE, /* tracking ID -1 received */
|
||||
SLOTSTATE_OPEN_EMPTY, /* previously had tracking id, no events in this read cycle */
|
||||
SLOTSTATE_UPDATE, /* had tracking id, other events in this cycle */
|
||||
};
|
||||
|
||||
/* used to mark emulated hw button state */
|
||||
#define BTN_EMULATED_FLAG 0x80
|
||||
|
||||
/*
|
||||
* A structure to describe the state of the touchpad hardware (buttons and pad)
|
||||
*/
|
||||
struct SynapticsHwState {
|
||||
CARD32 millis; /* Timestamp in milliseconds */
|
||||
int x; /* X position of finger */
|
||||
int y; /* Y position of finger */
|
||||
int z; /* Finger pressure */
|
||||
int cumulative_dx; /* Cumulative delta X for clickpad dragging */
|
||||
int cumulative_dy; /* Cumulative delta Y for clickpad dragging */
|
||||
int numFingers;
|
||||
int fingerWidth;
|
||||
|
||||
Bool left;
|
||||
Bool right;
|
||||
Bool up;
|
||||
Bool down;
|
||||
|
||||
Bool multi[8];
|
||||
Bool middle; /* Some ALPS touchpads have a middle button */
|
||||
|
||||
int num_mt_mask;
|
||||
ValuatorMask **mt_mask;
|
||||
enum SynapticsSlotState *slot_state;
|
||||
};
|
||||
|
||||
struct CommData {
|
||||
XISBuffer *buffer;
|
||||
unsigned char protoBuf[6]; /* Buffer for Packet */
|
||||
unsigned char lastByte; /* Last read byte. Use for reset sequence detection. */
|
||||
int outOfSync; /* How many consecutive incorrect packets we
|
||||
have received */
|
||||
int protoBufTail;
|
||||
|
||||
/* Used for keeping track of partial HwState updates. */
|
||||
struct SynapticsHwState *hwState;
|
||||
Bool oneFinger;
|
||||
Bool twoFingers;
|
||||
Bool threeFingers;
|
||||
};
|
||||
|
||||
struct _SynapticsParameters;
|
||||
|
||||
struct SynapticsProtocolOperations {
|
||||
Bool (*DeviceOnHook) (InputInfoPtr pInfo,
|
||||
struct _SynapticsParameters * para);
|
||||
Bool (*DeviceOffHook) (InputInfoPtr pInfo);
|
||||
Bool (*QueryHardware) (InputInfoPtr pInfo);
|
||||
Bool (*ReadHwState) (InputInfoPtr pInfo,
|
||||
struct CommData * comm,
|
||||
struct SynapticsHwState * hwRet);
|
||||
Bool (*AutoDevProbe) (InputInfoPtr pInfo, const char *device);
|
||||
void (*ReadDevDimensions) (InputInfoPtr pInfo);
|
||||
};
|
||||
|
||||
#ifdef BUILD_PS2COMM
|
||||
extern struct SynapticsProtocolOperations psaux_proto_operations;
|
||||
extern struct SynapticsProtocolOperations alps_proto_operations;
|
||||
#endif /* BUILD_PS2COMM */
|
||||
#ifdef BUILD_EVENTCOMM
|
||||
extern struct SynapticsProtocolOperations event_proto_operations;
|
||||
#endif /* BUILD_EVENTCOMM */
|
||||
#ifdef BUILD_PSMCOMM
|
||||
extern struct SynapticsProtocolOperations psm_proto_operations;
|
||||
#endif /* BUILD_PSMCOMM */
|
||||
|
||||
extern struct SynapticsHwState *SynapticsHwStateAlloc(SynapticsPrivate * priv);
|
||||
extern void SynapticsHwStateFree(struct SynapticsHwState **hw);
|
||||
extern void SynapticsCopyHwState(struct SynapticsHwState *dst,
|
||||
const struct SynapticsHwState *src);
|
||||
extern void SynapticsResetHwState(struct SynapticsHwState *hw);
|
||||
extern void SynapticsResetTouchHwState(struct SynapticsHwState *hw,
|
||||
Bool set_slot_empty);
|
||||
|
||||
extern Bool SynapticsIsSoftButtonAreasValid(int *values);
|
||||
|
||||
#endif /* _SYNPROTO_H_ */
|
|
@ -0,0 +1,31 @@
|
|||
# Copyright 2008 Red Hat, Inc.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
||||
# license, and/or sell copies of the Software, and to permit persons to whom
|
||||
# the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
bin_PROGRAMS = synclient syndaemon
|
||||
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/include
|
||||
AM_CFLAGS = $(XI_CFLAGS)
|
||||
AM_LDFLAGS = $(XI_LIBS)
|
||||
|
||||
synclient_SOURCES = synclient.c
|
||||
|
||||
syndaemon_SOURCES = syndaemon.c
|
||||
syndaemon_CFLAGS = $(AM_CFLAGS) $(XTST_CFLAGS)
|
||||
syndaemon_LDFLAGS = $(AM_LDFLAGS) $(XTST_LIBS)
|
|
@ -0,0 +1,706 @@
|
|||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# Copyright 2008 Red Hat, Inc.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
||||
# license, and/or sell copies of the Software, and to permit persons to whom
|
||||
# the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
bin_PROGRAMS = synclient$(EXEEXT) syndaemon$(EXEEXT)
|
||||
subdir = tools
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
am__installdirs = "$(DESTDIR)$(bindir)"
|
||||
PROGRAMS = $(bin_PROGRAMS)
|
||||
am_synclient_OBJECTS = synclient.$(OBJEXT)
|
||||
synclient_OBJECTS = $(am_synclient_OBJECTS)
|
||||
synclient_LDADD = $(LDADD)
|
||||
AM_V_lt = $(am__v_lt_@AM_V@)
|
||||
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
||||
am__v_lt_0 = --silent
|
||||
am__v_lt_1 =
|
||||
am_syndaemon_OBJECTS = syndaemon-syndaemon.$(OBJEXT)
|
||||
syndaemon_OBJECTS = $(am_syndaemon_OBJECTS)
|
||||
syndaemon_LDADD = $(LDADD)
|
||||
syndaemon_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(syndaemon_CFLAGS) \
|
||||
$(CFLAGS) $(syndaemon_LDFLAGS) $(LDFLAGS) -o $@
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
|
||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
am__mv = mv -f
|
||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
|
||||
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||
$(AM_CFLAGS) $(CFLAGS)
|
||||
AM_V_CC = $(am__v_CC_@AM_V@)
|
||||
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
|
||||
am__v_CC_0 = @echo " CC " $@;
|
||||
am__v_CC_1 =
|
||||
CCLD = $(CC)
|
||||
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
||||
$(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
|
||||
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
|
||||
am__v_CCLD_0 = @echo " CCLD " $@;
|
||||
am__v_CCLD_1 =
|
||||
SOURCES = $(synclient_SOURCES) $(syndaemon_SOURCES)
|
||||
DIST_SOURCES = $(synclient_SOURCES) $(syndaemon_SOURCES)
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
# Read a list of newline-separated strings from the standard input,
|
||||
# and print each of them once, without duplicates. Input order is
|
||||
# *not* preserved.
|
||||
am__uniquify_input = $(AWK) '\
|
||||
BEGIN { nonempty = 0; } \
|
||||
{ items[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in items) print i; }; } \
|
||||
'
|
||||
# Make sure the list of sources is unique. This is necessary because,
|
||||
# e.g., the same source file might be shared among _SOURCES variables
|
||||
# for different programs/libraries.
|
||||
am__define_uniq_tagged_files = \
|
||||
list='$(am__tagged_files)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
|
||||
ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
APP_MAN_DIR = @APP_MAN_DIR@
|
||||
APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
BASE_CFLAGS = @BASE_CFLAGS@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CHANGELOG_CMD = @CHANGELOG_CMD@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CWARNFLAGS = @CWARNFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
|
||||
DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CMD = @INSTALL_CMD@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBEVDEV_CFLAGS = @LIBEVDEV_CFLAGS@
|
||||
LIBEVDEV_LIBS = @LIBEVDEV_LIBS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIB_MAN_DIR = @LIB_MAN_DIR@
|
||||
LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MAN_SUBSTS = @MAN_SUBSTS@
|
||||
MISC_MAN_DIR = @MISC_MAN_DIR@
|
||||
MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRICT_CFLAGS = @STRICT_CFLAGS@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
XI_CFLAGS = @XI_CFLAGS@
|
||||
XI_LIBS = @XI_LIBS@
|
||||
XORG_CFLAGS = @XORG_CFLAGS@
|
||||
XORG_LIBS = @XORG_LIBS@
|
||||
XORG_MALLOC_DEBUG_ENV = @XORG_MALLOC_DEBUG_ENV@
|
||||
XORG_MAN_PAGE = @XORG_MAN_PAGE@
|
||||
XTST_CFLAGS = @XTST_CFLAGS@
|
||||
XTST_LIBS = @XTST_LIBS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
configdir = @configdir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
inputdir = @inputdir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sdkdir = @sdkdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/include
|
||||
AM_CFLAGS = $(XI_CFLAGS)
|
||||
AM_LDFLAGS = $(XI_LIBS)
|
||||
synclient_SOURCES = synclient.c
|
||||
syndaemon_SOURCES = syndaemon.c
|
||||
syndaemon_CFLAGS = $(AM_CFLAGS) $(XTST_CFLAGS)
|
||||
syndaemon_LDFLAGS = $(AM_LDFLAGS) $(XTST_LIBS)
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .lo .o .obj
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tools/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign tools/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
install-binPROGRAMS: $(bin_PROGRAMS)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed 's/$(EXEEXT)$$//' | \
|
||||
while read p p1; do if test -f $$p \
|
||||
|| test -f $$p1 \
|
||||
; then echo "$$p"; echo "$$p"; else :; fi; \
|
||||
done | \
|
||||
sed -e 'p;s,.*/,,;n;h' \
|
||||
-e 's|.*|.|' \
|
||||
-e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
|
||||
sed 'N;N;N;s,\n, ,g' | \
|
||||
$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
|
||||
{ d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
|
||||
if ($$2 == $$4) files[d] = files[d] " " $$1; \
|
||||
else { print "f", $$3 "/" $$4, $$1; } } \
|
||||
END { for (d in files) print "f", d, files[d] }' | \
|
||||
while read type dir files; do \
|
||||
if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
|
||||
test -z "$$files" || { \
|
||||
echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
|
||||
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
|
||||
} \
|
||||
; done
|
||||
|
||||
uninstall-binPROGRAMS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
|
||||
files=`for p in $$list; do echo "$$p"; done | \
|
||||
sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
|
||||
-e 's/$$/$(EXEEXT)/' \
|
||||
`; \
|
||||
test -n "$$list" || exit 0; \
|
||||
echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
|
||||
cd "$(DESTDIR)$(bindir)" && rm -f $$files
|
||||
|
||||
clean-binPROGRAMS:
|
||||
@list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
|
||||
echo " rm -f" $$list; \
|
||||
rm -f $$list || exit $$?; \
|
||||
test -n "$(EXEEXT)" || exit 0; \
|
||||
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
|
||||
echo " rm -f" $$list; \
|
||||
rm -f $$list
|
||||
|
||||
synclient$(EXEEXT): $(synclient_OBJECTS) $(synclient_DEPENDENCIES) $(EXTRA_synclient_DEPENDENCIES)
|
||||
@rm -f synclient$(EXEEXT)
|
||||
$(AM_V_CCLD)$(LINK) $(synclient_OBJECTS) $(synclient_LDADD) $(LIBS)
|
||||
|
||||
syndaemon$(EXEEXT): $(syndaemon_OBJECTS) $(syndaemon_DEPENDENCIES) $(EXTRA_syndaemon_DEPENDENCIES)
|
||||
@rm -f syndaemon$(EXEEXT)
|
||||
$(AM_V_CCLD)$(syndaemon_LINK) $(syndaemon_OBJECTS) $(syndaemon_LDADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synclient.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/syndaemon-syndaemon.Po@am__quote@
|
||||
|
||||
.c.o:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
|
||||
|
||||
.c.obj:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
|
||||
.c.lo:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
|
||||
|
||||
syndaemon-syndaemon.o: syndaemon.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(syndaemon_CFLAGS) $(CFLAGS) -MT syndaemon-syndaemon.o -MD -MP -MF $(DEPDIR)/syndaemon-syndaemon.Tpo -c -o syndaemon-syndaemon.o `test -f 'syndaemon.c' || echo '$(srcdir)/'`syndaemon.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/syndaemon-syndaemon.Tpo $(DEPDIR)/syndaemon-syndaemon.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='syndaemon.c' object='syndaemon-syndaemon.o' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(syndaemon_CFLAGS) $(CFLAGS) -c -o syndaemon-syndaemon.o `test -f 'syndaemon.c' || echo '$(srcdir)/'`syndaemon.c
|
||||
|
||||
syndaemon-syndaemon.obj: syndaemon.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(syndaemon_CFLAGS) $(CFLAGS) -MT syndaemon-syndaemon.obj -MD -MP -MF $(DEPDIR)/syndaemon-syndaemon.Tpo -c -o syndaemon-syndaemon.obj `if test -f 'syndaemon.c'; then $(CYGPATH_W) 'syndaemon.c'; else $(CYGPATH_W) '$(srcdir)/syndaemon.c'; fi`
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/syndaemon-syndaemon.Tpo $(DEPDIR)/syndaemon-syndaemon.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='syndaemon.c' object='syndaemon-syndaemon.obj' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(syndaemon_CFLAGS) $(CFLAGS) -c -o syndaemon-syndaemon.obj `if test -f 'syndaemon.c'; then $(CYGPATH_W) 'syndaemon.c'; else $(CYGPATH_W) '$(srcdir)/syndaemon.c'; fi`
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
ID: $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
||||
tags: tags-am
|
||||
TAGS: tags
|
||||
|
||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
$(am__define_uniq_tagged_files); \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: ctags-am
|
||||
|
||||
CTAGS: ctags
|
||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
cscopelist: cscopelist-am
|
||||
|
||||
cscopelist-am: $(am__tagged_files)
|
||||
list='$(am__tagged_files)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(PROGRAMS)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(bindir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am: install-binPROGRAMS
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-binPROGRAMS
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
|
||||
clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \
|
||||
ctags ctags-am distclean distclean-compile distclean-generic \
|
||||
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-binPROGRAMS \
|
||||
install-data install-data-am install-dvi install-dvi-am \
|
||||
install-exec install-exec-am install-html install-html-am \
|
||||
install-info install-info-am install-man install-pdf \
|
||||
install-pdf-am install-ps install-ps-am install-strip \
|
||||
installcheck installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
tags tags-am uninstall uninstall-am uninstall-binPROGRAMS
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
|
@ -0,0 +1,523 @@
|
|||
/*
|
||||
* Copyright © 2002-2005,2007 Peter Osterlund
|
||||
*
|
||||
* Permission to use, copy, modify, distribute, and sell this software
|
||||
* and its documentation for any purpose is hereby granted without
|
||||
* fee, provided that the above copyright notice appear in all copies
|
||||
* and that both that copyright notice and this permission notice
|
||||
* appear in supporting documentation, and that the name of Red Hat
|
||||
* not be used in advertising or publicity pertaining to distribution
|
||||
* of the software without specific, written prior permission. Red
|
||||
* Hat makes no representations about the suitability of this software
|
||||
* for any purpose. It is provided "as is" without express or implied
|
||||
* warranty.
|
||||
*
|
||||
* THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
|
||||
* NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*
|
||||
* Authors:
|
||||
* Peter Osterlund (petero2@telia.com)
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
#include <math.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include <X11/Xdefs.h>
|
||||
#include <X11/Xatom.h>
|
||||
#include <X11/extensions/XI.h>
|
||||
#include <X11/extensions/XInput.h>
|
||||
#include "synaptics-properties.h"
|
||||
|
||||
#ifndef XATOM_FLOAT
|
||||
#define XATOM_FLOAT "FLOAT"
|
||||
#endif
|
||||
|
||||
#define SYN_MAX_BUTTONS 12
|
||||
#define SBR_MIN 10
|
||||
#define SBR_MAX 1000
|
||||
|
||||
union flong { /* Xlibs 64-bit property handling madness */
|
||||
long l;
|
||||
float f;
|
||||
};
|
||||
|
||||
enum ParaType {
|
||||
PT_INT,
|
||||
PT_BOOL,
|
||||
PT_DOUBLE
|
||||
};
|
||||
|
||||
struct Parameter {
|
||||
char *name; /* Name of parameter */
|
||||
enum ParaType type; /* Type of parameter */
|
||||
double min_val; /* Minimum allowed value */
|
||||
double max_val; /* Maximum allowed value */
|
||||
char *prop_name; /* Property name */
|
||||
int prop_format; /* Property format (0 for floats) */
|
||||
int prop_offset; /* Offset inside property */
|
||||
};
|
||||
|
||||
static struct Parameter params[] = {
|
||||
{"LeftEdge", PT_INT, 0, 10000, SYNAPTICS_PROP_EDGES, 32, 0},
|
||||
{"RightEdge", PT_INT, 0, 10000, SYNAPTICS_PROP_EDGES, 32, 1},
|
||||
{"TopEdge", PT_INT, 0, 10000, SYNAPTICS_PROP_EDGES, 32, 2},
|
||||
{"BottomEdge", PT_INT, 0, 10000, SYNAPTICS_PROP_EDGES, 32, 3},
|
||||
{"FingerLow", PT_INT, 0, 255, SYNAPTICS_PROP_FINGER, 32, 0},
|
||||
{"FingerHigh", PT_INT, 0, 255, SYNAPTICS_PROP_FINGER, 32, 1},
|
||||
{"MaxTapTime", PT_INT, 0, 1000, SYNAPTICS_PROP_TAP_TIME, 32, 0},
|
||||
{"MaxTapMove", PT_INT, 0, 2000, SYNAPTICS_PROP_TAP_MOVE, 32, 0},
|
||||
{"MaxDoubleTapTime", PT_INT, 0, 1000, SYNAPTICS_PROP_TAP_DURATIONS,32, 1},
|
||||
{"SingleTapTimeout", PT_INT, 0, 1000, SYNAPTICS_PROP_TAP_DURATIONS,32, 0},
|
||||
{"ClickTime", PT_INT, 0, 1000, SYNAPTICS_PROP_TAP_DURATIONS,32, 2},
|
||||
{"EmulateMidButtonTime", PT_INT, 0, 1000, SYNAPTICS_PROP_MIDDLE_TIMEOUT,32, 0},
|
||||
{"EmulateTwoFingerMinZ", PT_INT, 0, 1000, SYNAPTICS_PROP_TWOFINGER_PRESSURE, 32, 0},
|
||||
{"EmulateTwoFingerMinW", PT_INT, 0, 15, SYNAPTICS_PROP_TWOFINGER_WIDTH, 32, 0},
|
||||
{"VertScrollDelta", PT_INT, -1000, 1000, SYNAPTICS_PROP_SCROLL_DISTANCE, 32, 0},
|
||||
{"HorizScrollDelta", PT_INT, -1000, 1000, SYNAPTICS_PROP_SCROLL_DISTANCE, 32, 1},
|
||||
{"VertEdgeScroll", PT_BOOL, 0, 1, SYNAPTICS_PROP_SCROLL_EDGE, 8, 0},
|
||||
{"HorizEdgeScroll", PT_BOOL, 0, 1, SYNAPTICS_PROP_SCROLL_EDGE, 8, 1},
|
||||
{"CornerCoasting", PT_BOOL, 0, 1, SYNAPTICS_PROP_SCROLL_EDGE, 8, 2},
|
||||
{"VertTwoFingerScroll", PT_BOOL, 0, 1, SYNAPTICS_PROP_SCROLL_TWOFINGER, 8, 0},
|
||||
{"HorizTwoFingerScroll", PT_BOOL, 0, 1, SYNAPTICS_PROP_SCROLL_TWOFINGER, 8, 1},
|
||||
{"MinSpeed", PT_DOUBLE, 0, 255.0, SYNAPTICS_PROP_SPEED, 0, /*float */ 0},
|
||||
{"MaxSpeed", PT_DOUBLE, 0, 255.0, SYNAPTICS_PROP_SPEED, 0, /*float */ 1},
|
||||
{"AccelFactor", PT_DOUBLE, 0, 1.0, SYNAPTICS_PROP_SPEED, 0, /*float */ 2},
|
||||
{"UpDownScrolling", PT_BOOL, 0, 1, SYNAPTICS_PROP_BUTTONSCROLLING, 8, 0},
|
||||
{"LeftRightScrolling", PT_BOOL, 0, 1, SYNAPTICS_PROP_BUTTONSCROLLING, 8, 1},
|
||||
{"UpDownScrollRepeat", PT_BOOL, 0, 1, SYNAPTICS_PROP_BUTTONSCROLLING_REPEAT, 8, 0},
|
||||
{"LeftRightScrollRepeat", PT_BOOL, 0, 1, SYNAPTICS_PROP_BUTTONSCROLLING_REPEAT, 8, 1},
|
||||
{"ScrollButtonRepeat", PT_INT, SBR_MIN , SBR_MAX, SYNAPTICS_PROP_BUTTONSCROLLING_TIME, 32, 0},
|
||||
{"TouchpadOff", PT_INT, 0, 2, SYNAPTICS_PROP_OFF, 8, 0},
|
||||
{"LockedDrags", PT_BOOL, 0, 1, SYNAPTICS_PROP_LOCKED_DRAGS, 8, 0},
|
||||
{"LockedDragTimeout", PT_INT, 0, 30000, SYNAPTICS_PROP_LOCKED_DRAGS_TIMEOUT, 32, 0},
|
||||
{"RTCornerButton", PT_INT, 0, SYN_MAX_BUTTONS, SYNAPTICS_PROP_TAP_ACTION, 8, 0},
|
||||
{"RBCornerButton", PT_INT, 0, SYN_MAX_BUTTONS, SYNAPTICS_PROP_TAP_ACTION, 8, 1},
|
||||
{"LTCornerButton", PT_INT, 0, SYN_MAX_BUTTONS, SYNAPTICS_PROP_TAP_ACTION, 8, 2},
|
||||
{"LBCornerButton", PT_INT, 0, SYN_MAX_BUTTONS, SYNAPTICS_PROP_TAP_ACTION, 8, 3},
|
||||
{"TapButton1", PT_INT, 0, SYN_MAX_BUTTONS, SYNAPTICS_PROP_TAP_ACTION, 8, 4},
|
||||
{"TapButton2", PT_INT, 0, SYN_MAX_BUTTONS, SYNAPTICS_PROP_TAP_ACTION, 8, 5},
|
||||
{"TapButton3", PT_INT, 0, SYN_MAX_BUTTONS, SYNAPTICS_PROP_TAP_ACTION, 8, 6},
|
||||
{"ClickFinger1", PT_INT, 0, SYN_MAX_BUTTONS, SYNAPTICS_PROP_CLICK_ACTION, 8, 0},
|
||||
{"ClickFinger2", PT_INT, 0, SYN_MAX_BUTTONS, SYNAPTICS_PROP_CLICK_ACTION, 8, 1},
|
||||
{"ClickFinger3", PT_INT, 0, SYN_MAX_BUTTONS, SYNAPTICS_PROP_CLICK_ACTION, 8, 2},
|
||||
{"CircularScrolling", PT_BOOL, 0, 1, SYNAPTICS_PROP_CIRCULAR_SCROLLING, 8, 0},
|
||||
{"CircScrollDelta", PT_DOUBLE, .01, 3, SYNAPTICS_PROP_CIRCULAR_SCROLLING_DIST, 0 /* float */, 0},
|
||||
{"CircScrollTrigger", PT_INT, 0, 8, SYNAPTICS_PROP_CIRCULAR_SCROLLING_TRIGGER, 8, 0},
|
||||
{"CircularPad", PT_BOOL, 0, 1, SYNAPTICS_PROP_CIRCULAR_PAD, 8, 0},
|
||||
{"PalmDetect", PT_BOOL, 0, 1, SYNAPTICS_PROP_PALM_DETECT, 8, 0},
|
||||
{"PalmMinWidth", PT_INT, 0, 15, SYNAPTICS_PROP_PALM_DIMENSIONS, 32, 0},
|
||||
{"PalmMinZ", PT_INT, 0, 255, SYNAPTICS_PROP_PALM_DIMENSIONS, 32, 1},
|
||||
{"CoastingSpeed", PT_DOUBLE, 0, 255, SYNAPTICS_PROP_COASTING_SPEED, 0 /* float*/, 0},
|
||||
{"CoastingFriction", PT_DOUBLE, 0, 255, SYNAPTICS_PROP_COASTING_SPEED, 0 /* float*/, 1},
|
||||
{"PressureMotionMinZ", PT_INT, 1, 255, SYNAPTICS_PROP_PRESSURE_MOTION, 32, 0},
|
||||
{"PressureMotionMaxZ", PT_INT, 1, 255, SYNAPTICS_PROP_PRESSURE_MOTION, 32, 1},
|
||||
{"PressureMotionMinFactor", PT_DOUBLE, 0, 10.0,SYNAPTICS_PROP_PRESSURE_MOTION_FACTOR, 0 /*float*/, 0},
|
||||
{"PressureMotionMaxFactor", PT_DOUBLE, 0, 10.0,SYNAPTICS_PROP_PRESSURE_MOTION_FACTOR, 0 /*float*/, 1},
|
||||
{"GrabEventDevice", PT_BOOL, 0, 1, SYNAPTICS_PROP_GRAB, 8, 0},
|
||||
{"TapAndDragGesture", PT_BOOL, 0, 1, SYNAPTICS_PROP_GESTURES, 8, 0},
|
||||
{"AreaLeftEdge", PT_INT, 0, 10000, SYNAPTICS_PROP_AREA, 32, 0},
|
||||
{"AreaRightEdge", PT_INT, 0, 10000, SYNAPTICS_PROP_AREA, 32, 1},
|
||||
{"AreaTopEdge", PT_INT, 0, 10000, SYNAPTICS_PROP_AREA, 32, 2},
|
||||
{"AreaBottomEdge", PT_INT, 0, 10000, SYNAPTICS_PROP_AREA, 32, 3},
|
||||
{"HorizHysteresis", PT_INT, 0, 10000, SYNAPTICS_PROP_NOISE_CANCELLATION, 32, 0},
|
||||
{"VertHysteresis", PT_INT, 0, 10000, SYNAPTICS_PROP_NOISE_CANCELLATION, 32, 1},
|
||||
{"ClickPad", PT_BOOL, 0, 1, SYNAPTICS_PROP_CLICKPAD, 8, 0},
|
||||
{"RightButtonAreaLeft", PT_INT, INT_MIN, INT_MAX, SYNAPTICS_PROP_SOFTBUTTON_AREAS, 32, 0},
|
||||
{"RightButtonAreaRight", PT_INT, INT_MIN, INT_MAX, SYNAPTICS_PROP_SOFTBUTTON_AREAS, 32, 1},
|
||||
{"RightButtonAreaTop", PT_INT, INT_MIN, INT_MAX, SYNAPTICS_PROP_SOFTBUTTON_AREAS, 32, 2},
|
||||
{"RightButtonAreaBottom", PT_INT, INT_MIN, INT_MAX, SYNAPTICS_PROP_SOFTBUTTON_AREAS, 32, 3},
|
||||
{"MiddleButtonAreaLeft", PT_INT, INT_MIN, INT_MAX, SYNAPTICS_PROP_SOFTBUTTON_AREAS, 32, 4},
|
||||
{"MiddleButtonAreaRight", PT_INT, INT_MIN, INT_MAX, SYNAPTICS_PROP_SOFTBUTTON_AREAS, 32, 5},
|
||||
{"MiddleButtonAreaTop", PT_INT, INT_MIN, INT_MAX, SYNAPTICS_PROP_SOFTBUTTON_AREAS, 32, 6},
|
||||
{"MiddleButtonAreaBottom", PT_INT, INT_MIN, INT_MAX, SYNAPTICS_PROP_SOFTBUTTON_AREAS, 32, 7},
|
||||
{ NULL, 0, 0, 0, 0 }
|
||||
};
|
||||
|
||||
static double
|
||||
parse_cmd(char *cmd, struct Parameter **par)
|
||||
{
|
||||
char *eqp = strchr(cmd, '=');
|
||||
|
||||
*par = NULL;
|
||||
|
||||
if (eqp) {
|
||||
int j;
|
||||
int found = 0;
|
||||
|
||||
*eqp = 0;
|
||||
for (j = 0; params[j].name; j++) {
|
||||
if (strcasecmp(cmd, params[j].name) == 0) {
|
||||
found = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (found) {
|
||||
double val = atof(&eqp[1]);
|
||||
|
||||
*par = ¶ms[j];
|
||||
|
||||
if (val < (*par)->min_val)
|
||||
val = (*par)->min_val;
|
||||
if (val > (*par)->max_val)
|
||||
val = (*par)->max_val;
|
||||
|
||||
return val;
|
||||
}
|
||||
else {
|
||||
printf("Unknown parameter %s\n", cmd);
|
||||
}
|
||||
}
|
||||
else {
|
||||
printf("Invalid command: %s\n", cmd);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/** Init display connection or NULL on error */
|
||||
static Display *
|
||||
dp_init()
|
||||
{
|
||||
Display *dpy = NULL;
|
||||
XExtensionVersion *v = NULL;
|
||||
Atom touchpad_type = 0;
|
||||
Atom synaptics_property = 0;
|
||||
int error = 0;
|
||||
|
||||
dpy = XOpenDisplay(NULL);
|
||||
if (!dpy) {
|
||||
fprintf(stderr, "Failed to connect to X Server.\n");
|
||||
error = 1;
|
||||
goto unwind;
|
||||
}
|
||||
|
||||
v = XGetExtensionVersion(dpy, INAME);
|
||||
if (!v->present ||
|
||||
(v->major_version * 1000 + v->minor_version) <
|
||||
(XI_Add_DeviceProperties_Major * 1000 +
|
||||
XI_Add_DeviceProperties_Minor)) {
|
||||
fprintf(stderr, "X server supports X Input %d.%d. I need %d.%d.\n",
|
||||
v->major_version, v->minor_version,
|
||||
XI_Add_DeviceProperties_Major, XI_Add_DeviceProperties_Minor);
|
||||
error = 1;
|
||||
goto unwind;
|
||||
}
|
||||
|
||||
/* We know synaptics sets XI_TOUCHPAD for all the devices. */
|
||||
touchpad_type = XInternAtom(dpy, XI_TOUCHPAD, True);
|
||||
if (!touchpad_type) {
|
||||
fprintf(stderr, "XI_TOUCHPAD not initialised.\n");
|
||||
error = 1;
|
||||
goto unwind;
|
||||
}
|
||||
|
||||
synaptics_property = XInternAtom(dpy, SYNAPTICS_PROP_EDGES, True);
|
||||
if (!synaptics_property) {
|
||||
fprintf(stderr, "Couldn't find synaptics properties. No synaptics "
|
||||
"driver loaded?\n");
|
||||
error = 1;
|
||||
goto unwind;
|
||||
}
|
||||
|
||||
unwind:
|
||||
XFree(v);
|
||||
if (error && dpy) {
|
||||
XCloseDisplay(dpy);
|
||||
dpy = NULL;
|
||||
}
|
||||
return dpy;
|
||||
}
|
||||
|
||||
static XDevice *
|
||||
dp_get_device(Display * dpy)
|
||||
{
|
||||
XDevice *dev = NULL;
|
||||
XDeviceInfo *info = NULL;
|
||||
int ndevices = 0;
|
||||
Atom touchpad_type = 0;
|
||||
Atom synaptics_property = 0;
|
||||
Atom *properties = NULL;
|
||||
int nprops = 0;
|
||||
int error = 0;
|
||||
|
||||
touchpad_type = XInternAtom(dpy, XI_TOUCHPAD, True);
|
||||
synaptics_property = XInternAtom(dpy, SYNAPTICS_PROP_EDGES, True);
|
||||
info = XListInputDevices(dpy, &ndevices);
|
||||
|
||||
while (ndevices--) {
|
||||
if (info[ndevices].type == touchpad_type) {
|
||||
dev = XOpenDevice(dpy, info[ndevices].id);
|
||||
if (!dev) {
|
||||
fprintf(stderr, "Failed to open device '%s'.\n",
|
||||
info[ndevices].name);
|
||||
error = 1;
|
||||
goto unwind;
|
||||
}
|
||||
|
||||
properties = XListDeviceProperties(dpy, dev, &nprops);
|
||||
if (!properties || !nprops) {
|
||||
fprintf(stderr, "No properties on device '%s'.\n",
|
||||
info[ndevices].name);
|
||||
error = 1;
|
||||
goto unwind;
|
||||
}
|
||||
|
||||
while (nprops--) {
|
||||
if (properties[nprops] == synaptics_property)
|
||||
break;
|
||||
}
|
||||
if (!nprops) {
|
||||
fprintf(stderr, "No synaptics properties on device '%s'.\n",
|
||||
info[ndevices].name);
|
||||
error = 1;
|
||||
goto unwind;
|
||||
}
|
||||
|
||||
break; /* Yay, device is suitable */
|
||||
}
|
||||
}
|
||||
|
||||
unwind:
|
||||
XFree(properties);
|
||||
XFreeDeviceList(info);
|
||||
if (!dev)
|
||||
fprintf(stderr, "Unable to find a synaptics device.\n");
|
||||
else if (error && dev) {
|
||||
XCloseDevice(dpy, dev);
|
||||
dev = NULL;
|
||||
}
|
||||
return dev;
|
||||
}
|
||||
|
||||
static void
|
||||
dp_set_variables(Display * dpy, XDevice * dev, int argc, char *argv[],
|
||||
int first_cmd)
|
||||
{
|
||||
int i;
|
||||
double val;
|
||||
struct Parameter *par;
|
||||
Atom prop, type, float_type;
|
||||
int format;
|
||||
unsigned char *data;
|
||||
unsigned long nitems, bytes_after;
|
||||
|
||||
union flong *f;
|
||||
long *n;
|
||||
char *b;
|
||||
|
||||
float_type = XInternAtom(dpy, XATOM_FLOAT, True);
|
||||
if (!float_type)
|
||||
fprintf(stderr, "Float properties not available.\n");
|
||||
|
||||
for (i = first_cmd; i < argc; i++) {
|
||||
val = parse_cmd(argv[i], &par);
|
||||
if (!par)
|
||||
continue;
|
||||
|
||||
prop = XInternAtom(dpy, par->prop_name, True);
|
||||
if (!prop) {
|
||||
fprintf(stderr, "Property for '%s' not available. Skipping.\n",
|
||||
par->name);
|
||||
continue;
|
||||
|
||||
}
|
||||
|
||||
XGetDeviceProperty(dpy, dev, prop, 0, 1000, False, AnyPropertyType,
|
||||
&type, &format, &nitems, &bytes_after, &data);
|
||||
|
||||
if (type == None) {
|
||||
fprintf(stderr, "Property for '%s' not available. Skipping.\n",
|
||||
par->name);
|
||||
continue;
|
||||
}
|
||||
|
||||
switch (par->prop_format) {
|
||||
case 8:
|
||||
if (format != par->prop_format || type != XA_INTEGER) {
|
||||
fprintf(stderr, " %-23s = format mismatch (%d)\n",
|
||||
par->name, format);
|
||||
break;
|
||||
}
|
||||
b = (char *) data;
|
||||
b[par->prop_offset] = rint(val);
|
||||
break;
|
||||
case 32:
|
||||
if (format != par->prop_format ||
|
||||
(type != XA_INTEGER && type != XA_CARDINAL)) {
|
||||
fprintf(stderr, " %-23s = format mismatch (%d)\n",
|
||||
par->name, format);
|
||||
break;
|
||||
}
|
||||
n = (long *) data;
|
||||
n[par->prop_offset] = rint(val);
|
||||
break;
|
||||
case 0: /* float */
|
||||
if (!float_type)
|
||||
continue;
|
||||
if (format != 32 || type != float_type) {
|
||||
fprintf(stderr, " %-23s = format mismatch (%d)\n",
|
||||
par->name, format);
|
||||
break;
|
||||
}
|
||||
f = (union flong *) data;
|
||||
f[par->prop_offset].f = val;
|
||||
break;
|
||||
}
|
||||
|
||||
XChangeDeviceProperty(dpy, dev, prop, type, format,
|
||||
PropModeReplace, data, nitems);
|
||||
XFlush(dpy);
|
||||
}
|
||||
}
|
||||
|
||||
/* FIXME: horribly inefficient. */
|
||||
static void
|
||||
dp_show_settings(Display * dpy, XDevice * dev)
|
||||
{
|
||||
int j;
|
||||
Atom a, type, float_type;
|
||||
int format;
|
||||
unsigned long nitems, bytes_after;
|
||||
unsigned char *data;
|
||||
int len;
|
||||
|
||||
union flong *f;
|
||||
long *i;
|
||||
char *b;
|
||||
|
||||
float_type = XInternAtom(dpy, XATOM_FLOAT, True);
|
||||
if (!float_type)
|
||||
fprintf(stderr, "Float properties not available.\n");
|
||||
|
||||
printf("Parameter settings:\n");
|
||||
for (j = 0; params[j].name; j++) {
|
||||
struct Parameter *par = ¶ms[j];
|
||||
|
||||
a = XInternAtom(dpy, par->prop_name, True);
|
||||
if (!a)
|
||||
continue;
|
||||
|
||||
len =
|
||||
1 +
|
||||
((par->prop_offset * (par->prop_format ? par->prop_format : 32) /
|
||||
8)) / 4;
|
||||
|
||||
XGetDeviceProperty(dpy, dev, a, 0, len, False,
|
||||
AnyPropertyType, &type, &format,
|
||||
&nitems, &bytes_after, &data);
|
||||
if (type == None)
|
||||
continue;
|
||||
|
||||
switch (par->prop_format) {
|
||||
case 8:
|
||||
if (format != par->prop_format || type != XA_INTEGER) {
|
||||
fprintf(stderr, " %-23s = format mismatch (%d)\n",
|
||||
par->name, format);
|
||||
break;
|
||||
}
|
||||
|
||||
b = (char *) data;
|
||||
printf(" %-23s = %d\n", par->name, b[par->prop_offset]);
|
||||
break;
|
||||
case 32:
|
||||
if (format != par->prop_format ||
|
||||
(type != XA_INTEGER && type != XA_CARDINAL)) {
|
||||
fprintf(stderr, " %-23s = format mismatch (%d)\n",
|
||||
par->name, format);
|
||||
break;
|
||||
}
|
||||
|
||||
i = (long *) data;
|
||||
printf(" %-23s = %ld\n", par->name, i[par->prop_offset]);
|
||||
break;
|
||||
case 0: /* Float */
|
||||
if (!float_type)
|
||||
continue;
|
||||
if (format != 32 || type != float_type) {
|
||||
fprintf(stderr, " %-23s = format mismatch (%d)\n",
|
||||
par->name, format);
|
||||
break;
|
||||
}
|
||||
|
||||
f = (union flong *) data;
|
||||
printf(" %-23s = %g\n", par->name, f[par->prop_offset].f);
|
||||
break;
|
||||
}
|
||||
|
||||
XFree(data);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "Usage: synclient [-h] [-l] [-V] [-?] [var1=value1 [var2=value2] ...]\n");
|
||||
fprintf(stderr, " -l List current user settings\n");
|
||||
fprintf(stderr, " -V Print synclient version string and exit\n");
|
||||
fprintf(stderr, " -? Show this help message\n");
|
||||
fprintf(stderr, " var=value Set user parameter 'var' to 'value'.\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
int c;
|
||||
int dump_settings = 0;
|
||||
int first_cmd;
|
||||
|
||||
Display *dpy;
|
||||
XDevice *dev;
|
||||
|
||||
if (argc == 1)
|
||||
dump_settings = 1;
|
||||
|
||||
/* Parse command line parameters */
|
||||
while ((c = getopt(argc, argv, "lV?")) != -1) {
|
||||
switch (c) {
|
||||
case 'l':
|
||||
dump_settings = 1;
|
||||
break;
|
||||
case 'V':
|
||||
printf("%s\n", VERSION);
|
||||
exit(0);
|
||||
case '?':
|
||||
default:
|
||||
usage();
|
||||
}
|
||||
}
|
||||
|
||||
first_cmd = optind;
|
||||
if (!dump_settings && first_cmd == argc)
|
||||
usage();
|
||||
|
||||
dpy = dp_init();
|
||||
if (!dpy || !(dev = dp_get_device(dpy)))
|
||||
return 1;
|
||||
|
||||
dp_set_variables(dpy, dev, argc, argv, first_cmd);
|
||||
if (dump_settings)
|
||||
dp_show_settings(dpy, dev);
|
||||
|
||||
XCloseDevice(dpy, dev);
|
||||
XCloseDisplay(dpy);
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,676 @@
|
|||
/*
|
||||
* Copyright © 2003-2004 Peter Osterlund
|
||||
*
|
||||
* Permission to use, copy, modify, distribute, and sell this software
|
||||
* and its documentation for any purpose is hereby granted without
|
||||
* fee, provided that the above copyright notice appear in all copies
|
||||
* and that both that copyright notice and this permission notice
|
||||
* appear in supporting documentation, and that the name of Red Hat
|
||||
* not be used in advertising or publicity pertaining to distribution
|
||||
* of the software without specific, written prior permission. Red
|
||||
* Hat makes no representations about the suitability of this software
|
||||
* for any purpose. It is provided "as is" without express or implied
|
||||
* warranty.
|
||||
*
|
||||
* THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
|
||||
* NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*
|
||||
* Authors:
|
||||
* Peter Osterlund (petero2@telia.com)
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xatom.h>
|
||||
#include <X11/extensions/XInput.h>
|
||||
#ifdef HAVE_X11_EXTENSIONS_RECORD_H
|
||||
#include <X11/Xproto.h>
|
||||
#include <X11/extensions/record.h>
|
||||
#endif /* HAVE_X11_EXTENSIONS_RECORD_H */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "synaptics-properties.h"
|
||||
|
||||
enum KeyboardActivity {
|
||||
ActivityNew,
|
||||
ActivityNone,
|
||||
ActivityReset
|
||||
};
|
||||
|
||||
enum TouchpadState {
|
||||
TouchpadOn = 0,
|
||||
TouchpadOff = 1,
|
||||
TappingOff = 2
|
||||
};
|
||||
|
||||
static Bool pad_disabled
|
||||
/* internal flag, this does not correspond to device state */ ;
|
||||
static int ignore_modifier_combos;
|
||||
static int ignore_modifier_keys;
|
||||
static int background;
|
||||
static const char *pid_file;
|
||||
static Display *display;
|
||||
static XDevice *dev;
|
||||
static Atom touchpad_off_prop;
|
||||
static enum TouchpadState previous_state;
|
||||
static enum TouchpadState disable_state = TouchpadOff;
|
||||
static int verbose;
|
||||
|
||||
#define KEYMAP_SIZE 32
|
||||
static unsigned char keyboard_mask[KEYMAP_SIZE];
|
||||
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr,
|
||||
"Usage: syndaemon [-i idle-time] [-m poll-delay] [-d] [-t] [-k]\n");
|
||||
fprintf(stderr,
|
||||
" -i How many seconds to wait after the last key press before\n");
|
||||
fprintf(stderr, " enabling the touchpad. (default is 2.0s)\n");
|
||||
fprintf(stderr, " -m How many milli-seconds to wait until next poll.\n");
|
||||
fprintf(stderr, " (default is 200ms)\n");
|
||||
fprintf(stderr, " -d Start as a daemon, i.e. in the background.\n");
|
||||
fprintf(stderr, " -p Create a pid file with the specified name.\n");
|
||||
fprintf(stderr,
|
||||
" -t Only disable tapping and scrolling, not mouse movements.\n");
|
||||
fprintf(stderr,
|
||||
" -k Ignore modifier keys when monitoring keyboard activity.\n");
|
||||
fprintf(stderr, " -K Like -k but also ignore Modifier+Key combos.\n");
|
||||
fprintf(stderr, " -R Use the XRecord extension.\n");
|
||||
fprintf(stderr, " -v Print diagnostic messages.\n");
|
||||
fprintf(stderr, " -? Show this help message.\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
static void
|
||||
store_current_touchpad_state(void)
|
||||
{
|
||||
Atom real_type;
|
||||
int real_format;
|
||||
unsigned long nitems, bytes_after;
|
||||
unsigned char *data;
|
||||
|
||||
if ((XGetDeviceProperty(display, dev, touchpad_off_prop, 0, 1, False,
|
||||
XA_INTEGER, &real_type, &real_format, &nitems,
|
||||
&bytes_after, &data) == Success) &&
|
||||
(real_type != None)) {
|
||||
previous_state = data[0];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle touchpad enabled/disabled state, decided by value.
|
||||
*/
|
||||
static void
|
||||
toggle_touchpad(Bool enable)
|
||||
{
|
||||
unsigned char data;
|
||||
|
||||
if (pad_disabled && enable) {
|
||||
data = previous_state;
|
||||
pad_disabled = False;
|
||||
if (verbose)
|
||||
printf("Enable\n");
|
||||
}
|
||||
else if (!pad_disabled && !enable &&
|
||||
previous_state != disable_state && previous_state != TouchpadOff) {
|
||||
store_current_touchpad_state();
|
||||
pad_disabled = True;
|
||||
data = disable_state;
|
||||
if (verbose)
|
||||
printf("Disable\n");
|
||||
}
|
||||
else
|
||||
return;
|
||||
|
||||
/* This potentially overwrites a different client's setting, but ... */
|
||||
XChangeDeviceProperty(display, dev, touchpad_off_prop, XA_INTEGER, 8,
|
||||
PropModeReplace, &data, 1);
|
||||
XFlush(display);
|
||||
}
|
||||
|
||||
static void
|
||||
signal_handler(int signum)
|
||||
{
|
||||
toggle_touchpad(True);
|
||||
|
||||
if (pid_file)
|
||||
unlink(pid_file);
|
||||
kill(getpid(), signum);
|
||||
}
|
||||
|
||||
static void
|
||||
install_signal_handler(void)
|
||||
{
|
||||
static int signals[] = {
|
||||
SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGTRAP, SIGABRT,
|
||||
SIGBUS, SIGFPE, SIGUSR1, SIGSEGV, SIGUSR2, SIGPIPE,
|
||||
SIGALRM, SIGTERM,
|
||||
#ifdef SIGPWR
|
||||
SIGPWR
|
||||
#endif
|
||||
};
|
||||
int i;
|
||||
struct sigaction act;
|
||||
sigset_t set;
|
||||
|
||||
sigemptyset(&set);
|
||||
act.sa_handler = signal_handler;
|
||||
act.sa_mask = set;
|
||||
#ifdef SA_RESETHAND
|
||||
act.sa_flags = SA_RESETHAND;
|
||||
#else
|
||||
act.sa_flags = 0;
|
||||
#endif
|
||||
|
||||
for (i = 0; i < sizeof(signals) / sizeof(int); i++) {
|
||||
if (sigaction(signals[i], &act, NULL) == -1) {
|
||||
perror("sigaction");
|
||||
exit(2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static enum KeyboardActivity
|
||||
keyboard_activity(Display * display)
|
||||
{
|
||||
static unsigned char old_key_state[KEYMAP_SIZE];
|
||||
unsigned char key_state[KEYMAP_SIZE];
|
||||
int i;
|
||||
int ret = ActivityNone;
|
||||
|
||||
XQueryKeymap(display, (char *) key_state);
|
||||
|
||||
for (i = 0; i < KEYMAP_SIZE; i++) {
|
||||
if ((key_state[i] & ~old_key_state[i]) & keyboard_mask[i]) {
|
||||
ret = ActivityNew;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (ignore_modifier_combos) {
|
||||
for (i = 0; i < KEYMAP_SIZE; i++) {
|
||||
if (key_state[i] & ~keyboard_mask[i]) {
|
||||
if (old_key_state[i] & ~keyboard_mask[i])
|
||||
ret = ActivityNone;
|
||||
else
|
||||
ret = ActivityReset;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (i = 0; i < KEYMAP_SIZE; i++)
|
||||
old_key_state[i] = key_state[i];
|
||||
return ret;
|
||||
}
|
||||
|
||||
static double
|
||||
get_time(void)
|
||||
{
|
||||
struct timeval tv;
|
||||
|
||||
gettimeofday(&tv, NULL);
|
||||
return tv.tv_sec + tv.tv_usec / 1000000.0;
|
||||
}
|
||||
|
||||
static void
|
||||
main_loop(Display * display, double idle_time, int poll_delay)
|
||||
{
|
||||
double last_activity = 0.0;
|
||||
double current_time;
|
||||
|
||||
keyboard_activity(display);
|
||||
|
||||
for (;;) {
|
||||
current_time = get_time();
|
||||
switch (keyboard_activity(display)) {
|
||||
case ActivityNew:
|
||||
last_activity = current_time;
|
||||
break;
|
||||
case ActivityNone:
|
||||
/* NOP */;
|
||||
break;
|
||||
case ActivityReset:
|
||||
last_activity = 0.0;
|
||||
break;
|
||||
}
|
||||
|
||||
/* If system times goes backwards, touchpad can get locked. Make
|
||||
* sure our last activity wasn't in the future and reset if it was. */
|
||||
if (last_activity > current_time)
|
||||
last_activity = current_time - idle_time - 1;
|
||||
|
||||
if (current_time > last_activity + idle_time) { /* Enable touchpad */
|
||||
toggle_touchpad(True);
|
||||
}
|
||||
else { /* Disable touchpad */
|
||||
toggle_touchpad(False);
|
||||
}
|
||||
|
||||
usleep(poll_delay);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
clear_bit(unsigned char *ptr, int bit)
|
||||
{
|
||||
int byte_num = bit / 8;
|
||||
int bit_num = bit % 8;
|
||||
|
||||
ptr[byte_num] &= ~(1 << bit_num);
|
||||
}
|
||||
|
||||
static void
|
||||
setup_keyboard_mask(Display * display, int ignore_modifier_keys)
|
||||
{
|
||||
XModifierKeymap *modifiers;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < KEYMAP_SIZE; i++)
|
||||
keyboard_mask[i] = 0xff;
|
||||
|
||||
if (ignore_modifier_keys) {
|
||||
modifiers = XGetModifierMapping(display);
|
||||
for (i = 0; i < 8 * modifiers->max_keypermod; i++) {
|
||||
KeyCode kc = modifiers->modifiermap[i];
|
||||
|
||||
if (kc != 0)
|
||||
clear_bit(keyboard_mask, kc);
|
||||
}
|
||||
XFreeModifiermap(modifiers);
|
||||
}
|
||||
}
|
||||
|
||||
/* ---- the following code is for using the xrecord extension ----- */
|
||||
#ifdef HAVE_X11_EXTENSIONS_RECORD_H
|
||||
|
||||
#define MAX_MODIFIERS 16
|
||||
|
||||
/* used for exchanging information with the callback function */
|
||||
struct xrecord_callback_results {
|
||||
XModifierKeymap *modifiers;
|
||||
Bool key_event;
|
||||
Bool non_modifier_event;
|
||||
KeyCode pressed_modifiers[MAX_MODIFIERS];
|
||||
};
|
||||
|
||||
/* test if the xrecord extension is found */
|
||||
Bool
|
||||
check_xrecord(Display * display)
|
||||
{
|
||||
|
||||
Bool found;
|
||||
Status status;
|
||||
int major_opcode, minor_opcode, first_error;
|
||||
int version[2];
|
||||
|
||||
found = XQueryExtension(display,
|
||||
"RECORD",
|
||||
&major_opcode, &minor_opcode, &first_error);
|
||||
|
||||
status = XRecordQueryVersion(display, version, version + 1);
|
||||
if (verbose && status) {
|
||||
printf("X RECORD extension version %d.%d\n", version[0], version[1]);
|
||||
}
|
||||
return found;
|
||||
}
|
||||
|
||||
/* called by XRecordProcessReplies() */
|
||||
void
|
||||
xrecord_callback(XPointer closure, XRecordInterceptData * recorded_data)
|
||||
{
|
||||
|
||||
struct xrecord_callback_results *cbres;
|
||||
xEvent *xev;
|
||||
int nxev;
|
||||
|
||||
cbres = (struct xrecord_callback_results *) closure;
|
||||
|
||||
if (recorded_data->category != XRecordFromServer) {
|
||||
XRecordFreeData(recorded_data);
|
||||
return;
|
||||
}
|
||||
|
||||
nxev = recorded_data->data_len / 8;
|
||||
xev = (xEvent *) recorded_data->data;
|
||||
while (nxev--) {
|
||||
|
||||
if ((xev->u.u.type == KeyPress) || (xev->u.u.type == KeyRelease)) {
|
||||
int i;
|
||||
int is_modifier = 0;
|
||||
|
||||
cbres->key_event = 1; /* remember, a key was pressed or released. */
|
||||
|
||||
/* test if it was a modifier */
|
||||
for (i = 0; i < 8 * cbres->modifiers->max_keypermod; i++) {
|
||||
KeyCode kc = cbres->modifiers->modifiermap[i];
|
||||
|
||||
if (kc == xev->u.u.detail) {
|
||||
is_modifier = 1; /* yes, it is a modifier. */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (is_modifier) {
|
||||
if (xev->u.u.type == KeyPress) {
|
||||
for (i = 0; i < MAX_MODIFIERS; ++i)
|
||||
if (!cbres->pressed_modifiers[i]) {
|
||||
cbres->pressed_modifiers[i] = xev->u.u.detail;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else { /* KeyRelease */
|
||||
for (i = 0; i < MAX_MODIFIERS; ++i)
|
||||
if (cbres->pressed_modifiers[i] == xev->u.u.detail)
|
||||
cbres->pressed_modifiers[i] = 0;
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
/* remember, a non-modifier was pressed. */
|
||||
cbres->non_modifier_event = 1;
|
||||
}
|
||||
}
|
||||
|
||||
xev++;
|
||||
}
|
||||
|
||||
XRecordFreeData(recorded_data); /* cleanup */
|
||||
}
|
||||
|
||||
static int
|
||||
is_modifier_pressed(const struct xrecord_callback_results *cbres)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < MAX_MODIFIERS; ++i)
|
||||
if (cbres->pressed_modifiers[i])
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
record_main_loop(Display * display, double idle_time)
|
||||
{
|
||||
|
||||
struct xrecord_callback_results cbres;
|
||||
XRecordContext context;
|
||||
XRecordClientSpec cspec = XRecordAllClients;
|
||||
Display *dpy_data;
|
||||
XRecordRange *range;
|
||||
int i;
|
||||
|
||||
dpy_data = XOpenDisplay(NULL); /* we need an additional data connection. */
|
||||
range = XRecordAllocRange();
|
||||
|
||||
range->device_events.first = KeyPress;
|
||||
range->device_events.last = KeyRelease;
|
||||
|
||||
context = XRecordCreateContext(dpy_data, 0, &cspec, 1, &range, 1);
|
||||
|
||||
XRecordEnableContextAsync(dpy_data, context, xrecord_callback,
|
||||
(XPointer) & cbres);
|
||||
|
||||
cbres.modifiers = XGetModifierMapping(display);
|
||||
/* clear list of modifiers */
|
||||
for (i = 0; i < MAX_MODIFIERS; ++i)
|
||||
cbres.pressed_modifiers[i] = 0;
|
||||
|
||||
while (1) {
|
||||
|
||||
int fd = ConnectionNumber(dpy_data);
|
||||
fd_set read_fds;
|
||||
int ret;
|
||||
int disable_event = 0;
|
||||
int modifier_event = 0;
|
||||
struct timeval timeout;
|
||||
|
||||
FD_ZERO(&read_fds);
|
||||
FD_SET(fd, &read_fds);
|
||||
|
||||
ret = select(fd + 1 /* =(max descriptor in read_fds) + 1 */ ,
|
||||
&read_fds, NULL, NULL,
|
||||
pad_disabled ? &timeout : NULL
|
||||
/* timeout only required for enabling */ );
|
||||
|
||||
if (FD_ISSET(fd, &read_fds)) {
|
||||
|
||||
cbres.key_event = 0;
|
||||
cbres.non_modifier_event = 0;
|
||||
|
||||
XRecordProcessReplies(dpy_data);
|
||||
|
||||
/* If there are any events left over, they are in error. Drain them
|
||||
* from the connection queue so we don't get stuck. */
|
||||
while (XEventsQueued(dpy_data, QueuedAlready) > 0) {
|
||||
XEvent event;
|
||||
|
||||
XNextEvent(dpy_data, &event);
|
||||
fprintf(stderr, "bad event received, major opcode %d\n",
|
||||
event.type);
|
||||
}
|
||||
|
||||
if (!ignore_modifier_keys && cbres.key_event) {
|
||||
disable_event = 1;
|
||||
}
|
||||
|
||||
if (cbres.non_modifier_event) {
|
||||
if (ignore_modifier_combos && is_modifier_pressed(&cbres)) {
|
||||
modifier_event = 1;
|
||||
} else {
|
||||
disable_event = 1;
|
||||
}
|
||||
} else if (ignore_modifier_keys) {
|
||||
modifier_event = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (disable_event) {
|
||||
/* adjust the enable_time */
|
||||
timeout.tv_sec = (int) idle_time;
|
||||
timeout.tv_usec = (idle_time - (double) timeout.tv_sec) * 1.e6;
|
||||
|
||||
toggle_touchpad(False);
|
||||
}
|
||||
|
||||
if (modifier_event && pad_disabled) {
|
||||
toggle_touchpad(True);
|
||||
}
|
||||
|
||||
if (ret == 0 && pad_disabled) { /* timeout => enable event */
|
||||
toggle_touchpad(True);
|
||||
}
|
||||
} /* end while(1) */
|
||||
|
||||
XFreeModifiermap(cbres.modifiers);
|
||||
}
|
||||
#endif /* HAVE_X11_EXTENSIONS_RECORD_H */
|
||||
|
||||
static XDevice *
|
||||
dp_get_device(Display * dpy)
|
||||
{
|
||||
XDevice *dev = NULL;
|
||||
XDeviceInfo *info = NULL;
|
||||
int ndevices = 0;
|
||||
Atom touchpad_type = 0;
|
||||
Atom *properties = NULL;
|
||||
int nprops = 0;
|
||||
int error = 0;
|
||||
|
||||
touchpad_type = XInternAtom(dpy, XI_TOUCHPAD, True);
|
||||
touchpad_off_prop = XInternAtom(dpy, SYNAPTICS_PROP_OFF, True);
|
||||
info = XListInputDevices(dpy, &ndevices);
|
||||
|
||||
while (ndevices--) {
|
||||
if (info[ndevices].type == touchpad_type) {
|
||||
dev = XOpenDevice(dpy, info[ndevices].id);
|
||||
if (!dev) {
|
||||
fprintf(stderr, "Failed to open device '%s'.\n",
|
||||
info[ndevices].name);
|
||||
error = 1;
|
||||
goto unwind;
|
||||
}
|
||||
|
||||
properties = XListDeviceProperties(dpy, dev, &nprops);
|
||||
if (!properties || !nprops) {
|
||||
fprintf(stderr, "No properties on device '%s'.\n",
|
||||
info[ndevices].name);
|
||||
error = 1;
|
||||
goto unwind;
|
||||
}
|
||||
|
||||
while (nprops--) {
|
||||
if (properties[nprops] == touchpad_off_prop)
|
||||
break;
|
||||
}
|
||||
if (nprops < 0) {
|
||||
fprintf(stderr, "No synaptics properties on device '%s'.\n",
|
||||
info[ndevices].name);
|
||||
error = 1;
|
||||
goto unwind;
|
||||
}
|
||||
|
||||
break; /* Yay, device is suitable */
|
||||
}
|
||||
}
|
||||
|
||||
unwind:
|
||||
XFree(properties);
|
||||
XFreeDeviceList(info);
|
||||
if (!dev)
|
||||
fprintf(stderr, "Unable to find a synaptics device.\n");
|
||||
else if (error && dev) {
|
||||
XCloseDevice(dpy, dev);
|
||||
dev = NULL;
|
||||
}
|
||||
return dev;
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
double idle_time = 2.0;
|
||||
int poll_delay = 200000; /* 200 ms */
|
||||
int c;
|
||||
int use_xrecord = 0;
|
||||
|
||||
/* Parse command line parameters */
|
||||
while ((c = getopt(argc, argv, "i:m:dtp:kKR?v")) != EOF) {
|
||||
switch (c) {
|
||||
case 'i':
|
||||
idle_time = atof(optarg);
|
||||
break;
|
||||
case 'm':
|
||||
poll_delay = atoi(optarg) * 1000;
|
||||
break;
|
||||
case 'd':
|
||||
background = 1;
|
||||
break;
|
||||
case 't':
|
||||
disable_state = TappingOff;
|
||||
break;
|
||||
case 'p':
|
||||
pid_file = optarg;
|
||||
break;
|
||||
case 'k':
|
||||
ignore_modifier_keys = 1;
|
||||
break;
|
||||
case 'K':
|
||||
ignore_modifier_combos = 1;
|
||||
ignore_modifier_keys = 1;
|
||||
break;
|
||||
case 'R':
|
||||
use_xrecord = 1;
|
||||
break;
|
||||
case 'v':
|
||||
verbose = 1;
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
usage();
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (idle_time <= 0.0)
|
||||
usage();
|
||||
|
||||
/* Open a connection to the X server */
|
||||
display = XOpenDisplay(NULL);
|
||||
if (!display) {
|
||||
fprintf(stderr, "Can't open display.\n");
|
||||
exit(2);
|
||||
}
|
||||
|
||||
if (!(dev = dp_get_device(display)))
|
||||
exit(2);
|
||||
|
||||
/* Install a signal handler to restore synaptics parameters on exit */
|
||||
install_signal_handler();
|
||||
|
||||
if (background) {
|
||||
pid_t pid;
|
||||
|
||||
if ((pid = fork()) < 0) {
|
||||
perror("fork");
|
||||
exit(3);
|
||||
}
|
||||
else if (pid != 0)
|
||||
exit(0);
|
||||
|
||||
/* Child (daemon) is running here */
|
||||
setsid(); /* Become session leader */
|
||||
chdir("/"); /* In case the file system gets unmounted */
|
||||
umask(0); /* We don't want any surprises */
|
||||
if (pid_file) {
|
||||
FILE *fd = fopen(pid_file, "w");
|
||||
|
||||
if (!fd) {
|
||||
perror("Can't create pid file");
|
||||
exit(3);
|
||||
}
|
||||
fprintf(fd, "%d\n", getpid());
|
||||
fclose(fd);
|
||||
}
|
||||
}
|
||||
|
||||
pad_disabled = False;
|
||||
store_current_touchpad_state();
|
||||
|
||||
#ifdef HAVE_X11_EXTENSIONS_RECORD_H
|
||||
if (use_xrecord) {
|
||||
if (check_xrecord(display))
|
||||
record_main_loop(display, idle_time);
|
||||
else {
|
||||
fprintf(stderr, "Use of XRecord requested, but failed to "
|
||||
" initialize.\n");
|
||||
exit(4);
|
||||
}
|
||||
}
|
||||
else
|
||||
#endif /* HAVE_X11_EXTENSIONS_RECORD_H */
|
||||
{
|
||||
setup_keyboard_mask(display, ignore_modifier_keys);
|
||||
|
||||
/* Run the main loop */
|
||||
main_loop(display, idle_time, poll_delay);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* vim: set noexpandtab tabstop=8 shiftwidth=4: */
|
|
@ -0,0 +1,6 @@
|
|||
sdkdir=@sdkdir@
|
||||
|
||||
Name: synaptics
|
||||
Description: X.Org synaptics input driver.
|
||||
Version: @PACKAGE_VERSION@
|
||||
Cflags: -I${sdkdir}
|
Loading…
Reference in New Issue