title: How to write an LLVM pass?
body: <p>I am writing an LLVM pass, just following <a href="http://llvm.org/docs/WritingAnLLVMPass.html#basic-code-required" rel="nofollow">http://llvm.org/docs/WritingAnLLVMPass.html#basic-code-required</a>.</p>
  
  <p>I have finished the <code>Makefile</code>, the <code>source code</code>, however, when I came to do the <code>make</code>:</p>
  
  <p><code>Now that it’s all together, compile the file with a simple “gmake” command in the local directory and you should get a new file “Debug+Asserts/lib/Hello.so” under the top level directory of the LLVM source tree (not in the local directory).</code></p>
  
  <p>It reported </p>
  
  <p><code>../../../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.</code></p>
  
  <p>I didn't change the any configuration files in the root directory. There is no <code>Makefile.config</code> in my root directory, but there is a file called <code>Makefile.config.in</code>. <code>Makefile.common</code> appears in the root directory.</p>