5 include $(TOP
)/configs
/current
26 builtin_function.
cpp \
29 glsl_parser_extras.
cpp \
31 glsl_symbol_table.
cpp \
32 hir_field_selection.
cpp \
36 ir_constant_expression.
cpp \
37 ir_constant_folding.
cpp \
38 ir_constant_propagation.
cpp \
39 ir_constant_variable.
cpp \
40 ir_copy_propagation.
cpp \
43 ir_dead_code_local.
cpp \
44 ir_dead_functions.
cpp \
45 ir_div_to_mul_rcp.
cpp \
46 ir_explog_to_explog2.
cpp \
47 ir_expression_flattening.
cpp \
48 ir_function_can_inline.
cpp \
50 ir_function_inlining.
cpp \
51 ir_hierarchical_visitor.
cpp \
54 ir_if_simplification.
cpp \
55 ir_if_to_cond_assign.
cpp \
56 ir_import_prototypes.
cpp \
57 ir_mat_op_to_vec.
cpp \
60 ir_print_visitor.
cpp \
62 ir_rvalue_visitor.
cpp \
63 ir_set_program_inouts.
cpp \
64 ir_structure_splitting.
cpp \
65 ir_sub_to_add_neg.
cpp \
66 ir_swizzle_swizzle.
cpp \
67 ir_tree_grafting.
cpp \
70 ir_variable_refcount.
cpp \
71 ir_vec_index_to_cond_assign.
cpp \
72 ir_vec_index_to_swizzle.
cpp \
79 $(TOP
)/src
/glsl
/libglsl.a \
82 APPS
= glsl_compiler glcpp
/glcpp
85 ..
/mesa
/program
/hash_table.c \
86 ..
/mesa
/program
/symbol_table.c
91 $(GLSL2_C_SOURCES
:.c
=.o
) \
92 $(GLSL2_CXX_SOURCES
:.
cpp=.o
)
101 $(GLCPP_SOURCES
:.c
=.o
) \
102 ..
/mesa
/program
/hash_table.o
106 $(CXX_SOURCES
:.
cpp=.o
)
119 $(GLSL2_CXX_SOURCES
) \
124 default
: depend lib
$(LIBNAME
).a
$(APPS
)
126 lib
$(LIBNAME
).a
: $(OBJECTS
) Makefile
$(TOP
)/src
/glsl
/Makefile.template
127 $(MKLIB
) -cplusplus
-o
$(LIBNAME
) -static
$(OBJECTS
)
129 depend
: $(ALL_SOURCES
) Makefile
132 $(MKDEP
) $(MKDEP_OPTIONS
) $(INCLUDES
) $(ALL_SOURCES
) 2> /dev
/null
134 # Remove .o and backup files
136 rm -f
$(GLCPP_OBJECTS
) $(GLSL2_OBJECTS
) $(OBJECTS
) lib
$(LIBNAME
).a depend depend.bak
146 glsl_compiler
: $(GLSL2_OBJECTS
) libglsl.a
147 $(APP_CXX
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $(GLSL2_OBJECTS
) $(LIBS
) -o
$@
149 glcpp
/glcpp
: $(GLCPP_OBJECTS
) libglsl.a
150 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $(GLCPP_OBJECTS
) $(LIBS
) -o
$@
153 $(CXX
) -c
$(INCLUDES
) $(CXXFLAGS
) $(DEFINES
) $< -o
$@
156 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
158 glsl_lexer.
cpp: glsl_lexer.lpp
159 flex
--nounistd
-o
$@
$<
161 glsl_parser.
cpp: glsl_parser.ypp
162 bison
-v
-o
"$@" -p
"_mesa_glsl_" --defines
=glsl_parser.h
$<
164 glcpp
/glcpp-lex.c
: glcpp
/glcpp-lex.l
165 flex
--nounistd
-o
$@
$<
167 glcpp
/glcpp-parse.c
: glcpp
/glcpp-parse.y
168 bison
-v
-o
"$@" --defines
=glcpp
/glcpp-parse.h
$<
170 builtins
: builtin_function.
cpp builtins
/profiles
/* builtins
/ir
/* builtins
/tools
/generate_builtins.py builtins
/tools
/texture_builtins.py
171 @echo Bootstrapping the compiler...
172 cp builtins
/tools
/builtin_function.
cpp .
174 @echo Regenerating builtin_function.
cpp...
175 .
/builtins
/tools
/generate_builtins.py
> builtin_function.
cpp
176 @echo Rebuilding the real compiler...