I want to have multiple if condition and want to combine.
ifeq ($(TAG1), on)
LD_FLAGS += -ltestlibrary
endif
ifeq ($(TAG2), on)
LD_FLAGS += -ltestlibrary
endif
I want to do some thing like:
ifeq ($(TAG1) || $(TAG2), on)
LD_FLAGS += -ltestlibrary
endif
How can I do it? The answers in SO Makefile ifeq logical or or How to Use of Multiple condition in 'ifeq' statement gives otherway of doing.