1#  Copyright 2005 Adam Jackson.
2#
3#  Permission is hereby granted, free of charge, to any person obtaining a
4#  copy of this software and associated documentation files (the "Software"),
5#  to deal in the Software without restriction, including without limitation
6#  on the rights to use, copy, modify, merge, publish, distribute, sub
7#  license, and/or sell copies of the Software, and to permit persons to whom
8#  the Software is furnished to do so, subject to the following conditions:
9#
10#  The above copyright notice and this permission notice (including the next
11#  paragraph) shall be included in all copies or substantial portions of the
12#  Software.
13#
14#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
17#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21AM_CFLAGS = \
22	@CWARNFLAGS@ \
23	@NOWARNFLAGS@ \
24	$(NULL)
25
26drivermandir = $(DRIVER_MAN_DIR)
27policydir = $(datarootdir)/polkit-1/actions
28
29bin_PROGRAMS =
30noinst_PROGRAMS =
31libexec_PROGRAMS =
32
33if BUILD_TOOLS
34bin_PROGRAMS += intel-virtual-output
35driverman_DATA = intel-virtual-output.$(DRIVER_MAN_SUFFIX)
36endif
37
38if BUILD_TOOL_CURSOR
39noinst_PROGRAMS += cursor
40cursor_CFLAGS = $(TOOL_CURSOR_CFLAGS)
41cursor_LDADD = $(TOOL_CURSOR_LIBS)
42endif
43
44if X11_DRI3
45noinst_PROGRAMS += dri3info
46dri3info_SOURCES = dri3info.c
47dri3info_CFLAGS = $(X11_DRI3_CFLAGS) $(DRI_CFLAGS)
48dri3info_LDADD = $(X11_DRI3_LIBS) $(DRI_LIBS)
49endif
50
51if BUILD_BACKLIGHT_HELPER
52libexec_PROGRAMS += xf86-video-intel-backlight-helper
53nodist_policy_DATA = org.x.xf86-video-intel.backlight-helper.policy
54
55backlight_helper = $(libexecdir)/xf86-video-intel-backlight-helper
56install-exec-hook:
57	-chown root $(DESTDIR)$(backlight_helper) && chmod u+s $(DESTDIR)$(backlight_helper)
58endif
59
60intel_virtual_output_CFLAGS = \
61	@CWARNFLAGS@ \
62	$(IVO_CFLAGS) \
63	@NOWARNFLAGS@ \
64	$(NULL)
65intel_virtual_output_SOURCES = \
66	virtual.c \
67	$(NULL)
68intel_virtual_output_LDADD = \
69	$(IVO_LIBS) \
70	$(NULL)
71
72xf86_video_intel_backlight_helper_SOURCES = \
73	backlight_helper.c \
74	$(NULL)
75
76EXTRA_DIST = intel-virtual-output.man org.x.xf86-video-intel.backlight-helper.policy.in
77CLEANFILES = $(driverman_DATA) $(nodist_policy_DATA)
78
79# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
80SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
81.man.$(DRIVER_MAN_SUFFIX):
82	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
83