1 # Copyright 2015 Intel Corporation
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 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 # and/or sell copies of the Software, and to permit persons to whom the
8 # Software is furnished to do so, subject to the following conditions:
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
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 NONINFRINGEMENT. IN NO EVENT SHALL
17 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
32 noinst_LTLIBRARIES = $(ISL_GEN_LIBS) libisl.la
34 # The gallium includes are for the util/u_math.h include from main/macros.h
39 -I$(top_srcdir)/include \
41 -I$(top_srcdir)/src/intel \
42 -I$(top_srcdir)/src/mapi \
43 -I$(top_srcdir)/src/mesa \
44 -I$(top_srcdir)/src/mesa/drivers/dri/common \
45 -I$(top_srcdir)/src/mesa/drivers/dri/i965 \
46 -I$(top_srcdir)/src/gallium/auxiliary \
47 -I$(top_srcdir)/src/gallium/include \
48 -I$(top_builddir)/src \
49 -I$(top_builddir)/src/intel
51 libisl_la_CFLAGS = $(CFLAGS) -Wno-override-init
53 libisl_la_LIBADD = $(ISL_GEN_LIBS)
68 libisl_gen7_la_SOURCES = \
73 libisl_gen7_la_CFLAGS = $(libisl_la_CFLAGS) -DGEN_VERSIONx10=70
75 libisl_gen75_la_SOURCES = \
78 libisl_gen75_la_CFLAGS = $(libisl_la_CFLAGS) -DGEN_VERSIONx10=75
80 libisl_gen8_la_SOURCES = \
85 libisl_gen8_la_CFLAGS = $(libisl_la_CFLAGS) -DGEN_VERSIONx10=80
87 libisl_gen9_la_SOURCES = \
92 libisl_gen9_la_CFLAGS = $(libisl_la_CFLAGS) -DGEN_VERSIONx10=90
97 isl_format_layout.c: isl_format_layout_gen.bash \
99 $(AM_V_GEN)$(srcdir)/isl_format_layout_gen.bash \
100 <$(srcdir)/isl_format_layout.csv >$@
102 # ----------------------------------------------------------------------------
104 # ----------------------------------------------------------------------------
106 TESTS = tests/isl_surf_get_image_offset_test
108 check_PROGRAMS = $(TESTS)
110 # Link tests to lib965_compiler.la for brw_get_device_info().
113 $(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la \
116 tests_isl_surf_get_image_offset_test_SOURCES = \
117 tests/isl_surf_get_image_offset_test.c
118 tests_isl_surf_get_image_offset_test_LDADD = $(tests_ldadd)
120 # ----------------------------------------------------------------------------
122 include $(top_srcdir)/install-lib-links.mk
125 isl_format_layout_gen.bash \
126 isl_format_layout.csv \