LLVM Makefile 指南(LLVM Makefile Guide)

本文档详细介绍了LLVM Makefile系统的使用方法及其特点。该系统不仅支持LLVM项目的构建,还能扩展支持其他软件项目。文章涵盖了Makefile系统的一般概念、如何构建库和工具等内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

翻译于( 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

  • 变量

    • 控制变量

    • 重写变量

    • 可读变量

    • 内部变量

    *转载请注明出处

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值