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_expression_flattening.
cpp \
37 ir_function_can_inline.
cpp \
39 ir_function_inlining.
cpp \
40 ir_hierarchical_visitor.
cpp \
42 ir_if_simplification.
cpp \
43 ir_print_visitor.
cpp \
45 ir_swizzle_swizzle.
cpp \
48 ir_vec_index_to_swizzle.
cpp \
53 $(TOP
)/src
/glsl
/libglsl.a \
54 $(shell pkg-config
--libs talloc
)
58 ..
/mesa
/shader
/hash_table.c \
59 ..
/mesa
/shader
/symbol_table.c
64 $(GLSL2_C_SOURCES
:.c
=.o
) \
65 $(GLSL2_CXX_SOURCES
:.
cpp=.o
)
71 $(CXX_SOURCES
:.
cpp=.o
)
83 default
: depend lib
$(LIBNAME
).a
$(APPS
)
85 lib
$(LIBNAME
).a
: $(OBJECTS
) Makefile
$(TOP
)/src
/glsl
/Makefile.template
86 $(MKLIB
) -cplusplus
-o
$(LIBNAME
) -static
$(OBJECTS
)
88 depend
: $(CXX_SOURCES
) $(GLSL2_CXX_SOURCES
) $(GLSL2_C_SOURCES
)
91 $(MKDEP
) $(MKDEP_OPTIONS
) $(INCLUDES
) $@
2> /dev
/null
93 # Remove .o and backup files
95 rm -f
$(OBJECTS
) lib
$(LIBNAME
).a depend depend.bak
105 glsl_compiler
: $(GLSL2_OBJECTS
) libglsl.a
106 $(APP_CXX
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $(GLSL2_OBJECTS
) $(LIBS
) -o
$@
109 $(CXX
) -c
$(INCLUDES
) $(CXXFLAGS
) $(LIBRARY_DEFINES
) $< -o
$@
112 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(LIBRARY_DEFINES
) $< -o
$@
114 glsl_lexer.
cpp: glsl_lexer.lpp
115 flex
--never-interactive
--outfile
="$@" $<
117 glsl_parser.
cpp: glsl_parser.ypp
118 bison
-v
-o
"$@" --defines
=glsl_parser.h
$<
120 glcpp
/glcpp-lex.c
: glcpp
/glcpp-lex.l
121 flex
--never-interactive
--outfile
="$@" $<
123 glcpp
/glcpp-parse.c
: glcpp
/glcpp-parse.y
124 bison
-v
-o
"$@" --defines
=glcpp
/glcpp-parse.h
$<
126 builtin_function.
cpp: builtins
/*/*
127 .
/builtins
/tools
/generate_builtins.pl
> builtin_function.
cpp