[LLVMdev] Question about TableGen when adding LLVM Backend.

Andreas Färber andreas.faerber at web.de
Sun Mar 13 05:18:47 PDT 2011


Hi Christoph,

Am 13.03.2011 um 12:33 schrieb Christoph Erhardt:

>> In practice that'll mean adding the correct directives to
>> CMakeLists.txt, not Makefile, right? That's what the targets I looked
>> at did.
> LLVM can be built using either CMake or the GNU Autotools. Your  
> backend
> ought to provide support for both build systems, so you should  
> create a
> CMakeLists.txt as well as a Makefile in your sub-directory.

> The Makefile appears to be rather trivial because there's some  
> automagic
> going on - nevertheless, you will need one. :-)

Now I see: My confusion came from seeing only the customized file  
names in BUILT_SOURCES. But Makefile.rules:1681 actually processes  
those files by *Gen*.inc.tmp name patterns.

Thanks for explaining,

Andreas

>> Or is that optional when you just invoke "make"?
> In that case you're using the Autotools, so your Makefile is going  
> to be
> utilized.
>
> Best regards,
> Christoph




More information about the llvm-dev mailing list