[转] makefile ifeq多条件并列

转自 https://www.cnblogs.com/jiangzhaowei/p/7602334.html

 

ifeq ($(CONFIG_NVME_CUSE),y)
SYS_LIBS += -lfuse3
endif

ifeq ($(CONFIG_FUSE),y)
SYS_LIBS += -lfuse3
endif

可以改为:

ifneq ($(CONFIG_NVME_CUSE)$(CONFIG_FUSE),)
SYS_LIBS += -lfuse3
endif

posted @ 2020-03-24 16:08  yimuxi  阅读(2365)  评论(0)    收藏  举报