5 include $(TOP
)/configs
/current
21 builtin_function.
cpp \
24 glsl_parser_extras.
cpp \
26 hir_field_selection.
cpp \
29 ir_constant_expression.
cpp \
30 ir_constant_folding.
cpp \
31 ir_constant_variable.
cpp \
32 ir_copy_propagation.
cpp \
35 ir_dead_code_local.
cpp \
36 ir_div_to_mul_rcp.
cpp \
37 ir_expression_flattening.
cpp \
38 ir_function_can_inline.
cpp \
40 ir_function_inlining.
cpp \
41 ir_hierarchical_visitor.
cpp \
44 ir_if_simplification.
cpp \
45 ir_mat_op_to_vec.
cpp \
47 ir_print_visitor.
cpp \
49 ir_swizzle_swizzle.
cpp \
52 ir_vec_index_to_cond_assign.
cpp \
53 ir_vec_index_to_swizzle.
cpp \
58 $(TOP
)/src
/glsl
/libglsl.a \
59 $(shell pkg-config
--libs talloc
)
63 ..
/mesa
/shader
/hash_table.c \
64 ..
/mesa
/shader
/symbol_table.c
69 $(GLSL2_C_SOURCES
:.c
=.o
) \
70 $(GLSL2_CXX_SOURCES
:.
cpp=.o
)
76 $(CXX_SOURCES
:.
cpp=.o
)
88 $(GLSL2_CXX_SOURCES
) \
93 default
: depend lib
$(LIBNAME
).a
$(APPS
)
95 lib
$(LIBNAME
).a
: $(OBJECTS
) Makefile
$(TOP
)/src
/glsl
/Makefile.template
96 $(MKLIB
) -cplusplus
-o
$(LIBNAME
) -static
$(OBJECTS
)
98 depend
: $(ALL_SOURCES
) Makefile
101 $(MKDEP
) $(MKDEP_OPTIONS
) $(INCLUDES
) $(ALL_SOURCES
) 2> /dev
/null
103 # Remove .o and backup files
105 rm -f
$(OBJECTS
) lib
$(LIBNAME
).a depend depend.bak
115 glsl_compiler
: $(GLSL2_OBJECTS
) libglsl.a
116 $(APP_CXX
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $(GLSL2_OBJECTS
) $(LIBS
) -o
$@
119 $(CXX
) -c
$(INCLUDES
) $(CXXFLAGS
) $(LIBRARY_DEFINES
) $< -o
$@
122 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(LIBRARY_DEFINES
) $< -o
$@
124 glsl_lexer.
cpp: glsl_lexer.lpp
125 flex
--never-interactive
--outfile
="$@" $<
127 glsl_parser.
cpp: glsl_parser.ypp
128 bison
-v
-o
"$@" --defines
=glsl_parser.h
$<
130 glcpp
/glcpp-lex.c
: glcpp
/glcpp-lex.l
131 flex
--never-interactive
--outfile
="$@" $<
133 glcpp
/glcpp-parse.c
: glcpp
/glcpp-parse.y
134 bison
-v
-o
"$@" --defines
=glcpp
/glcpp-parse.h
$<
136 builtin_function.
cpp: builtins
/*/*
137 .
/builtins
/tools
/generate_builtins.pl
> builtin_function.
cpp