summaryrefslogtreecommitdiff
path: root/tools/Makefile.am
blob: 02a721e2f4bdbd410040e6e67a68a626197d84b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#  Copyright 2008 VMware, 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
#  VMWARE, INC. 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 = @DRIVER_NAME@_detect

AM_CPPFLAGS = -I$(top_srcdir)/shared $(XORG_CFLAGS)

@DRIVER_NAME@_detect_SOURCES = vmmouse_detect.c
@DRIVER_NAME@_detect_LDADD = $(top_builddir)/shared/lib@DRIVER_NAME@.la

calloutsdir=$(HAL_CALLOUTS_DIR)
callouts_SCRIPTS = hal-probe-vmmouse

hal-probe-vmmouse: hal-probe-vmmouse.in
	$(AM_V_GEN)$(SED) -e 's|__BIN_PREFIX__|$(bindir)|g' \
	    -e 's|__HAL_BIN_PREFIX__|$(HAL_BIN_DIR)|g' \
	    < hal-probe-vmmouse.in > $@

EXTRA_DIST = hal-probe-vmmouse.in

CLEANFILES = hal-probe-vmmouse

if HAS_XORG_CONF_DIR

confdir=$(XORG_CONF_DIR)
dist_conf_DATA = 50-vmmouse.conf

endif

if HAS_UDEV_RULES_DIR

udevdir=$(UDEV_RULES_DIR)
udev_DATA = 69-xorg-vmmouse.rules

$(udev_DATA): $(udev_DATA).in
	sed -e 's|__BIN_PREFIX__|$(bindir)|g' < $< > $@

EXTRA_DIST += $(udev_DATA).in
CLEANFILES += $(udev_DATA)

endif # HAS_UDEV_RULES_DIR