5 include $(TOP
)/configs
/current
27 builtin_function.
cpp \
30 glsl_parser_extras.
cpp \
32 glsl_symbol_table.
cpp \
33 hir_field_selection.
cpp \
36 ir_constant_expression.
cpp \
38 ir_expression_flattening.
cpp \
39 ir_function_can_inline.
cpp \
41 ir_hierarchical_visitor.
cpp \
43 ir_import_prototypes.
cpp \
44 ir_print_visitor.
cpp \
46 ir_rvalue_visitor.
cpp \
47 ir_set_program_inouts.
cpp \
50 ir_variable_refcount.
cpp \
57 lower_if_to_cond_assign.
cpp \
58 lower_instructions.
cpp \
60 lower_mat_op_to_vec.
cpp \
62 lower_texture_projection.
cpp \
63 lower_variable_index_to_cond_assign.
cpp \
64 lower_vec_index_to_cond_assign.
cpp \
65 lower_vec_index_to_swizzle.
cpp \
68 opt_constant_folding.
cpp \
69 opt_constant_propagation.
cpp \
70 opt_constant_variable.
cpp \
71 opt_copy_propagation.
cpp \
73 opt_dead_code_local.
cpp \
74 opt_dead_functions.
cpp \
75 opt_discard_simplification.
cpp \
76 opt_function_inlining.
cpp \
77 opt_if_simplification.
cpp \
78 opt_noop_swizzle.
cpp \
79 opt_redundant_jumps.
cpp \
80 opt_structure_splitting.
cpp \
81 opt_swizzle_swizzle.
cpp \
82 opt_tree_grafting.
cpp \
86 $(TOP
)/src
/glsl
/libglsl.a \
89 APPS
= glsl_compiler glcpp
/glcpp
92 ..
/mesa
/program
/hash_table.c \
93 ..
/mesa
/program
/symbol_table.c
98 $(GLSL2_C_SOURCES
:.c
=.o
) \
99 $(GLSL2_CXX_SOURCES
:.
cpp=.o
)
101 ### Basic defines ###
108 $(GLCPP_SOURCES
:.c
=.o
) \
109 ..
/mesa
/program
/hash_table.o
113 $(CXX_SOURCES
:.
cpp=.o
)
126 $(GLSL2_CXX_SOURCES
) \
131 default
: depend lib
$(LIBNAME
).a
$(APPS
)
133 lib
$(LIBNAME
).a
: $(OBJECTS
) Makefile
$(TOP
)/src
/glsl
/Makefile.template
134 $(MKLIB
) -cplusplus
-o
$(LIBNAME
) -static
$(OBJECTS
)
136 depend
: $(ALL_SOURCES
) Makefile
139 $(MKDEP
) $(MKDEP_OPTIONS
) $(INCLUDES
) $(ALL_SOURCES
) 2> /dev
/null
141 # Remove .o and backup files
143 rm -f
$(GLCPP_OBJECTS
) $(GLSL2_OBJECTS
) $(OBJECTS
) lib
$(LIBNAME
).a depend depend.bak
153 glsl_compiler
: $(GLSL2_OBJECTS
) libglsl.a
154 $(APP_CXX
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $(GLSL2_OBJECTS
) $(LIBS
) -o
$@
156 glcpp
/glcpp
: $(GLCPP_OBJECTS
) libglsl.a
157 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $(GLCPP_OBJECTS
) $(LIBS
) -o
$@
160 $(CXX
) -c
$(INCLUDES
) $(CXXFLAGS
) $(DEFINES
) $< -o
$@
163 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
165 glsl_lexer.
cpp: glsl_lexer.lpp
166 flex
--nounistd
-o
$@
$<
168 glsl_parser.
cpp: glsl_parser.ypp
169 bison
-v
-o
"$@" -p
"_mesa_glsl_" --defines
=glsl_parser.h
$<
171 glcpp
/glcpp-lex.c
: glcpp
/glcpp-lex.l
172 flex
--nounistd
-o
$@
$<
174 glcpp
/glcpp-parse.c
: glcpp
/glcpp-parse.y
175 bison
-v
-o
"$@" --defines
=glcpp
/glcpp-parse.h
$<
177 builtins
: builtin_function.
cpp builtins
/profiles
/* builtins
/ir
/* builtins
/tools
/generate_builtins.py builtins
/tools
/texture_builtins.py
178 @echo Bootstrapping the compiler...
179 cp builtins
/tools
/builtin_function.
cpp .
181 @echo Regenerating builtin_function.
cpp...
182 $(PYTHON2
) $(PYTHON_FLAGS
) builtins
/tools
/generate_builtins.py
> builtin_function.
cpp
183 @echo Rebuilding the real compiler...