Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. # Copyright (c) 2007 Intel Corporation. All Rights Reserved.
  2. #
  3. # Permission is hereby granted, free of charge, to any person obtaining a
  4. # copy of this software and associated documentation files (the
  5. # "Software"), to deal in the Software without restriction, including
  6. # without limitation the rights to use, copy, modify, merge, publish,
  7. # distribute, sub license, and/or sell copies of the Software, and to
  8. # permit persons to whom the Software is furnished to do so, subject to
  9. # the following conditions:
  10. #
  11. # The above copyright notice and this permission notice (including the
  12. # next paragraph) shall be included in all copies or substantial portions
  13. # of the Software.
  14. #
  15. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  16. # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  17. # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
  18. # IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
  19. # ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  20. # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  21. # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  22.  
  23. SUBDIRS = shaders
  24.  
  25. AM_CPPFLAGS = \
  26.         -DPTHREADS              \
  27.         $(DRM_CFLAGS)           \
  28.         $(LIBVA_DEPS_CFLAGS)    \
  29.         $(NULL)
  30.  
  31. driver_cflags = \
  32.         -Wall                   \
  33.         -fvisibility=hidden     \
  34.         $(NULL)
  35.  
  36. driver_ldflags = \
  37.         -module -avoid-version  \
  38.         -no-undefined           \
  39.         -Wl,--no-undefined      \
  40.         $(NULL)
  41.  
  42. driver_libs = \
  43.         -lpthread -lm -ldl      \
  44.         $(DRM_LIBS) -ldrm_intel \
  45.         $(LIBVA_DEPS_LIBS)      \
  46.         $(NULL)
  47.  
  48. source_c = \
  49.         dso_utils.c             \
  50.         gen6_mfc.c              \
  51.         gen6_mfc_common.c       \
  52.         gen6_mfd.c              \
  53.         gen6_vme.c              \
  54.         gen7_vme.c              \
  55.         gen7_mfc.c              \
  56.         gen7_mfd.c              \
  57.         gen75_mfd.c             \
  58.         gen75_mfc.c             \
  59.         gen8_mfc.c              \
  60.         gen8_mfd.c              \
  61.         gen8_vme.c              \
  62.         gen75_picture_process.c \
  63.         gen75_vme.c             \
  64.         gen75_vpp_gpe.c         \
  65.         gen75_vpp_vebox.c       \
  66.         i965_avc_bsd.c          \
  67.         i965_avc_hw_scoreboard.c\
  68.         i965_avc_ildb.c         \
  69.         i965_decoder_utils.c    \
  70.         i965_device_info.c      \
  71.         i965_drv_video.c        \
  72.         i965_encoder.c          \
  73.         i965_encoder_utils.c    \
  74.         i965_media.c            \
  75.         i965_media_h264.c       \
  76.         i965_media_mpeg2.c      \
  77.         i965_gpe_utils.c        \
  78.         i965_post_processing.c  \
  79.         gen8_post_processing.c  \
  80.         i965_render.c           \
  81.         gen8_render.c           \
  82.         intel_batchbuffer.c     \
  83.         intel_batchbuffer_dump.c\
  84.         intel_driver.c          \
  85.         intel_memman.c          \
  86.         object_heap.c           \
  87.         intel_media_common.c            \
  88.         $(NULL)
  89.  
  90. source_h = \
  91.         dso_utils.h             \
  92.         gen6_mfc.h              \
  93.         gen6_mfd.h              \
  94.         gen6_vme.h              \
  95.         gen7_mfd.h              \
  96.         gen75_picture_process.h \
  97.         gen75_vpp_gpe.h         \
  98.         gen75_vpp_vebox.h       \
  99.         i965_avc_bsd.h          \
  100.         i965_avc_hw_scoreboard.h\
  101.         i965_avc_ildb.h         \
  102.         i965_decoder.h          \
  103.         i965_decoder_utils.h    \
  104.         i965_defines.h          \
  105.         i965_drv_video.h        \
  106.         i965_encoder.h          \
  107.         i965_encoder_utils.h    \
  108.         i965_media.h            \
  109.         i965_media_h264.h       \
  110.         i965_media_mpeg2.h      \
  111.         i965_mutext.h           \
  112.         i965_gpe_utils.h        \
  113.         i965_pciids.h           \
  114.         i965_post_processing.h  \
  115.         i965_render.h           \
  116.         i965_structs.h          \
  117.         intel_batchbuffer.h     \
  118.         intel_batchbuffer_dump.h\
  119.         intel_compiler.h        \
  120.         intel_driver.h          \
  121.         intel_media.h           \
  122.         intel_memman.h          \
  123.         object_heap.h           \
  124.         sysdeps.h               \
  125.         va_backend_compat.h     \
  126.         i965_fourcc.h           \
  127.         $(NULL)
  128.  
  129. i965_drv_video_la_LTLIBRARIES   = i965_drv_video.la
  130. i965_drv_video_ladir            = $(LIBVA_DRIVERS_PATH)
  131. i965_drv_video_la_CFLAGS        = $(driver_cflags)
  132. i965_drv_video_la_LDFLAGS       = $(driver_ldflags)
  133. i965_drv_video_la_LIBADD        = $(driver_libs)
  134. i965_drv_video_la_SOURCES       = $(source_c)
  135. noinst_HEADERS                  = $(source_h)
  136.  
  137. if USE_X11
  138. source_c                        += i965_output_dri.c
  139. source_h                        += i965_output_dri.h
  140. endif
  141.  
  142. if USE_WAYLAND
  143. source_c                        += i965_output_wayland.c
  144. source_h                        += i965_output_wayland.h
  145. driver_cflags                   += $(WAYLAND_CFLAGS)
  146. endif
  147.  
  148. # Wayland protocol
  149. protocol_source_h = wayland-drm-client-protocol.h
  150. i965_output_wayland.c: $(protocol_source_h)
  151. @wayland_scanner_rules@
  152.  
  153. DIST_SUBDIRS = $(SUBDIRS) wayland
  154.  
  155. # Extra clean files so that maintainer-clean removes *everything*
  156. MAINTAINERCLEANFILES = Makefile.in config.h.in
  157.