gbm: remove superfluous/incorrect udev comment
[mesa.git] / src / compiler / Makefile.glsl.am
index 0dba6189c63eb662ed9dee7a660b6ab8037138cc..80dfb737fb276afe80a4f14d0bc15d1fb48a8ac8 100644 (file)
@@ -33,6 +33,7 @@ EXTRA_DIST += glsl/tests glsl/glcpp/tests glsl/README \
 TESTS += glsl/glcpp/tests/glcpp-test                   \
        glsl/glcpp/tests/glcpp-test-cr-lf               \
        glsl/tests/blob-test                            \
+       glsl/tests/cache-test                           \
        glsl/tests/general-ir-test                      \
        glsl/tests/optimization-test                    \
        glsl/tests/sampler-types-test                   \
@@ -47,6 +48,7 @@ check_PROGRAMS +=                                     \
        glsl/glcpp/glcpp                                \
        glsl/glsl_test                                  \
        glsl/tests/blob-test                            \
+       glsl/tests/cache-test                           \
        glsl/tests/general-ir-test                      \
        glsl/tests/sampler-types-test                   \
        glsl/tests/uniform-initializer-test
@@ -58,6 +60,11 @@ glsl_tests_blob_test_SOURCES =                               \
 glsl_tests_blob_test_LDADD =                           \
        glsl/libglsl.la
 
+glsl_tests_cache_test_SOURCES =                                \
+       glsl/tests/cache_test.c
+glsl_tests_cache_test_LDADD =                          \
+       glsl/libglsl.la
+
 glsl_tests_general_ir_test_SOURCES =                   \
        glsl/tests/builtin_variable_test.cpp            \
        glsl/tests/invalidate_locations_test.cpp        \
@@ -120,6 +127,9 @@ glsl_libglsl_la_SOURCES =                           \
        $(LIBGLSL_GENERATED_FILES)                      \
        $(LIBGLSL_FILES)
 
+if ENABLE_SHADER_CACHE
+glsl_libglsl_la_SOURCES += $(LIBGLSL_SHADER_CACHE_FILES)
+endif
 
 glsl_libstandalone_la_SOURCES = \
        $(GLSL_COMPILER_CXX_FILES)
@@ -199,7 +209,15 @@ glsl/glcpp/glcpp-lex.c: glsl/glcpp/glcpp-lex.l
 
 glsl/ir_expression_operation.h: glsl/ir_expression_operation.py
        $(MKDIR_GEN)
-       $(PYTHON_GEN) $(srcdir)/glsl/ir_expression_operation.py > $@ || ($(RM) $@; false)
+       $(PYTHON_GEN) $(srcdir)/glsl/ir_expression_operation.py enum > $@ || ($(RM) $@; false)
+
+glsl/ir_expression_operation_constant.h: glsl/ir_expression_operation.py
+       $(MKDIR_GEN)
+       $(PYTHON_GEN) $(srcdir)/glsl/ir_expression_operation.py constant > $@ || ($(RM) $@; false)
+
+glsl/ir_expression_operation_strings.h: glsl/ir_expression_operation.py
+       $(MKDIR_GEN)
+       $(PYTHON_GEN) $(srcdir)/glsl/ir_expression_operation.py strings > $@ || ($(RM) $@; false)
 
 # Only the parsers (specifically the header files generated at the same time)
 # need to be in BUILT_SOURCES. Though if we list the parser headers YACC is
@@ -211,6 +229,8 @@ BUILT_SOURCES +=                                    \
        glsl/glsl_parser.cpp                            \
        glsl/glsl_lexer.cpp                             \
        glsl/ir_expression_operation.h                  \
+       glsl/ir_expression_operation_constant.h         \
+       glsl/ir_expression_operation_strings.h          \
        glsl/glcpp/glcpp-parse.c                        \
        glsl/glcpp/glcpp-lex.c
 CLEANFILES +=                                          \
@@ -219,6 +239,8 @@ CLEANFILES +=                                               \
        glsl/glsl_parser.cpp                            \
        glsl/glsl_lexer.cpp                             \
        glsl/ir_expression_operation.h                  \
+       glsl/ir_expression_operation_constant.h         \
+       glsl/ir_expression_operation_strings.h          \
        glsl/glcpp/glcpp-parse.c                        \
        glsl/glcpp/glcpp-lex.c