5 include $(TOP
)/configs
/current
29 glsl_parser_extras.
cpp \
31 glsl_symbol_table.
cpp \
32 hir_field_selection.
cpp \
35 ir_constant_expression.
cpp \
37 ir_expression_flattening.
cpp \
38 ir_function_can_inline.
cpp \
40 ir_hierarchical_visitor.
cpp \
42 ir_import_prototypes.
cpp \
43 ir_print_visitor.
cpp \
45 ir_rvalue_visitor.
cpp \
46 ir_set_program_inouts.
cpp \
49 ir_variable_refcount.
cpp \
56 lower_if_to_cond_assign.
cpp \
57 lower_instructions.
cpp \
59 lower_mat_op_to_vec.
cpp \
61 lower_texture_projection.
cpp \
62 lower_variable_index_to_cond_assign.
cpp \
63 lower_vec_index_to_cond_assign.
cpp \
64 lower_vec_index_to_swizzle.
cpp \
67 opt_constant_folding.
cpp \
68 opt_constant_propagation.
cpp \
69 opt_constant_variable.
cpp \
70 opt_copy_propagation.
cpp \
72 opt_dead_code_local.
cpp \
73 opt_dead_functions.
cpp \
74 opt_discard_simplification.
cpp \
75 opt_function_inlining.
cpp \
76 opt_if_simplification.
cpp \
77 opt_noop_swizzle.
cpp \
78 opt_redundant_jumps.
cpp \
79 opt_structure_splitting.
cpp \
80 opt_swizzle_swizzle.
cpp \
81 opt_tree_grafting.
cpp \
85 $(TOP
)/src
/glsl
/libglsl.a \
88 APPS
= glsl_compiler glcpp
/glcpp
91 ..
/mesa
/program
/hash_table.c \
92 ..
/mesa
/program
/symbol_table.c
97 $(GLSL2_C_SOURCES
:.c
=.o
) \
98 $(GLSL2_CXX_SOURCES
:.
cpp=.o
)
100 ### Basic defines ###
107 $(GLCPP_SOURCES
:.c
=.o
) \
108 ..
/mesa
/program
/hash_table.o
112 $(CXX_SOURCES
:.
cpp=.o
)
125 $(GLSL2_CXX_SOURCES
) \
130 default
: depend lib
$(LIBNAME
).a
$(APPS
)
132 lib
$(LIBNAME
).a
: $(OBJECTS
) builtin_function.o Makefile
$(TOP
)/src
/glsl
/Makefile.template
133 $(MKLIB
) -cplusplus
-o
$(LIBNAME
) -static
$(OBJECTS
) builtin_function.o
135 depend
: $(ALL_SOURCES
) Makefile
138 $(MKDEP
) $(MKDEP_OPTIONS
) $(INCLUDES
) $(ALL_SOURCES
) 2> /dev
/null
140 # Remove .o and backup files
142 rm -f
$(GLCPP_OBJECTS
) $(GLSL2_OBJECTS
) $(OBJECTS
) lib
$(LIBNAME
).a depend depend.bak builtin_function.
cpp builtin_function.o builtin_stubs.o builtin_compiler
152 glsl_compiler
: $(GLSL2_OBJECTS
) libglsl.a
153 $(APP_CXX
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $(GLSL2_OBJECTS
) $(LIBS
) -o
$@
155 glcpp
/glcpp
: $(GLCPP_OBJECTS
) libglsl.a
156 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $(GLCPP_OBJECTS
) $(LIBS
) -o
$@
159 $(CXX
) -c
$(INCLUDES
) $(CXXFLAGS
) $(DEFINES
) $< -o
$@
162 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
164 glsl_lexer.
cpp: glsl_lexer.lpp
165 flex
--nounistd
-o
$@
$<
167 glsl_parser.
cpp: glsl_parser.ypp
168 bison
-v
-o
"$@" -p
"_mesa_glsl_" --defines
=glsl_parser.h
$<
170 glcpp
/glcpp-lex.c
: glcpp
/glcpp-lex.l
171 flex
--nounistd
-o
$@
$<
173 glcpp
/glcpp-parse.c
: glcpp
/glcpp-parse.y
174 bison
-v
-o
"$@" --defines
=glcpp
/glcpp-parse.h
$<
176 builtin_compiler
: $(GLSL2_OBJECTS
) $(OBJECTS
) builtin_stubs.o
177 $(APP_CXX
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $(TALLOC_LIBS
) $(OBJECTS
) $(GLSL2_OBJECTS
) builtin_stubs.o
-o builtin_compiler
179 builtin_function.
cpp: builtins
/profiles
/* builtins
/ir
/* builtins
/tools
/generate_builtins.py builtins
/tools
/texture_builtins.py builtin_compiler
180 @echo Regenerating builtin_function.
cpp...
181 $(PYTHON2
) $(PYTHON_FLAGS
) builtins
/tools
/generate_builtins.py
$(PWD
)/builtin_compiler
> builtin_function.
cpp