LLVM Makefile 指南(LLVM Makefile Guide)

翻譯於(http://llvm.org/docs/MakefileGuide.html
  • 介紹

    該文檔提供了有關LLVM makefile 系統的使用信息.

    This document provides usage information about the LLVM makefile system. Whileloosely patterned after the BSD makefile system, LLVM has taken a departure fromBSD in order to implement additional features needed by LLVM. Although makefilesystems, such as automake, were attempted at one point, it has become clearthat the features needed by LLVM and theMakefile norm are too great to usea more limited tool. Consequently, LLVM requires simply GNU Make 3.79, a widelyportable makefile processor. LLVM unabashedly makes heavy use of the features ofGNU Make so the dependency on GNU Make is firm. If you’re not familiar withmake, it is recommended that you read theGNU Makefile Manual.

    While this document is rightly part of the LLVM Programmer’sManual, it is treated separately here because of thevolume of content and because it is often an early source of bewilderment fornew developers.

  • 一般概念

    LLVM Makefile 系統是LLVM的組件,它負責構建軟件,測試,生成發佈,檢查發佈,安裝和卸載等。貫穿代碼樹,它包含了幾個文件。這些文件和一般的概念將會在這個部分被描述。

    • 項目

      LLVM Makefile 系統是很豐富的。它不但可以構建自己的軟件,也可以構建你的。通過目錄llvm/projects 可以將軟件構建到系統中。任何projects下的目錄,既有configure腳本和Makefile文件 都會被認爲是一個項目,這個項目使用LLVM Makefile系統。使用了LLVM 構建軟件並不需要 LLVM Makefile 系統 甚至是配置到llvm/projects目錄。但是如果配置了的話,將會使你的項目可以快速建立並運行通過用於編譯llvm的內置特性。LLVM 編譯自己使用的makefile 系統,與在其他項目中使用的是一樣的。

    • 變量值

    • 包含Makefiles

      • Makefile

      • Makefile.common

      • Makefile.config

      • Makefile.rules

      • 註釋

  • 教程

    • 庫(Libraries)

      • 可裝載模塊

    • 工具(Tools)

      • JIT Tools

  • 支持的目標

    • all(默認)

    • all-local

    • check

    • check-local

    • clean

    • clean-tool

    • dist

    • dist-check

    • dist-clean

    • install

    • preconditions

    • printvars

    • reconfigure

    • spotless

    • tags

    • uninstall

  • 變量

    • 控制變量

    • 重寫變量

    • 可讀變量

    • 內部變量

    *轉載請註明出處

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章