I would like to build a clang source to source translator plugin for cuda language.Unfortunately i am not able to build the clang plugin itself.I have tried the method suggested by google to copy and paste the PrintFunctionNames and build the same and the other one suggested by http://getoffmylawnentertainment.com/blog/2011/10/01/clang-plugin-development-tutorial/ website did not work for me. While building with google method I get:
../../../../Makefile.common:61: ../../../../Makefile.config: No such file or directory ../../../../Makefile.common:69: /Makefile.rules: No such file or directory make: * No rule to make target `/Makefile.rules'. Stop. This did not work for me How to build clang/examples/PrintFunctionNames? I am getting this error when built using cmake:
teddy@ubuntu:~/dev-lib/example/build$ make printer/CMakeFiles/PrintFunctionNames.dir/flags.make:6: * commands commence before first target. Stop. make[1]: * [printer/CMakeFiles/PrintFunctionNames.dir/all] Error 2 make: *** [all] Error 2
I am using ubuntu 10.10 and cmake 2.8.1 to build the clang plugin. Clang Version:3.1 please help me to build the clang plugin... Thank you