#ifdef directives in makefile

#ifdef directives in makefile

Post by Arun Gupt » Thu, 16 Sep 1999 04:00:00



Hi,

I'm using makefiles for compiling my java codes. In these makefiles, I'm
using CFLAGS to pass the requisite variable definitions. But even then
#ifdef directive does not seems to be picking up the variable as being
defined.

Any pointers ?
Arun
--
=============================================
There is only one me, I must live myself!
There is only one today, I must live itself!
=============================================
http://members.tripod.com/~apgupta/index.html
=============================================

 
 
 

#ifdef directives in makefile

Post by Paul D. Smi » Thu, 16 Sep 1999 04:00:00



  ag> I'm using makefiles for compiling my java codes. In these
  ag> makefiles, I'm using CFLAGS to pass the requisite variable
  ag> definitions. But even then #ifdef directive does not seems to be
  ag> picking up the variable as being defined.

You'll have to be more detailed.  Give an example.  What does your
compile line look like when make invokes the compiler?  Do you see the
-DFOO option on the compile line?

I'm not sure what you mean by "using CFLAGS to pass the requisite
variable definitions"?  You're aware that compilers don't know CFLAGS
from a hole in the wall; it's up to your makefile rules to invoke the
compiler using the value of the make variable $(CFLAGS)... right?

--
-------------------------------------------------------------------------------

 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.