makefile

 

CC 与 CXX: 
    这是 C 与 C++ 编译器命令。默认值一般是 “gcc” 与 “g++”。
 gcc 来编译链接 C++ 程序也是可行的
   gcc helloworld.cpp -lstdc++ -o helloworld
CPPFLAGS will be given to the C preprocessor
    这是用于预处理阶段的选项。
CFLAGS 与 CXXFLAGS
    CFLAGS 表示用于 C 编译器的选项,CXXFLAGS 表示用于 C++ 编译器的选项。这两个变量实际上涵盖了编译和汇编两个步骤。

http://blog.sina.com.cn/s/blog_78d30f6b0101flh1.html

 

shell:

  

patsubst:

  

静态动态库 混链接:

  静态库直接写路径. 动态前面加-l 

   

gcc/g++ 编译选项,详见:http://www.cnblogs.com/SZxiaochun/p/7722505.html

makefile 详见:

  http://www.cnblogs.com/wang_yb/p/3990952.html

  https://seisman.github.io/how-to-write-makefile/introduction.html

 

 

posted @ 2017-10-24 10:51  那一剑的風情  阅读(170)  评论(0编辑  收藏  举报