[转] 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

猜你喜欢

转载自www.cnblogs.com/yi-mu-xi/p/12559587.html