5 include $(TOP
)/configs
/current
27 builtin_function.
cpp \
30 glsl_parser_extras.
cpp \
32 hir_field_selection.
cpp \
35 ir_constant_expression.
cpp \
36 ir_constant_folding.
cpp \
37 ir_constant_variable.
cpp \
38 ir_copy_propagation.
cpp \
41 ir_dead_code_local.
cpp \
42 ir_div_to_mul_rcp.
cpp \
43 ir_expression_flattening.
cpp \
44 ir_function_can_inline.
cpp \
46 ir_function_inlining.
cpp \
47 ir_hierarchical_visitor.
cpp \
50 ir_if_simplification.
cpp \
51 ir_if_to_cond_assign.
cpp \
52 ir_mat_op_to_vec.
cpp \
54 ir_print_visitor.
cpp \
56 ir_swizzle_swizzle.
cpp \
59 ir_vec_index_to_cond_assign.
cpp \
60 ir_vec_index_to_swizzle.
cpp \
66 $(TOP
)/src
/glsl
/libglsl.a \
67 $(shell pkg-config
--libs talloc
)
69 APPS
= glsl_compiler glcpp
/glcpp
72 ..
/mesa
/shader
/hash_table.c \
73 ..
/mesa
/shader
/symbol_table.c
78 $(GLSL2_C_SOURCES
:.c
=.o
) \
79 $(GLSL2_CXX_SOURCES
:.
cpp=.o
)
84 $(GLCPP_SOURCES
:.c
=.o
) \
85 ..
/mesa
/shader
/hash_table.o
89 $(CXX_SOURCES
:.
cpp=.o
)
102 $(GLSL2_CXX_SOURCES
) \
107 default
: depend lib
$(LIBNAME
).a
$(APPS
)
109 lib
$(LIBNAME
).a
: $(OBJECTS
) Makefile
$(TOP
)/src
/glsl
/Makefile.template
110 $(MKLIB
) -cplusplus
-o
$(LIBNAME
) -static
$(OBJECTS
)
112 depend
: $(ALL_SOURCES
) Makefile
115 $(MKDEP
) $(MKDEP_OPTIONS
) $(INCLUDES
) $(ALL_SOURCES
) 2> /dev
/null
117 # Remove .o and backup files
119 rm -f
$(OBJECTS
) lib
$(LIBNAME
).a depend depend.bak
129 glsl_compiler
: $(GLSL2_OBJECTS
) libglsl.a
130 $(APP_CXX
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $(GLSL2_OBJECTS
) $(LIBS
) -o
$@
132 glcpp
/glcpp
: $(GLCPP_OBJECTS
) libglsl.a
133 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $(GLCPP_OBJECTS
) $(LIBS
) -o
$@
136 $(CXX
) -c
$(INCLUDES
) $(CXXFLAGS
) $(LIBRARY_DEFINES
) $< -o
$@
139 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(LIBRARY_DEFINES
) $< -o
$@
141 glsl_lexer.
cpp: glsl_lexer.lpp
142 flex
--never-interactive
--outfile
="$@" $<
144 glsl_parser.
cpp: glsl_parser.ypp
145 bison
-v
-o
"$@" --defines
=glsl_parser.h
$<
147 glcpp
/glcpp-lex.c
: glcpp
/glcpp-lex.l
148 flex
--never-interactive
--outfile
="$@" $<
150 glcpp
/glcpp-parse.c
: glcpp
/glcpp-parse.y
151 bison
-v
-o
"$@" --defines
=glcpp
/glcpp-parse.h
$<
153 builtin_function.
cpp: builtins
/*/*
154 .
/builtins
/tools
/generate_builtins.pl
> builtin_function.
cpp