Merge remote-tracking branch 'mesa-public/master' into vulkan
[mesa.git] / src / Makefile.am
1 # Copyright © 2013 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 AUTOMAKE_OPTIONS = subdir-objects
23
24 SUBDIRS = . gtest util mapi/glapi/gen mapi
25
26 if NEED_OPENGL_COMMON
27 SUBDIRS += glsl mesa
28 endif
29
30 SUBDIRS += loader
31
32 if HAVE_DRI_GLX
33 SUBDIRS += glx
34 endif
35
36 if HAVE_EGL_PLATFORM_WAYLAND
37 SUBDIRS += egl/wayland/wayland-egl egl/wayland/wayland-drm
38 endif
39
40 if HAVE_EGL_DRIVER_DRI2
41 SUBDIRS += egl/drivers/dri2
42 endif
43
44 if HAVE_GBM
45 SUBDIRS += gbm
46 endif
47
48 if HAVE_EGL
49 SUBDIRS += egl/main
50 endif
51
52 if HAVE_GALLIUM
53 SUBDIRS += gallium
54 endif
55
56 EXTRA_DIST = \
57 egl/drivers/haiku \
58 egl/docs \
59 getopt hgl SConscript
60
61 AM_CFLAGS = $(VISIBILITY_CFLAGS)
62 AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS)
63
64 if HAVE_VULKAN
65 SUBDIRS += vulkan
66 endif
67
68 AM_CPPFLAGS = \
69 -I$(top_srcdir)/include/ \
70 -I$(top_srcdir)/src/mapi/ \
71 -I$(top_srcdir)/src/mesa/ \
72 $(DEFINES)
73
74 noinst_LTLIBRARIES = libglsl_util.la
75
76 libglsl_util_la_SOURCES = \
77 mesa/main/imports.c \
78 mesa/program/prog_hash_table.c \
79 mesa/program/symbol_table.c \
80 mesa/program/dummy_errors.c