Add a new language to LLVM 3.6 Framework

I am trying to add a new language to integrate with LLVM 3.6 Framework. I have followed a tutorial on - Kaleidoscope: Implementing a Language with LLVM but it dosen’t explain anything on how to integrate a language with LLVM make build system. I have also gone through LLVMBuild Guide (http://llvm.org/docs/LLVMBuild.html) but am still stuck.

My short term goals are to create a language/tool which takes an input file with “.bwt” file extensionand produces an output file with “.owt” file extension

Stacker project in LLVM is the closest to what I want to achieve but has long been removed from LLVM framework.

Any tutorials or simiar LLVM projects which might help me with my short term goals?

Thanks,

Ambuj

In page :

http://en.wikipedia.org/wiki/LLVM

see

"Front ends: programming language support"

You may study how front end languages are built with LLVM .

One important example is CLang itself :

If you add a copy of CLang build statements replaced by your language name
with other required modifications into CLang build system , and created
directories parallel to Clang , I think you may obtain what you want .

Thank you very much .

Mehmet Erol Sanliturk