diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | INSTALL | 25 | ||||
| -rw-r--r-- | Makefile.am | 2 | ||||
| -rwxr-xr-x | autogen.sh | 2 | ||||
| -rw-r--r-- | configure.ac | 7 |
5 files changed, 27 insertions, 10 deletions
| @@ -22,7 +22,6 @@ configure | |||
| 22 | configure.scan | 22 | configure.scan |
| 23 | depcomp | 23 | depcomp |
| 24 | .deps/ | 24 | .deps/ |
| 25 | INSTALL | ||
| 26 | install-sh | 25 | install-sh |
| 27 | .libs/ | 26 | .libs/ |
| 28 | libtool | 27 | libtool |
| @@ -0,0 +1,25 @@ | |||
| 1 | mtdev - Multitouch Protocol Translation Library (MIT license) | ||
| 2 | |||
| 3 | To build, you need to have the autoconf and libtool packages | ||
| 4 | installed. Then, do | ||
| 5 | |||
| 6 | ./autogen.sh | ||
| 7 | ./configure | ||
| 8 | make | ||
| 9 | |||
| 10 | To test an MT device at /dev/input/eventX, do | ||
| 11 | |||
| 12 | sudo ./test/mtdev-test /dev/input/eventX | ||
| 13 | |||
| 14 | You should be able to see MT events in the terminal. After five | ||
| 15 | seconds of inactivity, the program exits. | ||
| 16 | |||
| 17 | To install mtdev, do | ||
| 18 | |||
| 19 | sudo make install | ||
| 20 | |||
| 21 | By default, mtdev installs to /usr/local. To change, use the --prefix | ||
| 22 | configure option. | ||
| 23 | |||
| 24 | Enjoy, | ||
| 25 | Henrik | ||
diff --git a/Makefile.am b/Makefile.am index 5fb2b00..c175641 100644 --- a/Makefile.am +++ b/Makefile.am | |||
| @@ -9,6 +9,6 @@ INCLUDES = $(top_srcdir)/include/ | |||
| 9 | INSTALL: | 9 | INSTALL: |
| 10 | $(INSTALL_CMD) | 10 | $(INSTALL_CMD) |
| 11 | ChangeLog: | 11 | ChangeLog: |
| 12 | $(CHANGELOG_CMD) | 12 | git log > ChangeLog |
| 13 | 13 | ||
| 14 | dist-hook: ChangeLog INSTALL | 14 | dist-hook: ChangeLog INSTALL |
| @@ -8,5 +8,3 @@ cd $srcdir | |||
| 8 | 8 | ||
| 9 | autoreconf -v --install || exit 1 | 9 | autoreconf -v --install || exit 1 |
| 10 | cd $ORIGDIR || exit $? | 10 | cd $ORIGDIR || exit $? |
| 11 | |||
| 12 | $srcdir/configure --enable-maintainer-mode "$@" | ||
diff --git a/configure.ac b/configure.ac index e5bdb71..56a4794 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -6,6 +6,7 @@ AC_INIT([Multitouch Protocol Translation Library], | |||
| 6 | [mtdev]) | 6 | [mtdev]) |
| 7 | AC_CONFIG_SRCDIR([Makefile.am]) | 7 | AC_CONFIG_SRCDIR([Makefile.am]) |
| 8 | AC_CONFIG_HEADERS([config.h]) | 8 | AC_CONFIG_HEADERS([config.h]) |
| 9 | AC_CONFIG_AUX_DIR([config-aux]) | ||
| 9 | 10 | ||
| 10 | # Initialize Automake | 11 | # Initialize Automake |
| 11 | AM_INIT_AUTOMAKE([foreign dist-bzip2]) | 12 | AM_INIT_AUTOMAKE([foreign dist-bzip2]) |
| @@ -21,12 +22,6 @@ AC_PROG_LIBTOOL | |||
| 21 | AC_PROG_CC | 22 | AC_PROG_CC |
| 22 | AC_PROG_INSTALL | 23 | AC_PROG_INSTALL |
| 23 | 24 | ||
| 24 | # Initialize X.Org macros | ||
| 25 | m4_ifndef([XORG_MACROS_VERSION], | ||
| 26 | [m4_fatal([must install xorg-macros 1.5 or later before running autoconf/autogen])]) | ||
| 27 | XORG_MACROS_VERSION(1.5) | ||
| 28 | XORG_DEFAULT_OPTIONS | ||
| 29 | |||
| 30 | AC_CONFIG_FILES([Makefile | 25 | AC_CONFIG_FILES([Makefile |
| 31 | src/Makefile | 26 | src/Makefile |
| 32 | test/Makefile | 27 | test/Makefile |
