glsl: Make a function to express a GLSL version ir human-readable form.
[mesa.git] / src / glsl / builtin_compiler / Makefile.am
1 # Copyright © 2012 Jon TURNEY
2 # Copyright © 2012 Thierry Reding
3 #
4 # Permission is hereby granted, free of charge, to any person obtaining a
5 # copy of this software and associated documentation files (the "Software"),
6 # to deal in the Software without restriction, including without limitation
7 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 # and/or sell copies of the Software, and to permit persons to whom the
9 # Software is furnished to do so, subject to the following conditions:
10 #
11 # The above copyright notice and this permission notice (including the next
12 # paragraph) shall be included in all copies or substantial portions of the
13 # Software.
14 #
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 # IN THE SOFTWARE.
22
23 CC = @CC_FOR_BUILD@
24 CFLAGS = @CFLAGS_FOR_BUILD@
25 CPP = @CPP_FOR_BUILD@
26 CPPFLAGS = @CPPFLAGS_FOR_BUILD@
27 CXX = @CXX_FOR_BUILD@
28 CXXFLAGS = @CXXFLAGS_FOR_BUILD@
29 LD = @LD_FOR_BUILD@
30 LDFLAGS = @LDFLAGS_FOR_BUILD@
31
32 AM_CFLAGS = \
33 -I $(top_srcdir)/include \
34 -I $(top_srcdir)/src/mapi \
35 -I $(top_srcdir)/src/mesa \
36 -I $(GLSL_SRCDIR) \
37 -I $(GLSL_SRCDIR)/glcpp \
38 -I $(GLSL_BUILDDIR) \
39 $(DEFINES_FOR_BUILD)
40
41 AM_CXXFLAGS = $(AM_CFLAGS)
42
43 AM_YFLAGS = -v -d -p "glcpp_parser_"
44 AM_LFLAGS = --nounistd -o$(LEX_OUTPUT_ROOT).c
45
46 include ../Makefile.sources
47
48 noinst_PROGRAMS = builtin_compiler
49
50 builtin_compiler_SOURCES = \
51 $(GLSL_SRCDIR)/glcpp/glcpp-lex.l \
52 $(GLSL_SRCDIR)/glcpp/glcpp-parse.y \
53 $(LIBGLCPP_FILES) \
54 $(GLSL_SRCDIR)/glsl_lexer.ll \
55 $(GLSL_BUILDDIR)/glsl_parser.cc \
56 $(LIBGLSL_FILES) \
57 $(LIBGLSL_CXX_FILES) \
58 $(top_srcdir)/src/mesa/program/hash_table.c \
59 $(top_srcdir)/src/mesa/program/symbol_table.c \
60 $(GLSL_COMPILER_CXX_FILES) \
61 builtin_stubs.cpp
62
63 BUILT_SOURCES = \
64 glcpp-lex.c \
65 glcpp-parse.c \
66 glcpp-parse.h \
67 glsl_lexer.cc
68
69 CLEANFILES = $(BUILT_SOURCES)