OSDN Git Service

Merge branch 'master' into vaapi-ext
[android-x86/hardware-intel-common-vaapi.git] / src / Makefile.am
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 INCLUDES = \
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               \
44         $(DRM_LIBS) -ldrm_intel \
45         $(LIBVA_DEPS_LIBS)      \
46         $(LIBVA_X11_DEPS_LIBS)  \
47         $(NULL)
48
49 source_c = \
50         gen6_mfc.c              \
51         gen6_mfd.c              \
52         gen6_vme.c              \
53         gen7_mfd.c              \
54         i965_avc_bsd.c          \
55         i965_avc_hw_scoreboard.c\
56         i965_avc_ildb.c         \
57         i965_drv_video.c        \
58         i965_encoder.c          \
59         i965_encoder_utils.c    \
60         i965_media.c            \
61         i965_media_h264.c       \
62         i965_media_mpeg2.c      \
63         i965_post_processing.c  \
64         i965_render.c           \
65         intel_batchbuffer.c     \
66         intel_batchbuffer_dump.c\
67         intel_driver.c          \
68         intel_memman.c          \
69         object_heap.c           \
70         $(NULL)
71
72 source_h = \
73         gen6_mfc.h              \
74         gen6_mfd.h              \
75         gen6_vme.h              \
76         gen7_mfd.h              \
77         i965_avc_bsd.h          \
78         i965_avc_hw_scoreboard.h\
79         i965_avc_ildb.h         \
80         i965_defines.h          \
81         i965_drv_video.h        \
82         i965_encoder.h          \
83         i965_encoder_utils.h    \
84         i965_media.h            \
85         i965_media_h264.h       \
86         i965_media_mpeg2.h      \
87         i965_mutext.h           \
88         i965_post_processing.h  \
89         i965_render.h           \
90         i965_structs.h          \
91         intel_batchbuffer.h     \
92         intel_batchbuffer_dump.h\
93         intel_compiler.h        \
94         intel_driver.h          \
95         intel_memman.h          \
96         object_heap.h           \
97         $(NULL)
98
99 i965_drv_video_la_LTLIBRARIES   = i965_drv_video.la
100 i965_drv_video_ladir            = $(LIBVA_DRIVERS_PATH)
101 i965_drv_video_la_CFLAGS        = $(driver_cflags)
102 i965_drv_video_la_LDFLAGS       = $(driver_ldflags)
103 i965_drv_video_la_LIBADD        = $(driver_libs)
104 i965_drv_video_la_SOURCES       = $(source_c)
105 noinst_HEADERS                  = $(source_h)
106
107 # Extra clean files so that maintainer-clean removes *everything*
108 MAINTAINERCLEANFILES = Makefile.in config.h.in