关于makefile中的参数

man gcc

...
  -I dir
  Add the directory dir to the list of directories to be searched for header files.  
...
  -Ldir
  Add directory dir to the list of directories to be searched for -l.
...
  -Wl,option
  Pass option as an option to the linker. If option contains commas, it is split into multiple options at the commas.
...

-l是加一个编译时查找头文件的路径;
-L是加一个编译时查找动态库的路径;
-Wl 是把-rpath 传递为linker的选项;


man ld
...
  -rpath dir
  Add a directory to the runtime library search path.  
...

-rpath 是加一个运行时查找动态库的路径;

你可能感兴趣的:(关于makefile中的参数)