1659607e0Smrg#  Copyright 2005 Adam Jackson.
2659607e0Smrg#
3659607e0Smrg#  Permission is hereby granted, free of charge, to any person obtaining a
4659607e0Smrg#  copy of this software and associated documentation files (the "Software"),
5659607e0Smrg#  to deal in the Software without restriction, including without limitation
6659607e0Smrg#  on the rights to use, copy, modify, merge, publish, distribute, sub
7659607e0Smrg#  license, and/or sell copies of the Software, and to permit persons to whom
8659607e0Smrg#  the Software is furnished to do so, subject to the following conditions:
9659607e0Smrg#
10659607e0Smrg#  The above copyright notice and this permission notice (including the next
11659607e0Smrg#  paragraph) shall be included in all copies or substantial portions of the
12659607e0Smrg#  Software.
13659607e0Smrg#
14659607e0Smrg#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15659607e0Smrg#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16659607e0Smrg#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
17659607e0Smrg#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18659607e0Smrg#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19659607e0Smrg#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20659607e0Smrg
21a73597f9SmrgAM_CFLAGS = $(CWARNFLAGS)
22a73597f9SmrgAM_CPPFLAGS = -I$(top_srcdir)/include $(XORG_CFLAGS)
23659607e0Smrg
24659607e0Smrg# this is obnoxious:
25659607e0Smrg# -module lets us name the module exactly how we want
26659607e0Smrg# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
27659607e0Smrg# _ladir passes a dummy rpath to libtool so the thing will actually link
28659607e0Smrg# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
29659607e0Smrg@DRIVER_NAME@_drv_la_LTLIBRARIES = @DRIVER_NAME@_drv.la
30659607e0Smrg@DRIVER_NAME@_drv_la_LDFLAGS = -module -avoid-version
31659607e0Smrg@DRIVER_NAME@_drv_ladir = @inputdir@
32659607e0Smrg
336aab59a7Smrg# We have to list all the mouse drivers here, even if we don't build them, so
346aab59a7Smrg# they get included in distcheck.
356aab59a7SmrgOS_SRCS = bsd_mouse.c hurd_mouse.c lnx_mouse.c sun_mouse.c
366aab59a7Smrg
376aab59a7Smrg@DRIVER_NAME@_drv_la_SOURCES = \
386aab59a7Smrg	mouse.c \
396aab59a7Smrg	mouse.h \
406aab59a7Smrg	pnp.c \
416aab59a7Smrg	mousePriv.h \
42a73597f9Smrg	compat-api.h \
436aab59a7Smrg	@OS_MOUSE_NAME@_mouse.c
446aab59a7Smrg
456aab59a7SmrgEXTRA_DIST = $(OS_SRCS)
466aab59a7Smrg
476aab59a7Smrgif LINT
486aab59a7SmrgALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
496aab59a7Smrg                $(AM_CPPFLAGS) $(CPPFLAGS)
506aab59a7Smrg
516aab59a7Smrglint:
526aab59a7Smrg	$(LINT) $(ALL_LINT_FLAGS) $(@DRIVER_NAME@_drv_la_SOURCES)
536aab59a7Smrgendif LINT
54