swarm-support
[Top][All Lists]
Advanced

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

Re: CFLAGS, CPPFLAGS, etc.


From: Alex Lancaster
Subject: Re: CFLAGS, CPPFLAGS, etc.
Date: 27 Sep 1999 14:19:31 -0600
User-agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) Emacs/20.4

>>>>> "PJ" == Paul Johnson <address@hidden> writes:

[...]


PJ> 1. We should no longer do command line Flag-Setting with make, as
PJ> in

PJ> make CPPFLAGS=-DMYSETTING

PJ> because it obliterates the CPPFLAGS now set in the Swarm
PJ> Makefile.common file.  Rather, the right thing is to add a line
PJ> toward the end of the Makefile

PJ> override CPPFLAGS += -DMYSETTING

The thing to do, to override CPPFLAGS, try:

make EXTRACPPFLAGS+=-DMYSETTING

etc/swarm/Makefile.common now parses the EXTRACPPFLAGS macro.  The
point of the this `EXTRA' macro is so you can add flags from the
command-line (since you don't override the internally-used CPPFLAGS)
without messing around with the Makefiles.

Alex


-- 
  Alex Lancaster           |  e-mail: address@hidden
  Swarm Program            |     web: http://www.santafe.edu/~alex
  Santa Fe Institute       |     tel: +1-(505) 984-8800 (ext 242)
-------------------------------------------------------------------

                  ==================================
   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.



reply via email to

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