[comp.sys.next] How to change CFLAGS in IB Makefile

zazula@uazhe0.physics.arizona.edu (RALPH ZAZULA) (04/10/91)

I'd like to change the CFLAGS in the IB generated Makefile from
-O -g -Wall to just -Wall.  I've tried putting CFLAGS = -Wall
in a Makefile.preamble but that didn't do anything (the result
was -Wall -O -g -Wall).  I don't want the debugging/optimizing
in while I'm working on code.  I can add those later when I'm not
doing lots of compiles...  I really don't want to change the file
/usr/lib/nib/app.make but I will if I have to.  Is there some other
solution to this?

Thanks,
Ralph 

   |----------------------------------------------------------------------|
   | Ralph Zazula                               "Computer Addict!"        |
   | University of Arizona                 ---  Department of Physics     |
   |   UAZHEP::ZAZULA                            (DecNet/HEPNet)          |
   |   zazula@uazhe0.physics.arizona.edu         (Internet)               |
   |----------------------------------------------------------------------|
   |   "You can twist perceptions, reality won't budge."  - Neil Peart    |
   |----------------------------------------------------------------------|

melling@cs.psu.edu (Michael D Mellinger) (04/10/91)

In article <1991Apr9.211554.509@arizona.edu> zazula@uazhe0.physics.arizona.edu (RALPH ZAZULA) writes:

   I'd like to change the CFLAGS in the IB generated Makefile from
   -O -g -Wall to just -Wall.  I've tried putting CFLAGS = -Wall
   in a Makefile.preamble but that didn't do anything (the result
   was -Wall -O -g -Wall).  I don't want the debugging/optimizing
   in while I'm working on code.  I can add those later when I'm not
   doing lots of compiles...  I really don't want to change the file
   /usr/lib/nib/app.make but I will if I have to.  Is there some other
   solution to this?

'make debug' works.  However, if you get the "real" answer could you
post?  I want to know too.  Actually, I think NeXT hardwired CFLAGS in
2.0.  Could that be considered a bug?

-Mike