X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FMakefileGuide.rst;h=a5e273124a41cde2c02343c9c9e39b7a13521e11;hb=0a6b8b7be0d6303b6574c2b2c098428c8b945736;hp=0bb4a3ccd1c9be95daaa8c922c973112752c2b47;hpb=1a9e24844fc8e9f147d0722c7384523e843bd5bb;p=oota-llvm.git diff --git a/docs/MakefileGuide.rst b/docs/MakefileGuide.rst index 0bb4a3ccd1c..a5e273124a4 100644 --- a/docs/MakefileGuide.rst +++ b/docs/MakefileGuide.rst @@ -47,9 +47,7 @@ quickly by utilizing the built-in features that are used to compile LLVM. LLVM compiles itself using the same features of the makefile system as used for projects. -For complete details on setting up your projects configuration, simply mimic the -``llvm/projects/sample`` project. Or for further details, consult the -`Projects `_ page. +For further details, consult the `Projects `_ page. Variable Values --------------- @@ -153,7 +151,7 @@ libraries are the default. For example: LIBRARYNAME = mylib SHARED_LIBRARY = 1 - ARCHIVE_LIBRARY = 1 + BUILD_ARCHIVE = 1 says to build a library named ``mylib`` with both a shared library (``mylib.so``) and an archive library (``mylib.a``) version. The contents of all @@ -168,9 +166,9 @@ openable with the ``dlopen`` function and searchable with the ``dlsym`` function (or your operating system's equivalents). While this isn't strictly necessary on Linux and a few other platforms, it is required on systems like HP-UX and Darwin. You should use ``LOADABLE_MODULE`` for any shared library that you -intend to be loaded into an tool via the ``-load`` option. `Pass documentation -`_ has an example of why you might want to do -this. +intend to be loaded into an tool via the ``-load`` option. :ref:`Pass +documentation ` has an example of why you might +want to do this. Loadable Modules ^^^^^^^^^^^^^^^^ @@ -236,7 +234,7 @@ the ``-l`` option). In this case, only the symbols that are unresolved *at that point* will be resolved from the library, if they exist. Other (unreferenced) symbols will not be included when the ``.a`` syntax is used. Note that in order to use the ``.a`` suffix, the library in question must have been -built with the ``ARCHIVE_LIBRARY`` option set. +built with the ``BUILD_ARCHIVE`` option set. JIT Tools ^^^^^^^^^