1,filter函数的作用和语法
语法:$(filter SUFFIX…,$(SOURCES))
作用:保留字串 " $(SOURCES)" 中所有符合模式 “ SUFFIX ” 的单词
2,实例
sources := main.c AT.txt
foo : $(sources)
cc $(filter %.c,%.s,$(sources)) -o foo
1,filter函数的作用和语法
语法:$(filter SUFFIX…,$(SOURCES))
作用:保留字串 " $(SOURCES)" 中所有符合模式 “ SUFFIX ” 的单词
2,实例
sources := main.c AT.txt
foo : $(sources)
cc $(filter %.c,%.s,$(sources)) -o foo