5 include $(TOP
)/configs
/current
26 builtin_function.
cpp \
29 glsl_parser_extras.
cpp \
31 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_import_prototypes.
cpp \
53 ir_mat_op_to_vec.
cpp \
55 ir_print_visitor.
cpp \
57 ir_swizzle_swizzle.
cpp \
58 ir_tree_grafting.
cpp \
61 ir_variable_refcount.
cpp \
62 ir_vec_index_to_cond_assign.
cpp \
63 ir_vec_index_to_swizzle.
cpp \
69 $(TOP
)/src
/glsl
/libglsl.a \
70 $(shell pkg-config
--libs talloc
)
72 APPS
= glsl_compiler glcpp
/glcpp
75 ..
/mesa
/program
/hash_table.c \
76 ..
/mesa
/program
/symbol_table.c
81 $(GLSL2_C_SOURCES
:.c
=.o
) \
82 $(GLSL2_CXX_SOURCES
:.
cpp=.o
)
91 $(GLCPP_SOURCES
:.c
=.o
) \
92 ..
/mesa
/program
/hash_table.o
96 $(CXX_SOURCES
:.
cpp=.o
)
108 $(GLSL2_CXX_SOURCES
) \
113 default
: depend lib
$(LIBNAME
).a
$(APPS
)
115 lib
$(LIBNAME
).a
: $(OBJECTS
) Makefile
$(TOP
)/src
/glsl
/Makefile.template
116 $(MKLIB
) -cplusplus
-o
$(LIBNAME
) -static
$(OBJECTS
)
118 depend
: $(ALL_SOURCES
) Makefile
121 $(MKDEP
) $(MKDEP_OPTIONS
) $(INCLUDES
) $(ALL_SOURCES
) 2> /dev
/null
123 # Remove .o and backup files
125 rm -f
$(OBJECTS
) lib
$(LIBNAME
).a depend depend.bak
135 glsl_compiler
: $(GLSL2_OBJECTS
) libglsl.a
136 $(APP_CXX
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $(GLSL2_OBJECTS
) $(LIBS
) -o
$@
138 glcpp
/glcpp
: $(GLCPP_OBJECTS
) libglsl.a
139 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $(GLCPP_OBJECTS
) $(LIBS
) -o
$@
142 $(CXX
) -c
$(INCLUDES
) $(CXXFLAGS
) $(DEFINES
) $< -o
$@
145 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
147 glsl_lexer.
cpp: glsl_lexer.lpp
148 flex
--never-interactive
--outfile
="$@" $<
150 glsl_parser.
cpp: glsl_parser.ypp
151 bison
-v
-o
"$@" --defines
=glsl_parser.h
$<
153 glcpp
/glcpp-lex.c
: glcpp
/glcpp-lex.l
154 flex
--never-interactive
--outfile
="$@" $<
156 glcpp
/glcpp-parse.c
: glcpp
/glcpp-parse.y
157 bison
-v
-o
"$@" --defines
=glcpp
/glcpp-parse.h
$<
159 builtin_function.
cpp: builtins
/*/*
160 .
/builtins
/tools
/generate_builtins.pl
> builtin_function.
cpp