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 29fe8aea9eSmrgbin_PROGRAMS = 30fe8aea9eSmrgnoinst_PROGRAMS = 31fe8aea9eSmrglibexec_PROGRAMS = 32fe8aea9eSmrg 3342542f5fSchristosif BUILD_TOOLS 34fe8aea9eSmrgbin_PROGRAMS += intel-virtual-output 3542542f5fSchristosdriverman_DATA = intel-virtual-output.$(DRIVER_MAN_SUFFIX) 3642542f5fSchristosendif 3742542f5fSchristos 38fe8aea9eSmrgif BUILD_TOOL_CURSOR 39fe8aea9eSmrgnoinst_PROGRAMS += cursor 40fe8aea9eSmrgcursor_CFLAGS = $(TOOL_CURSOR_CFLAGS) 41fe8aea9eSmrgcursor_LDADD = $(TOOL_CURSOR_LIBS) 42fe8aea9eSmrgendif 43fe8aea9eSmrg 44fe8aea9eSmrgif X11_DRI3 45fe8aea9eSmrgnoinst_PROGRAMS += dri3info 46fe8aea9eSmrgdri3info_SOURCES = dri3info.c 47fe8aea9eSmrgdri3info_CFLAGS = $(X11_DRI3_CFLAGS) $(DRI_CFLAGS) 48fe8aea9eSmrgdri3info_LDADD = $(X11_DRI3_LIBS) $(DRI_LIBS) 49fe8aea9eSmrgendif 50fe8aea9eSmrg 5142542f5fSchristosif BUILD_BACKLIGHT_HELPER 52fe8aea9eSmrglibexec_PROGRAMS += xf86-video-intel-backlight-helper 5342542f5fSchristosnodist_policy_DATA = org.x.xf86-video-intel.backlight-helper.policy 5442542f5fSchristos 5542542f5fSchristosbacklight_helper = $(libexecdir)/xf86-video-intel-backlight-helper 5642542f5fSchristosinstall-exec-hook: 5742542f5fSchristos -chown root $(DESTDIR)$(backlight_helper) && chmod u+s $(DESTDIR)$(backlight_helper) 5842542f5fSchristosendif 5942542f5fSchristos 6042542f5fSchristosintel_virtual_output_CFLAGS = \ 6142542f5fSchristos @CWARNFLAGS@ \ 6242542f5fSchristos $(IVO_CFLAGS) \ 6342542f5fSchristos @NOWARNFLAGS@ \ 6442542f5fSchristos $(NULL) 6542542f5fSchristosintel_virtual_output_SOURCES = \ 6642542f5fSchristos virtual.c \ 6742542f5fSchristos $(NULL) 6842542f5fSchristosintel_virtual_output_LDADD = \ 6942542f5fSchristos $(IVO_LIBS) \ 7042542f5fSchristos $(NULL) 7142542f5fSchristos 7242542f5fSchristosxf86_video_intel_backlight_helper_SOURCES = \ 7342542f5fSchristos backlight_helper.c \ 7442542f5fSchristos $(NULL) 7542542f5fSchristos 7642542f5fSchristosEXTRA_DIST = intel-virtual-output.man org.x.xf86-video-intel.backlight-helper.policy.in 7742542f5fSchristosCLEANFILES = $(driverman_DATA) $(nodist_policy_DATA) 7842542f5fSchristos 7942542f5fSchristos# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure 8042542f5fSchristosSUFFIXES = .$(DRIVER_MAN_SUFFIX) .man 8142542f5fSchristos.man.$(DRIVER_MAN_SUFFIX): 8242542f5fSchristos $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ 83