help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help regarding multiple conditional checks


From: parimala.sathyapramodha
Subject: Help regarding multiple conditional checks
Date: Wed, 30 Jun 2010 16:47:19 +0530

Hi,
 
Please help in this regard,
 
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
 
Best Regards,
Parimalapramod
 
 
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]