Giter VIP home page Giter VIP logo

makefile_templet's Introduction

Makefile_templet -- Linux环境的Makefile模板

工程说明

本仓库介绍Makefile示例。

  • Makefile_simple:最简单的Makefile示例,针对目录下所有文件(c/c++),根据目标文件决定是库文件还是可执行文件。
  • one_dir_project:单目录工程示例
  • mult_dir_project:多目录工程示例(参考uboot的)
  • mult_dir_project_new:由单目录工程的Makefile改造而成,区别于uboot版本

用法

  • 默认情况下,直接在将本Makefile放到单一的工程目录下make即可。
  • 根据工程实际情况,修改头文件引用目录、源码目录、编译选项(如添加动态/静态库),以及生成文件名。
  • 要修改的地方已经使用 !!!=== 做标示,另外,如果要删除生成的.a或.so,需要在clean下添加删除的文件(本模板不做.a的匹配)。
  • 默认编译:make
  • 详细输出编译信息:make V=1 (V为大写)
  • 调试版本:make debug=y
  • 非调试版本:make debug=n
  • 交叉编译版本:make CROSS_COMPILE=arm-linux-
  • 多目录版本:make SRC_DIR1=foo SRC_DIR2=bar SRC_DIR3=crc

声明

本程序仅限于学习交流。
欢迎使用,任何问题可反馈给作者。

作者

思堂工作室 李迟(Late Lee)

迟思堂工作室

last update:
2017.5.5

makefile_templet's People

Contributors

latelee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.