Makefile.am revision 42542f5f
142542f5fSchristos#  Copyright 2005 Adam Jackson.
242542f5fSchristos#
342542f5fSchristos#  Permission is hereby granted, free of charge, to any person obtaining a
442542f5fSchristos#  copy of this software and associated documentation files (the "Software"),
542542f5fSchristos#  to deal in the Software without restriction, including without limitation
642542f5fSchristos#  on the rights to use, copy, modify, merge, publish, distribute, sub
742542f5fSchristos#  license, and/or sell copies of the Software, and to permit persons to whom
842542f5fSchristos#  the Software is furnished to do so, subject to the following conditions:
942542f5fSchristos#
1042542f5fSchristos#  The above copyright notice and this permission notice (including the next
1142542f5fSchristos#  paragraph) shall be included in all copies or substantial portions of the
1242542f5fSchristos#  Software.
1342542f5fSchristos#
1442542f5fSchristos#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1542542f5fSchristos#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1642542f5fSchristos#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
1742542f5fSchristos#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1842542f5fSchristos#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1942542f5fSchristos#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2042542f5fSchristos
2142542f5fSchristosAM_CFLAGS = \
2242542f5fSchristos	@CWARNFLAGS@ \
2342542f5fSchristos	@NOWARNFLAGS@ \
2442542f5fSchristos	$(NULL)
2542542f5fSchristos
2642542f5fSchristosdrivermandir = $(DRIVER_MAN_DIR)
2742542f5fSchristospolicydir = $(datarootdir)/polkit-1/actions
2842542f5fSchristos
2942542f5fSchristosif BUILD_TOOLS
3042542f5fSchristosbin_PROGRAMS = intel-virtual-output
3142542f5fSchristosdriverman_DATA = intel-virtual-output.$(DRIVER_MAN_SUFFIX)
3242542f5fSchristosendif
3342542f5fSchristos
3442542f5fSchristosif BUILD_BACKLIGHT_HELPER
3542542f5fSchristoslibexec_PROGRAMS = xf86-video-intel-backlight-helper
3642542f5fSchristosnodist_policy_DATA = org.x.xf86-video-intel.backlight-helper.policy
3742542f5fSchristos
3842542f5fSchristosbacklight_helper = $(libexecdir)/xf86-video-intel-backlight-helper
3942542f5fSchristosinstall-exec-hook:
4042542f5fSchristos	-chown root $(DESTDIR)$(backlight_helper) && chmod u+s $(DESTDIR)$(backlight_helper)
4142542f5fSchristosendif
4242542f5fSchristos
4342542f5fSchristosintel_virtual_output_CFLAGS = \
4442542f5fSchristos	@CWARNFLAGS@ \
4542542f5fSchristos	$(IVO_CFLAGS) \
4642542f5fSchristos	@NOWARNFLAGS@ \
4742542f5fSchristos	$(NULL)
4842542f5fSchristosintel_virtual_output_SOURCES = \
4942542f5fSchristos	virtual.c \
5042542f5fSchristos	$(NULL)
5142542f5fSchristosintel_virtual_output_LDADD = \
5242542f5fSchristos	$(IVO_LIBS) \
5342542f5fSchristos	$(NULL)
5442542f5fSchristos
5542542f5fSchristosxf86_video_intel_backlight_helper_SOURCES = \
5642542f5fSchristos	backlight_helper.c \
5742542f5fSchristos	$(NULL)
5842542f5fSchristos
5942542f5fSchristosEXTRA_DIST = intel-virtual-output.man org.x.xf86-video-intel.backlight-helper.policy.in
6042542f5fSchristosCLEANFILES = $(driverman_DATA) $(nodist_policy_DATA)
6142542f5fSchristos
6242542f5fSchristos# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
6342542f5fSchristosSUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
6442542f5fSchristos.man.$(DRIVER_MAN_SUFFIX):
6542542f5fSchristos	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
66