35423863e9c02b18d42862ca1a9782400b4fb168
[mesa.git] / src / intel / isl / Makefile.am
1 # Copyright 2015 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 ISL_GEN_LIBS = \
23 libisl-gen7.la \
24 libisl-gen75.la \
25 libisl-gen8.la \
26 libisl-gen9.la \
27 $(NULL)
28
29 noinst_LTLIBRARIES = $(ISL_GEN_LIBS) libisl.la
30
31 # The gallium includes are for the util/u_math.h include from main/macros.h
32 AM_CPPFLAGS = \
33 $(INTEL_CFLAGS) \
34 $(VALGRIND_CFLAGS) \
35 $(DEFINES) \
36 -I$(top_srcdir)/include \
37 -I$(top_srcdir)/src \
38 -I$(top_srcdir)/src/intel \
39 -I$(top_srcdir)/src/mapi \
40 -I$(top_srcdir)/src/mesa \
41 -I$(top_srcdir)/src/mesa/drivers/dri/common \
42 -I$(top_srcdir)/src/mesa/drivers/dri/i965 \
43 -I$(top_srcdir)/src/gallium/auxiliary \
44 -I$(top_srcdir)/src/gallium/include \
45 -I$(top_builddir)/src \
46 -I$(top_builddir)/src/intel
47
48 libisl_la_CFLAGS = $(CFLAGS) -Wno-override-init
49
50 libisl_la_LIBADD = $(ISL_GEN_LIBS)
51
52 libisl_la_SOURCES = \
53 isl.c \
54 isl.h \
55 isl_format.c \
56 isl_format_layout.c \
57 isl_gen4.c \
58 isl_gen4.h \
59 isl_gen6.c \
60 isl_gen6.h \
61 isl_priv.h \
62 isl_storage_image.c \
63 $(NULL)
64
65 libisl_gen7_la_SOURCES = \
66 isl_gen7.c \
67 isl_gen7.h \
68 isl_surface_state.c \
69 $(NULL)
70 libisl_gen7_la_CFLAGS = $(libisl_la_CFLAGS) -DGEN_VERSIONx10=70
71
72 libisl_gen75_la_SOURCES = \
73 isl_surface_state.c \
74 $(NULL)
75 libisl_gen75_la_CFLAGS = $(libisl_la_CFLAGS) -DGEN_VERSIONx10=75
76
77 libisl_gen8_la_SOURCES = \
78 isl_gen8.c \
79 isl_gen8.h \
80 isl_surface_state.c \
81 $(NULL)
82 libisl_gen8_la_CFLAGS = $(libisl_la_CFLAGS) -DGEN_VERSIONx10=80
83
84 libisl_gen9_la_SOURCES = \
85 isl_gen9.c \
86 isl_gen9.h \
87 isl_surface_state.c \
88 $(NULL)
89 libisl_gen9_la_CFLAGS = $(libisl_la_CFLAGS) -DGEN_VERSIONx10=90
90
91 BUILT_SOURCES = \
92 isl_format_layout.c
93
94 isl_format_layout.c: isl_format_layout_gen.bash \
95 isl_format_layout.csv
96 $(AM_V_GEN)$(srcdir)/isl_format_layout_gen.bash \
97 <$(srcdir)/isl_format_layout.csv >$@
98
99 # ----------------------------------------------------------------------------
100 # Tests
101 # ----------------------------------------------------------------------------
102
103 TESTS = tests/isl_surf_get_image_offset_test
104
105 check_PROGRAMS = $(TESTS)
106
107 # Link tests to lib965_compiler.la for brw_get_device_info().
108 tests_ldadd = \
109 libisl.la \
110 $(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la \
111 -lm
112
113 tests_isl_surf_get_image_offset_test_SOURCES = \
114 tests/isl_surf_get_image_offset_test.c
115 tests_isl_surf_get_image_offset_test_LDADD = $(tests_ldadd)
116
117 # ----------------------------------------------------------------------------
118
119 include $(top_srcdir)/install-lib-links.mk
120
121 EXTRA_DIST = \
122 isl_format_layout_gen.bash \
123 isl_format_layout.csv \
124 README