Makefile中notdir函数使用方法

Makefile中notdir使用方法
    notdir用于去掉文件的绝对路径,只保留文件名。

一、作用
剥离文件的绝对路径,只保留文件名。

二、格式
$(notdir 文件列表)

三、实例

图1 源文件结构


图2 notdir实例