首页 > 其他分享 >itop2k1000开发板Makefile基本语法-notdir函数

itop2k1000开发板Makefile基本语法-notdir函数

时间:2022-12-12 12:00:26浏览次数:50  
标签:Makefile 开发板 notdir test 去掉 itop2k1000

格式: $ (notdir $ (var) )
功能: 去掉路径。
举例:
我们在上面的 makefile 中加上以下代码, 因为上面的例子我们得到的结果是 ./a.c 和 ./test/b.c 是有路
径的, 我们可以直接使用这个变量。

执行结果:
因为 notdir 函数可以去掉路径, 所以 /a.c 和 ./test/b.c 去掉路径就得到了 a.c 和 b.c

更多内容可以B站了解迅为龙芯2k1000开发板

标签:Makefile,开发板,notdir,test,去掉,itop2k1000
From: https://www.cnblogs.com/liyue3/p/16975684.html

相关文章