We need to do
multiple condition checks in our make file. Need your input to achieve the
same in make file ?
#if defined(DEBUG) || defined(TRACE)
(we use this in C sources)
In Makefile
For single condition
check in make file we use
ifeq ($(DEBUG), ON)
...statements
endif
ifeq ($(TRACE), ON)
...statements
endif
How to use the same
comprising of multiple condition checks (using logical AND and logical
OR)
like combining
-
DEBUG &&
TRACE
-
DEBUG ||
TRACE