Debug vs. Release compilations of application

Brett Swimley brett.swimley at aedinc.net
Wed Mar 27 21:00:18 UTC 2002


Thanks, Eric, for the response.

For now, I'll just modify my makefile to include the optimizations based on
a RELEASE definition passed into make.

Regards,

Brett

> -----Original Message-----
> From: Eric Norum [mailto:eric.norum at usask.ca]
> Sent: Wednesday, March 27, 2002 11:50 AM
> To: brett.swimley at aedinc.net
> Cc: 'RTEMS'
> Subject: Re: Debug vs. Release compilations of application
>
>
>
> 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