gmake使用笔记

  1. 在makefile里面写rule的时候,在rule的前面可以加不同的修饰符让make对于该rule有不同的操作,具体是:
    @ : do not echo the command
    - : the error in the command should be ignored by make.
    + : execute the command even if the --just-print(-n) option is given.
  2. 如果想要在一次编译里面尽量多的执行命令而不会因为某些错误而退出,可以使用--keep-going(-k) option.
  3. 在编译C/C++程序的时候的一个默认变量:
    For C:
    CC : program compiling C program, default is cc.
    CPP : C program preprocessor. default is $(CC) -E
    CFLAGS : extra flags given to CC.
    CXXFLAGS : extra flags given to CXX
    LDFLAGS : extra flags given to the linker
    For C++:
    CXX : C++ compiler, default is g++.
    CPPFLAGS : extra flags given to CXX.
    RM : command to remove a file, default is rm -f.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值