05cdb1446c0be728372d5a33a56ba69f43d31a9e
[mesa.git] / src / compiler / Makefile.am
1 #
2 # Copyright © 2012 Jon TURNEY
3 # Copyright (C) 2015 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_CPPFLAGS = \
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_builddir)/src/compiler/glsl\
32 -I$(top_srcdir)/src/compiler/glsl\
33 -I$(top_srcdir)/src/compiler/glsl/glcpp\
34 -I$(top_builddir)/src/compiler/nir \
35 -I$(top_srcdir)/src/compiler/nir \
36 -I$(top_srcdir)/src/compiler/spirv \
37 -I$(top_srcdir)/src/gallium/include \
38 -I$(top_srcdir)/src/gallium/auxiliary \
39 -I$(top_srcdir)/src/gtest/include \
40 $(VALGRIND_CFLAGS) \
41 $(DEFINES)
42
43 AM_CFLAGS = \
44 $(VISIBILITY_CFLAGS) \
45 $(WNO_OVERRIDE_INIT) \
46 $(MSVC2013_COMPAT_CFLAGS)
47
48 AM_CXXFLAGS = \
49 $(VISIBILITY_CXXFLAGS) \
50 $(MSVC2013_COMPAT_CXXFLAGS)
51
52 noinst_LTLIBRARIES = libcompiler.la
53
54 libcompiler_la_SOURCES = $(LIBCOMPILER_FILES)
55
56 noinst_PROGRAMS =
57 check_PROGRAMS =
58 TESTS =
59 BUILT_SOURCES =
60 CLEANFILES =
61 EXTRA_DIST = \
62 SConscript \
63 glsl/glcpp/meson.build \
64 glsl/tests/meson.build \
65 glsl/meson.build \
66 nir/meson.build \
67 spirv/meson.build \
68 meson.build
69
70 MKDIR_GEN = $(AM_V_at)$(MKDIR_P) $(@D)
71 PYTHON_GEN = $(AM_V_GEN)$(PYTHON) $(PYTHON_FLAGS)
72
73 include Makefile.spirv.am
74
75 include Makefile.glsl.am
76
77 include Makefile.nir.am