<html><head></head><body>No, but I have thought of that.&nbsp; We have one part
of the project that has to be compiled with gcc and another part that has
to be compiled with g++.&nbsp; It has to be this way for reasons I can't go into.&nbsp;
That's why everything has to be contained within the the makefiles and specified
with a "make tgt=&lt;platform&gt; &lt;all/alldebug/allnodebug&gt; ". &nbsp; <br>
<br>
Don<br>
<br>
George E. Lass wrote:<br>
<blockquote type="cite" cite="mid:3AE5DCB2.EFDA8B9@osc.com"><pre wrap="">I *think* you can just pass the compiler into the makefile:<br><br>make CC=gcc -g -Wall (and don't forget -Werror)<br><br>--or--<br><br>make CC=g++ -g .......<br><br><br>This *should* override the the CC= whatever that is contained in the <br>makefile itself.  Is this what you want to do?<br><br><br>george<br><br>don wrote:<br></pre>
  <blockquote type="cite"><pre wrap="">Any one have any insight of how to structure a makefile to produce a<br>non-debug executable and a debug executable ?  I could do this in a<br>brute force option, but I was wondering if anyone has any tricks up<br>his/her sleeve they'd like to share.   Using -d on the command line<br>isn't really an option due to the size and existing setup of the project.<br><br>Currently, we have to do "make tgt=xxx all" to build all the<br>executables.  I'd like to modify it so that the target "all" is<br>unchanged,  and add a "alldebug" and "allnodebug" option.  We currently<br>have to define the compilers as such :<br><br>$CC = gcc -g -Wall ...<br>$CXX = g++ -g -Wall....<br><br>and cannot change this either.<br><br>Any suggestions ?  I have a few ideas, but would be interested  in what<br>y'all have to say.<br><br>Thanks in advance,<br>Don<br></pre></blockquote>
    <pre wrap=""><!---->_______________________________________________<br><a class="moz-txt-link-freetext" href="http://www.ntlug.org/mailman/listinfo/discuss">http://www.ntlug.org/mailman/listinfo/discuss</a><br><br><br></pre>
    </blockquote>
    <br>
</body></html>