automake: tweak SUBDIR reorder and comment it
[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 SUBDIRS = . gtest util mapi/glapi/gen mapi
23
24 # include only conditionally ?
25 SUBDIRS += compiler
26
27 if HAVE_INTEL_DRIVERS
28 SUBDIRS += intel
29 endif
30
31 if NEED_OPENGL_COMMON
32 SUBDIRS += mesa
33 endif
34
35 SUBDIRS += loader
36
37 if HAVE_DRI_GLX
38 SUBDIRS += glx
39 endif
40
41 ## Optionally required by GBM and EGL
42 if HAVE_PLATFORM_WAYLAND
43 SUBDIRS += egl/wayland/wayland-drm
44 endif
45
46 ## Optionally required by EGL (aka PLATFORM_GBM)
47 if HAVE_GBM
48 SUBDIRS += gbm
49 endif
50
51 ## Optionally required by EGL
52 if HAVE_PLATFORM_WAYLAND
53 SUBDIRS += egl/wayland/wayland-egl
54 endif
55
56 if HAVE_EGL
57 SUBDIRS += egl
58 endif
59
60 ## Requires the i965 compiler (part of mesa) and wayland-drm
61 if HAVE_INTEL_VULKAN
62 SUBDIRS += intel/vulkan
63 endif
64
65 if HAVE_GALLIUM
66 SUBDIRS += gallium
67 endif
68
69 EXTRA_DIST = \
70 getopt hgl SConscript
71
72 AM_CFLAGS = $(VISIBILITY_CFLAGS)
73 AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS)
74
75 AM_CPPFLAGS = \
76 -I$(top_srcdir)/include/ \
77 -I$(top_srcdir)/src/mapi/ \
78 -I$(top_srcdir)/src/mesa/ \
79 $(DEFINES)
80
81 noinst_LTLIBRARIES = libglsl_util.la
82
83 libglsl_util_la_SOURCES = \
84 mesa/main/imports.c \
85 mesa/program/prog_hash_table.c \
86 mesa/program/symbol_table.c \
87 mesa/program/dummy_errors.c