I have managed to get it the executable generated by adding my directory to the Makefile in clang/tools directory.<br><br>So in general here is what I had to t do<br>1. make a new directory with for the app<br>2. copy and modify the makefile and CMakelists.txt<br>
3. add the subdirectory in the CMakelists.txt in clang/tools<br>4. add the directory to the DIRS variable in clang/tools/Makefile <br><br>So the LLVM and Clang uses a mix of cmake and Makefiles? Can you give an abstract view of how the build process works?<br>
<br>Thanks,<br>Moataz<br><br><div class="gmail_quote">On Sat, Oct 10, 2009 at 6:32 PM, moataz ragab <span dir="ltr"><<a href="mailto:mtzrgb@gmail.com">mtzrgb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I would like to use the build system of llvm to build my tool that is based on clang.<br><br>I made a new directory under clang/tools with the name of the tool "polyextract". I copied the CMakelist.txt and Makefile from the clang-cc and modified them<br>

I then configure from llvm trunk and make, but unfortunately I only get the object file generated and no executable is generated in the Debug/bin<br><br>I would appreciate your help. Sorry I am not familiar with the build systems.<br>

<br>Attached are the files I modified<br><br>Thanks<br><font color="#888888">Moataz<br>
</font></blockquote></div><br>