isl/tests: Use a longer path for isl.h
[mesa.git] / src / intel / isl / Makefile.am
1 # Copyright 2015-2016 Intel Corporation
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 # 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:
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 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
20 # IN THE SOFTWARE.
21
22 include Makefile.sources
23
24 ISL_GEN_LIBS = \
25 libisl-gen4.la \
26 libisl-gen5.la \
27 libisl-gen6.la \
28 libisl-gen7.la \
29 libisl-gen75.la \
30 libisl-gen8.la \
31 libisl-gen9.la \
32 $(NULL)
33
34 noinst_LTLIBRARIES = $(ISL_GEN_LIBS) libisl.la
35
36 # The gallium includes are for the util/u_math.h include from main/macros.h
37 AM_CPPFLAGS = \
38 $(INTEL_CFLAGS) \
39 $(VALGRIND_CFLAGS) \
40 $(DEFINES) \
41 -I$(top_srcdir)/include \
42 -I$(top_builddir)/src \
43 -I$(top_srcdir)/src \
44 -I$(top_builddir)/src/intel \
45 -I$(top_srcdir)/src/intel \
46 -I$(top_srcdir)/src/mapi \
47 -I$(top_srcdir)/src/mesa \
48 -I$(top_srcdir)/src/mesa/drivers/dri/i965 \
49 -I$(top_srcdir)/src/gallium/auxiliary \
50 -I$(top_srcdir)/src/gallium/include
51
52 AM_CFLAGS = \
53 $(VISIBILITY_CFLAGS) \
54 -Wno-override-init
55
56 libisl_la_LIBADD = $(ISL_GEN_LIBS)
57
58 libisl_la_SOURCES = $(ISL_FILES) $(ISL_GENERATED_FILES)
59
60 libisl_gen4_la_SOURCES = $(ISL_GEN4_FILES)
61 libisl_gen4_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=40
62
63 libisl_gen5_la_SOURCES = $(ISL_GEN5_FILES)
64 libisl_gen5_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=50
65
66 libisl_gen6_la_SOURCES = $(ISL_GEN6_FILES)
67 libisl_gen6_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=60
68
69 libisl_gen7_la_SOURCES = $(ISL_GEN7_FILES)
70 libisl_gen7_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=70
71
72 libisl_gen75_la_SOURCES = $(ISL_GEN75_FILES)
73 libisl_gen75_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=75
74
75 libisl_gen8_la_SOURCES = $(ISL_GEN8_FILES)
76 libisl_gen8_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=80
77
78 libisl_gen9_la_SOURCES = $(ISL_GEN9_FILES)
79 libisl_gen9_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=90
80
81 BUILT_SOURCES = $(ISL_GENERATED_FILES)
82
83 PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS)
84
85 isl_format_layout.c: gen_format_layout.py \
86 isl_format_layout.csv
87 $(PYTHON_GEN) $(srcdir)/gen_format_layout.py \
88 --csv $(srcdir)/isl_format_layout.csv --out $@
89
90 # ----------------------------------------------------------------------------
91 # Tests
92 # ----------------------------------------------------------------------------
93
94 check_PROGRAMS = tests/isl_surf_get_image_offset_test
95
96 TESTS = $(check_PROGRAMS)
97
98 tests_isl_surf_get_image_offset_test_LDADD = \
99 libisl.la \
100 $(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la \
101 -lm
102
103 # ----------------------------------------------------------------------------
104
105 EXTRA_DIST = \
106 gen_format_layout.py \
107 isl_format_layout.csv \
108 README