Makefile.am 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. AM_CFLAGS = \
  21. @CWARNFLAGS@ \
  22. @NOWARNFLAGS@ \
  23. $(NULL)
  24. drivermandir = $(DRIVER_MAN_DIR)
  25. policydir = $(datarootdir)/polkit-1/actions
  26. if BUILD_TOOLS
  27. bin_PROGRAMS = intel-virtual-output
  28. driverman_DATA = intel-virtual-output.$(DRIVER_MAN_SUFFIX)
  29. endif
  30. if BUILD_BACKLIGHT_HELPER
  31. libexec_PROGRAMS = xf86-video-intel-backlight-helper
  32. nodist_policy_DATA = org.x.xf86-video-intel.backlight-helper.policy
  33. backlight_helper = $(libexecdir)/xf86-video-intel-backlight-helper
  34. install-exec-hook:
  35. -chown root $(DESTDIR)$(backlight_helper) && chmod u+s $(DESTDIR)$(backlight_helper)
  36. endif
  37. intel_virtual_output_CFLAGS = \
  38. @CWARNFLAGS@ \
  39. $(IVO_CFLAGS) \
  40. @NOWARNFLAGS@ \
  41. $(NULL)
  42. intel_virtual_output_SOURCES = \
  43. virtual.c \
  44. $(NULL)
  45. intel_virtual_output_LDADD = \
  46. $(IVO_LIBS) \
  47. $(NULL)
  48. xf86_video_intel_backlight_helper_SOURCES = \
  49. backlight_helper.c \
  50. $(NULL)
  51. EXTRA_DIST = intel-virtual-output.man org.x.xf86-video-intel.backlight-helper.policy.in
  52. CLEANFILES = $(driverman_DATA) $(nodist_policy_DATA)
  53. # String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
  54. SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
  55. .man.$(DRIVER_MAN_SUFFIX):
  56. $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@