Makefile.am revision 42542f5f
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
29if BUILD_TOOLS
30bin_PROGRAMS = intel-virtual-output
31driverman_DATA = intel-virtual-output.$(DRIVER_MAN_SUFFIX)
32endif
33
34if BUILD_BACKLIGHT_HELPER
35libexec_PROGRAMS = xf86-video-intel-backlight-helper
36nodist_policy_DATA = org.x.xf86-video-intel.backlight-helper.policy
37
38backlight_helper = $(libexecdir)/xf86-video-intel-backlight-helper
39install-exec-hook:
40	-chown root $(DESTDIR)$(backlight_helper) && chmod u+s $(DESTDIR)$(backlight_helper)
41endif
42
43intel_virtual_output_CFLAGS = \
44	@CWARNFLAGS@ \
45	$(IVO_CFLAGS) \
46	@NOWARNFLAGS@ \
47	$(NULL)
48intel_virtual_output_SOURCES = \
49	virtual.c \
50	$(NULL)
51intel_virtual_output_LDADD = \
52	$(IVO_LIBS) \
53	$(NULL)
54
55xf86_video_intel_backlight_helper_SOURCES = \
56	backlight_helper.c \
57	$(NULL)
58
59EXTRA_DIST = intel-virtual-output.man org.x.xf86-video-intel.backlight-helper.policy.in
60CLEANFILES = $(driverman_DATA) $(nodist_policy_DATA)
61
62# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
63SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
64.man.$(DRIVER_MAN_SUFFIX):
65	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
66