1 # Copyright (c) 2007 Intel Corporation. All Rights Reserved.
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:
11 # The above copyright notice and this permission notice (including the
12 # next paragraph) shall be included in all copies or substantial portions
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.
24 DIST_SUBDIRS = $(SUBDIRS)
31 $(LIBVA_DEPS_CFLAGS) \
40 -module -avoid-version \
47 $(DRM_LIBS) -ldrm_intel \
67 gen75_picture_process.c \
71 gen9_post_processing.c \
73 i965_avc_hw_scoreboard.c\
75 i965_decoder_utils.c \
79 i965_encoder_utils.c \
84 i965_post_processing.c \
85 gen8_post_processing.c \
91 intel_batchbuffer_dump.c\
95 intel_media_common.c \
104 gen75_picture_process.h \
107 gen8_post_processing.h \
110 i965_avc_hw_scoreboard.h\
113 i965_decoder_utils.h \
117 i965_encoder_utils.h \
124 i965_post_processing.h \
128 intel_batchbuffer.h \
129 intel_batchbuffer_dump.h\
137 va_backend_compat.h \
141 i965_drv_video_la_LTLIBRARIES = i965_drv_video.la
142 i965_drv_video_ladir = $(LIBVA_DRIVERS_PATH)
143 i965_drv_video_la_CFLAGS = $(driver_cflags)
144 i965_drv_video_la_LDFLAGS = $(driver_ldflags)
145 i965_drv_video_la_LIBADD = $(driver_libs)
146 i965_drv_video_la_SOURCES = $(source_c)
147 noinst_HEADERS = $(source_h)
150 source_c += i965_output_dri.c
151 source_h += i965_output_dri.h
155 source_c += i965_output_wayland.c
156 source_h += i965_output_wayland.h
157 source_h += $(protocol_source_h)
158 driver_cflags += $(WAYLAND_CFLAGS)
162 VERSION_FILE = .VERSION
163 OLD_VERSION_FILE = $(VERSION_FILE).old
164 NEW_VERSION_FILE = $(VERSION_FILE).new
165 PKG_VERSION_FILE = $(VERSION_FILE).pkg
167 intel_version.h: gen-version
169 OV=`[ -f $(OLD_VERSION_FILE) ] && cat $(OLD_VERSION_FILE) || :`; \
170 NV=`cat $(NEW_VERSION_FILE)`; \
171 if [ "$$OV" != "$$NV" -o ! -f intel_version.h ]; then \
172 cp -f $(NEW_VERSION_FILE) $(OLD_VERSION_FILE); \
173 $(SED) -e "s|\@INTEL_DRIVER_GIT_VERSION\@|$${NV}|" \
174 $(srcdir)/intel_version.h.in > intel_version.h; \
178 @echo $(VERSION) > $(NEW_VERSION_FILE)
180 @[ -d $(top_srcdir)/.git ] && \
181 (cd $(top_srcdir) && $(GIT) describe --tags) > $(NEW_VERSION_FILE) || :
183 @[ -f $(srcdir)/$(PKG_VERSION_FILE) ] && \
184 cp -f $(srcdir)/$(PKG_VERSION_FILE) $(NEW_VERSION_FILE) || :
186 $(PKG_VERSION_FILE): $(NEW_VERSION_FILE)
189 BUILT_SOURCES += intel_version.h
190 EXTRA_DIST += intel_version.h.in $(PKG_VERSION_FILE)
193 protocol_source_h = wayland-drm-client-protocol.h
194 i965_output_wayland.c: $(protocol_source_h)
195 @wayland_scanner_rules@
197 DIST_SUBDIRS += wayland
199 # Extra clean files so that maintainer-clean removes *everything*
200 MAINTAINERCLEANFILES = Makefile.in config.h.in