diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html index f9e82989537..7db23f393aa 100644 --- a/docs/WritingAnLLVMPass.html +++ b/docs/WritingAnLLVMPass.html @@ -144,15 +144,24 @@ First thing you need to do is create a new directory somewhere in the LLVM source base. For this example, we'll assume that you made "lib/Transforms/Hello". The first thing you must do is set up a build script (Makefile) that will compile the source code for the new pass. To do -this, copy this into "Makefile":
+this, copy this into "Makefile" (be very careful that there are no +extra space characters at the end of the lines though... that seems to confuse +gmake):
# Makefile for hello pass -LEVEL = ../../.. # Path to top level of LLVM heirarchy -LIBRARYNAME = hello # Name of the library to build -SHARED_LIBRARY = 1 # Build a dynamically loadable shared object -include $(LEVEL)/Makefile.common # Include the makefile implementation stuff +# Path to top level of LLVM heirarchy +LEVEL = ../../.. + +# Name of the library to build +LIBRARYNAME = hello + +# Build a dynamically loadable shared object +SHARED_LIBRARY = 1 + +# Include the makefile implementation stuff +include $(LEVEL)/Makefile.common
This makefile specifies that all of the .cpp files in the current @@ -966,6 +975,6 @@ href="#Pass">Pass, only the other way around.