Debug vs. Release compilations of application

Eric Norum eric.norum at usask.ca
Wed Mar 27 18:49:56 UTC 2002


On Wednesday, March 27, 2002, at 11:29 AM, Brett Swimley wrote:

> Hello,
>
> I'm trying to determine the "correct" way to build debug vs. release
> versions of my application. I'm using rtems-ss-20011005.
>
> My /make/custom/bsp.cfg file specifies:
>
> CFLAGS_OPTIMIZE_V = -O4 -fomit_frame_pointer
>
> My makefile is based upon the example makefile found in the
> hello_world_c-4.5.0.tgz file on the oar ftp site.
>
> I'm assuming:
>
> make debug:
> will build my application sources with CFLAGS += CFLAGS_DEBUG_V (which I
> currently do not have defined)
>
> make all
> will build my application sources with CFLAGS += CFLAGS_OPTIMIZE_V (as
> defined above).
>
> It appears that these flags are not applied when I perform a make all.
>
> Is there a preferred method (using automake, etc.) of creating a 
> makefile
> for my application build?
>
>
This is a long-standing bug.  I really hope that Ralf can fix this soon.

--
Eric Norum <eric.norum at usask.ca>
Department of Electrical Engineering
University of Saskatchewan
Saskatoon, Canada.
Phone: (306) 966-5394   FAX:   (306) 966-5407




More information about the users mailing list