i965: Compile with -msse2 (instead of -msse2)
[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_srcdir)/src/mapi \
30 -I$(top_srcdir)/src/mesa/ \
31 -I$(top_srcdir)/src/gallium/include \
32 -I$(top_srcdir)/src/gallium/auxiliary \
33 -I$(top_builddir)/src/mesa/drivers/dri/common \
34 -I$(top_srcdir)/src/mesa/drivers/dri/common \
35 -I$(top_srcdir)/src/gtest/include \
36 -I$(top_builddir)/src/compiler/glsl \
37 -I$(top_builddir)/src/compiler/nir \
38 -I$(top_srcdir)/src/compiler/nir \
39 -I$(top_builddir)/src/intel \
40 -I$(top_srcdir)/src/intel \
41 -I$(top_srcdir)/include/drm-uapi \
42 $(DEFINES) \
43 $(VISIBILITY_CFLAGS) \
44 $(LIBDRM_CFLAGS) \
45 $(VALGRIND_CFLAGS) \
46 -msse2
47
48 AM_CXXFLAGS = $(AM_CFLAGS)
49
50 I965_PERGEN_LIBS = \
51 libi965_gen4.la \
52 libi965_gen45.la \
53 libi965_gen5.la \
54 libi965_gen6.la \
55 libi965_gen7.la \
56 libi965_gen75.la \
57 libi965_gen8.la \
58 libi965_gen9.la \
59 libi965_gen10.la
60
61 libi965_gen4_la_SOURCES = $(i965_gen4_FILES)
62 libi965_gen4_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=40
63
64 libi965_gen45_la_SOURCES = $(i965_gen45_FILES)
65 libi965_gen45_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=45
66
67 libi965_gen5_la_SOURCES = $(i965_gen5_FILES)
68 libi965_gen5_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=50
69
70 libi965_gen6_la_SOURCES = $(i965_gen6_FILES)
71 libi965_gen6_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=60
72
73 libi965_gen7_la_SOURCES = $(i965_gen7_FILES)
74 libi965_gen7_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=70
75
76 libi965_gen75_la_SOURCES = $(i965_gen75_FILES)
77 libi965_gen75_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=75
78
79 libi965_gen8_la_SOURCES = $(i965_gen8_FILES)
80 libi965_gen8_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=80
81
82 libi965_gen9_la_SOURCES = $(i965_gen9_FILES)
83 libi965_gen9_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=90
84
85 libi965_gen10_la_SOURCES = $(i965_gen10_FILES)
86 libi965_gen10_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=100
87
88 noinst_LTLIBRARIES = \
89 libi965_dri.la \
90 $(I965_PERGEN_LIBS)
91
92 libi965_dri_la_SOURCES = \
93 $(i965_FILES) \
94 $(i965_oa_GENERATED_FILES)
95 libi965_dri_la_LIBADD = \
96 $(top_builddir)/src/intel/common/libintel_common.la \
97 $(top_builddir)/src/intel/isl/libisl.la \
98 $(top_builddir)/src/intel/compiler/libintel_compiler.la \
99 $(top_builddir)/src/intel/blorp/libblorp.la \
100 $(I965_PERGEN_LIBS) \
101 $(LIBDRM_LIBS)
102
103 BUILT_SOURCES = $(i965_oa_GENERATED_FILES)
104 CLEANFILES = $(BUILT_SOURCES)
105
106 EXTRA_DIST = \
107 brw_oa_hsw.xml \
108 brw_oa_bdw.xml \
109 brw_oa_chv.xml \
110 brw_oa_sklgt2.xml \
111 brw_oa_sklgt3.xml \
112 brw_oa_sklgt4.xml \
113 brw_oa_bxt.xml \
114 brw_oa_kblgt2.xml \
115 brw_oa_kblgt3.xml \
116 brw_oa_glk.xml \
117 brw_oa.py
118
119 # Note: we avoid using a multi target rule here and outputting both the
120 # .c and .h files in one go so we don't hit problems with parallel
121 # make and multiple invocations of the same script trying to write
122 # to the same files.
123 brw_oa_%.h: brw_oa.py brw_oa_%.xml Makefile.am
124 $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/brw_oa.py --header=$(builddir)/brw_oa_$(*).h --chipset=$(*) $(srcdir)/brw_oa_$(*).xml
125 brw_oa_%.c: brw_oa.py brw_oa_%.xml Makefile.am
126 $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/brw_oa.py --code=$(builddir)/brw_oa_$(*).c --chipset=$(*) $(srcdir)/brw_oa_$(*).xml