[NTLUG:Discuss] makefile guidance..
Greg Edwards
greg at nas-inet.com
Wed Apr 25 22:18:16 CDT 2001
don wrote:
>
>
> 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
>
Don,
allnodebug:
make tgt=$tgt CC='gcc -Wall ...' CXX='g++ -Wall ...' all
If your all currently uses -g you don't need an alldebug, do you?
--
Greg Edwards <greg at nas-inet.com>
More information about the Discuss
mailing list