diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2010-08-13 17:46:25 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-08-13 19:09:36 -0700 |
commit | 9364ad8528b8482afd01aab9b5ebe8c9176883df (patch) | |
tree | 1e093f4004341a08004acf65f1b9d130a5cb223a | |
parent | 43ff8f1a4b90554eae489cebb7e05f983dd9ad66 (diff) |
glsl2/Makefile: Add a 'make builtins' target.
This copies over a dummy builtin_functions.cpp and rebuilds a
bootstrapped version of the compiler, then uses that to generate the
proper list of builtins. Finally, it rebuilds the compiler with the new
list.
Unfortunately, it's no longer automatic, but at least it works.
-rw-r--r-- | src/glsl/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/glsl/Makefile b/src/glsl/Makefile index b13a612591..1d200b47b4 100644 --- a/src/glsl/Makefile +++ b/src/glsl/Makefile @@ -164,8 +164,13 @@ glcpp/glcpp-lex.c: glcpp/glcpp-lex.l glcpp/glcpp-parse.c: glcpp/glcpp-parse.y bison -v -o "$@" --defines=glcpp/glcpp-parse.h $< -builtin_function.cpp: builtins/profiles/* builtins/ir/* builtins/tools/generate_builtins.py builtins/tools/texture_builtins.py +builtins: builtin_function.cpp builtins/profiles/* builtins/ir/* builtins/tools/generate_builtins.py builtins/tools/texture_builtins.py + @echo Bootstrapping the compiler... cp builtins/tools/builtin_function.cpp . + make glsl_compiler + @echo Regenerating builtin_function.cpp... ./builtins/tools/generate_builtins.py > builtin_function.cpp + @echo Rebuilding the real compiler... + make glsl_compiler -include depend |