v3d: Split walking the CLs to generate relocs from walking CLs to dump.
[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 .PHONY: git_sha1.h
23 git_sha1.h: $(top_srcdir)/src/git_sha1.h.in
24 @echo "updating $@"
25 @$(PYTHON2) $(top_srcdir)/bin/git_sha1_gen.py --output $@
26
27 BUILT_SOURCES = git_sha1.h
28 CLEANFILES = $(BUILT_SOURCES)
29 EXTRA_DIST = git_sha1.h.in meson.build
30
31 SUBDIRS = . gtest util mapi/glapi/gen mapi
32
33 if HAVE_OPENGL
34 gldir = $(includedir)/GL
35 gl_HEADERS = \
36 $(top_srcdir)/include/GL/gl.h \
37 $(top_srcdir)/include/GL/glext.h \
38 $(top_srcdir)/include/GL/glcorearb.h \
39 $(top_srcdir)/include/GL/gl_mangle.h
40 endif
41
42 if HAVE_GLX
43 glxdir = $(includedir)/GL
44 glx_HEADERS = \
45 $(top_srcdir)/include/GL/glx.h \
46 $(top_srcdir)/include/GL/glxext.h \
47 $(top_srcdir)/include/GL/glx_mangle.h
48 pkgconfigdir = $(libdir)/pkgconfig
49 pkgconfig_DATA = mesa/gl.pc
50 endif
51
52 if HAVE_COMMON_OSMESA
53 osmesadir = $(includedir)/GL
54 osmesa_HEADERS = $(top_srcdir)/include/GL/osmesa.h
55 endif
56
57 # include only conditionally ?
58 SUBDIRS += compiler
59
60 ## Optionally required by EGL
61 if HAVE_PLATFORM_WAYLAND
62 SUBDIRS += egl/wayland/wayland-drm
63 endif
64
65 if HAVE_VULKAN_COMMON
66 SUBDIRS += vulkan
67 endif
68
69 EXTRA_DIST += vulkan/registry/vk.xml
70
71 if HAVE_AMD_DRIVERS
72 SUBDIRS += amd
73 endif
74
75 if HAVE_INTEL_DRIVERS
76 SUBDIRS += intel
77 endif
78
79 if HAVE_BROADCOM_DRIVERS
80 SUBDIRS += broadcom
81 endif
82
83 if NEED_OPENGL_COMMON
84 SUBDIRS += mesa
85 endif
86
87 SUBDIRS += loader
88
89 if HAVE_DRI_GLX
90 SUBDIRS += glx
91 endif
92
93 ## Optionally required by EGL (aka PLATFORM_GBM)
94 if HAVE_GBM
95 SUBDIRS += gbm
96 endif
97
98 if HAVE_EGL
99 SUBDIRS += egl
100 endif
101
102 # Requires wayland-drm
103 if HAVE_RADEON_VULKAN
104 SUBDIRS += amd/vulkan
105 endif
106
107 if HAVE_GALLIUM
108 SUBDIRS += gallium
109 endif
110
111 EXTRA_DIST += \
112 getopt hgl SConscript \
113 $(top_srcdir)/include/GL/mesa_glinterop.h
114
115 AM_CFLAGS = $(VISIBILITY_CFLAGS)
116 AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS)
117
118 AM_CPPFLAGS = \
119 -I$(top_srcdir)/include/ \
120 -I$(top_srcdir)/src/mapi/ \
121 -I$(top_srcdir)/src/mesa/ \
122 -I$(top_srcdir)/src/gallium/include \
123 -I$(top_srcdir)/src/gallium/auxiliary \
124 $(DEFINES)
125
126 noinst_LTLIBRARIES = libglsl_util.la
127
128 libglsl_util_la_SOURCES = \
129 mesa/main/extensions_table.c \
130 mesa/main/imports.c \
131 mesa/program/prog_parameter.c \
132 mesa/program/symbol_table.c \
133 mesa/program/dummy_errors.c