[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Conditional Compilation
From: |
Steve Emsley |
Subject: |
Conditional Compilation |
Date: |
Tue, 6 Jan 1998 20:47:32 GMT |
Hi,
I've been trying to set up my probe display so that I can set a
preprocessor flag to determine whether or not a display will be
created. So I do the following:
#ifdef LIGHT
... code to create display
#endif
when I run the command:
cpp -DLIGHT infile outfile
it works fine. However, I cannot figure out what I need to put into
the Makefile. If I create:
CPPFLAGS=-DLIGHT
and add $(CPPFLAGS) to the CFLAGS line the only time I see the -DLIGHT
in the expanded command list to the compiler is when a .c file I use
is compiled. The -DLIGHT does not seem to be included when any of the
.m files are compiled...where it is required
Can someone point me to the right directive!
Cheers,
Steve.
--
---------------------------------------------------------------------
Steve Emsley Ecosystems Analysis & Management Group
address@hidden University of Warwick, England
http://www.oikos.warwick.ac.uk/~sme/ (+44) (0)1598 753648
---------------------------------------------------------------------
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
==================================
- Conditional Compilation,
Steve Emsley <=