0bda2897e8e6e171b1fdd9de58ee003a79d002fb
[mesa.git] / src / mesa / drivers / dri / i965 / Makefile.am
1
2
3 # Copyright © 2011 Intel Corporation
4 #
5 # Permission is hereby granted, free of charge, to any person obtaining a
6 # copy of this software and associated documentation files (the "Software"),
7 # to deal in the Software without restriction, including without limitation
8 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 # and/or sell copies of the Software, and to permit persons to whom the
10 # Software is furnished to do so, subject to the following conditions:
11 #
12 # The above copyright notice and this permission notice (including the next
13 # paragraph) shall be included in all copies or substantial portions of the
14 # Software.
15 #
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22 # IN THE SOFTWARE.
23
24 include Makefile.sources
25
26 AM_CFLAGS = \
27 -I$(top_srcdir)/include \
28 -I$(top_srcdir)/src/ \
29 -I$(top_builddir)/src/ \
30 -I$(top_srcdir)/src/mapi \
31 -I$(top_srcdir)/src/mesa/ \
32 -I$(top_srcdir)/src/gallium/include \
33 -I$(top_srcdir)/src/gallium/auxiliary \
34 -I$(top_builddir)/src/util \
35 -I$(top_srcdir)/src/mesa/drivers/dri/common \
36 -I$(top_srcdir)/src/gtest/include \
37 -I$(top_builddir)/src/compiler \
38 -I$(top_srcdir)/src/compiler \
39 -I$(top_builddir)/src/compiler/glsl \
40 -I$(top_builddir)/src/compiler/nir \
41 -I$(top_srcdir)/src/compiler/nir \
42 -I$(top_builddir)/src/intel \
43 -I$(top_srcdir)/src/intel \
44 -I$(top_srcdir)/include/drm-uapi \
45 $(DEFINES) \
46 $(VISIBILITY_CFLAGS) \
47 $(WNO_OVERRIDE_INIT) \
48 $(LIBDRM_CFLAGS) \
49 $(VALGRIND_CFLAGS) \
50 -msse2 -mstackrealign
51
52 AM_CXXFLAGS = $(AM_CFLAGS)
53
54 I965_PERGEN_LIBS = \
55 libi965_gen4.la \
56 libi965_gen45.la \
57 libi965_gen5.la \
58 libi965_gen6.la \
59 libi965_gen7.la \
60 libi965_gen75.la \
61 libi965_gen8.la \
62 libi965_gen9.la \
63 libi965_gen10.la \
64 libi965_gen11.la
65
66 libi965_gen4_la_SOURCES = $(i965_gen4_FILES)
67 libi965_gen4_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=40
68
69 libi965_gen45_la_SOURCES = $(i965_gen45_FILES)
70 libi965_gen45_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=45
71
72 libi965_gen5_la_SOURCES = $(i965_gen5_FILES)
73 libi965_gen5_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=50
74
75 libi965_gen6_la_SOURCES = $(i965_gen6_FILES)
76 libi965_gen6_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=60
77
78 libi965_gen7_la_SOURCES = $(i965_gen7_FILES)
79 libi965_gen7_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=70
80
81 libi965_gen75_la_SOURCES = $(i965_gen75_FILES)
82 libi965_gen75_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=75
83
84 libi965_gen8_la_SOURCES = $(i965_gen8_FILES)
85 libi965_gen8_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=80
86
87 libi965_gen9_la_SOURCES = $(i965_gen9_FILES)
88 libi965_gen9_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=90
89
90 libi965_gen10_la_SOURCES = $(i965_gen10_FILES)
91 libi965_gen10_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=100
92
93 libi965_gen11_la_SOURCES = $(i965_gen11_FILES)
94 libi965_gen11_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=110
95
96 noinst_LTLIBRARIES = \
97 libi965_dri.la \
98 $(I965_PERGEN_LIBS)
99
100 libi965_dri_la_SOURCES = \
101 $(i965_FILES) \
102 $(i965_oa_GENERATED_FILES)
103 libi965_dri_la_LIBADD = \
104 $(top_builddir)/src/intel/common/libintel_common.la \
105 $(top_builddir)/src/intel/dev/libintel_dev.la \
106 $(top_builddir)/src/intel/isl/libisl.la \
107 $(top_builddir)/src/intel/compiler/libintel_compiler.la \
108 $(top_builddir)/src/intel/blorp/libblorp.la \
109 $(I965_PERGEN_LIBS) \
110 $(LIBDRM_LIBS)
111
112 BUILT_SOURCES = $(i965_oa_GENERATED_FILES)
113 CLEANFILES = $(BUILT_SOURCES)
114
115 EXTRA_DIST = \
116 brw_oa.py \
117 $(i965_oa_xml_FILES) \
118 meson.build
119
120 brw_oa_metrics.c: brw_oa.py $(i965_oa_xml_FILES)
121 $(PYTHON) $(PYTHON_FLAGS) $(srcdir)/brw_oa.py \
122 --code=$(builddir)/brw_oa_metrics.c \
123 --header=$(builddir)/brw_oa_metrics.h \
124 $(i965_oa_xml_FILES:%=$(srcdir)/%)
125
126 brw_oa_metrics.h: brw_oa_metrics.c