[NTLUG:Discuss] makefile guidance..
don
tx.saluki at verizon.net
Tue Apr 24 13:31:12 CDT 2001
Any one have any insight of how to structure a makefile to produce a
non-debug executable and a debug executable ? I could do this in a
brute force option, but I was wondering if anyone has any tricks up
his/her sleeve they'd like to share. Using -d on the command line
isn't really an option due to the size and existing setup of the project.
Currently, we have to do "make tgt=xxx all" to build all the
executables. I'd like to modify it so that the target "all" is
unchanged, and add a "alldebug" and "allnodebug" option. We currently
have to define the compilers as such :
$CC = gcc -g -Wall ...
$CXX = g++ -g -Wall....
and cannot change this either.
Any suggestions ? I have a few ideas, but would be interested in what
y'all have to say.
Thanks in advance,
Don
More information about the Discuss
mailing list