1 # Copyright © 2012 Jon TURNEY
2 # Copyright © 2012 Thierry Reding
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:
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
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
24 CFLAGS = @CFLAGS_FOR_BUILD@
26 CPPFLAGS = @CPPFLAGS_FOR_BUILD@
28 CXXFLAGS = @CXXFLAGS_FOR_BUILD@
30 LDFLAGS = @LDFLAGS_FOR_BUILD@
33 -I $(top_srcdir)/include \
34 -I $(top_srcdir)/src/mapi \
35 -I $(top_srcdir)/src/mesa \
37 -I $(GLSL_SRCDIR)/glcpp \
41 AM_CXXFLAGS = $(AM_CFLAGS)
43 AM_YFLAGS = -v -d -p "glcpp_parser_"
44 AM_LFLAGS = --nounistd -o$(LEX_OUTPUT_ROOT).c
46 include ../Makefile.sources
48 noinst_PROGRAMS = builtin_compiler
50 builtin_compiler_SOURCES = \
51 $(GLSL_SRCDIR)/glcpp/glcpp-lex.l \
52 $(GLSL_SRCDIR)/glcpp/glcpp-parse.y \
54 $(GLSL_SRCDIR)/glsl_lexer.ll \
55 $(GLSL_BUILDDIR)/glsl_parser.cc \
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) \
69 CLEANFILES = $(BUILT_SOURCES)