zoukankan      html  css  js  c++  java
  • MakeFile基本使用

    MakeFile Making

    makefile demo

    # Run this line when useing `make` command
    # default is the target which is an output id in this makefile
    # name after `:` are the dependent targets, when run this line `make` command will check if this target already exists in the makefile
    # if not exists, `make` will run the dependent target line to create the target
    # the second line is command area, in this area, you can run any valid command yout like, but because of it's target, we put the clang or
    # gcc in the area
    default: makefile
         clang main.c tools.c
    
    # tools.o is an output target which is an global in this makefile
    tools.o: default makefile
         clang tools.c -c
    
    # app is an output target which is an global in this makefile
    app: default tools.o
         clang main.o tools.o
    # I'm sure if you use Linux or Unix now and then, and install some applications by source code, you must be familiar with this `clean`
    # We often some clean action is the area, such as `rm -rf someconffile` and so on.
    # There are three brothers named `clean`, `mrproper` and 'disclean' in a single makefile
    clean:
        rm -rf main.o tools.o
    
    disclean: clean
        rm -rf a.out
    
  • 相关阅读:
    input file 上传图片并显示
    关于npm ---- npm 命令行运行多个命令
    webpack4.x 配置
    React的生命周期
    HTML5 meta 属性整理
    css 命名规范
    html5 标签 meter 和 progress
    .NET Linq TO XML 操作XML
    .NET 字符串指定规则添加换行
    Linux Centos上部署ASP.NET网站
  • 原文地址:https://www.cnblogs.com/megachen/p/9156835.html
Copyright © 2011-2022 走看看