<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 17/11/10 13:28, Torgny Andersson wrote:
    <blockquote
      cite="mid:AANLkTimAdwzNp5vmWJA1U2eaRxhaRE3fyZ2P=QB5-hhc@mail.gmail.com"
      type="cite">Hi!<br>
      I'm trying to build a backend outside the LLVM source tree. My
      directory structure is as follows:<br>
        llvm -- the root of the LLVM source tree<br>
        llvm/lib/Target -- where the standard backends are stored
      (Sparc, etc).<br>
        my_dir/my_backend -- where I store the backend I'm writing.<br>
      <br>
      I've been fiddeling with the variables documented in the
      llvm/Makefile.common (LEVEL, LLVM_SRC_ROOT, PROJ_SRC_DIR, etc) but
      without success. Is what I'm trying to do possible with the LLVM
      buildsystem? If so, how?<br>
      <br>
      Thank you!<br>
      <br>
        / Torgny<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
    </blockquote>
    <br>
    You don't need to change the makefiles. Simply update the configure
    script as explained here <a
      href="http://llvm.org/docs/WritingAnLLVMBackend.html#Preliminaries">http://llvm.org/docs/WritingAnLLVMBackend.html#Preliminaries</a><br>
    <br>
    Have your backend's folder live in llvm/lib/Target/ with the others.<br>
    <br>
  </body>
</html>