Makefile.am revision b85037db
1b85037dbSmrg#  Copyright 2005 Adam Jackson.
2b85037dbSmrg#
3b85037dbSmrg#  Permission is hereby granted, free of charge, to any person obtaining a
4b85037dbSmrg#  copy of this software and associated documentation files (the "Software"),
5b85037dbSmrg#  to deal in the Software without restriction, including without limitation
6b85037dbSmrg#  on the rights to use, copy, modify, merge, publish, distribute, sub
7b85037dbSmrg#  license, and/or sell copies of the Software, and to permit persons to whom
8b85037dbSmrg#  the Software is furnished to do so, subject to the following conditions:
9b85037dbSmrg#
10b85037dbSmrg#  The above copyright notice and this permission notice (including the next
11b85037dbSmrg#  paragraph) shall be included in all copies or substantial portions of the
12b85037dbSmrg#  Software.
13b85037dbSmrg#
14b85037dbSmrg#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15b85037dbSmrg#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16b85037dbSmrg#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
17b85037dbSmrg#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18b85037dbSmrg#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19b85037dbSmrg#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20b85037dbSmrg
21b85037dbSmrg
22b85037dbSmrg# this is obnoxious:
23b85037dbSmrg# -module lets us name the module exactly how we want
24b85037dbSmrg# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
25b85037dbSmrg# _ladir passes a dummy rpath to libtool so the thing will actually link
26b85037dbSmrg# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
27b85037dbSmrg@DRIVER_NAME@_drv_la_LTLIBRARIES = @DRIVER_NAME@_drv.la
28b85037dbSmrg@DRIVER_NAME@_drv_la_LDFLAGS = -module -avoid-version
29b85037dbSmrg@DRIVER_NAME@_drv_ladir = @inputdir@
30b85037dbSmrg
31b85037dbSmrgAM_CPPFLAGS = -I$(top_srcdir)/include
32b85037dbSmrgAM_CFLAGS = $(XORG_CFLAGS)
33b85037dbSmrg
34b85037dbSmrg@DRIVER_NAME@_drv_la_SOURCES = @DRIVER_NAME@.c synapticsstr.h \
35b85037dbSmrg	alpscomm.c alpscomm.h \
36b85037dbSmrg	ps2comm.c ps2comm.h \
37b85037dbSmrg	synproto.h \
38b85037dbSmrg	properties.c
39b85037dbSmrg
40b85037dbSmrgif BUILD_EVENTCOMM
41b85037dbSmrg@DRIVER_NAME@_drv_la_SOURCES += \
42b85037dbSmrg	eventcomm.c eventcomm.h
43b85037dbSmrgendif
44b85037dbSmrg
45b85037dbSmrgif BUILD_PSMCOMM
46b85037dbSmrg@DRIVER_NAME@_drv_la_SOURCES += \
47b85037dbSmrg	psmcomm.c
48b85037dbSmrgendif
49b85037dbSmrg
50