DSPRelated.com
Forums

ATTN: Metrowerks/Motorola Folks: Can you build from the command line?

Started by rootesracer February 26, 2004
Since my original question got ignored, I will have to rephrase the
subject so that perhaps I get an answer.
Has anyone figured out how to build a project from the command line,
or a batch file?

I need to build 3 different versions of my code using conditional
compilations.

I need to compile and rename the output file for each build.

Additionally, the build mechanism _should_ have a method to allow a
compile time argument to supply a #define to enable the conditional
compilation.

Anyone have opinions, or a better way to go about it? I am running Version 5.02 of the 56F8XX compiler.



The version of the tools that you are using currently does not have
any command line tools support. The command line tools option was
introduced in CW for Hybrid v6.0 of the tools.

~Irene

--- In , "rootesracer"
<jarrid_gross@e...> wrote:
> Since my original question got ignored, I will have to rephrase
the
> subject so that perhaps I get an answer. >
> Has anyone figured out how to build a project from the command
line,
> or a batch file?
>
> I need to build 3 different versions of my code using conditional
> compilations.
>
> I need to compile and rename the output file for each build.
>
> Additionally, the build mechanism _should_ have a method to allow a
> compile time argument to supply a #define to enable the conditional
> compilation.
>
> Anyone have opinions, or a better way to go about it? > I am running Version 5.02 of the 56F8XX compiler.




Hi,
I do a similar thing by creating 3 CW projects, one for each build.
I put the base code in a directory and create the projects in 3
subdirectories. I then have a header file in each subdirectory that
has the #defines for the conditional compiles.
Pete

--- In , "rootesracer" <jarrid_gross@e...>
wrote:
> Since my original question got ignored, I will have to rephrase the
> subject so that perhaps I get an answer. >
> Has anyone figured out how to build a project from the command line,
> or a batch file?
>
> I need to build 3 different versions of my code using conditional
> compilations.
>
> I need to compile and rename the output file for each build.
>
> Additionally, the build mechanism _should_ have a method to allow a
> compile time argument to supply a #define to enable the conditional
> compilation.
>
> Anyone have opinions, or a better way to go about it? > I am running Version 5.02 of the 56F8XX compiler.



Pete,

This is an effective work-around, thanks for your thoughts.
--- In , "Pete Becher" <pbecher@d...>
wrote:
> Hi,
> I do a similar thing by creating 3 CW projects, one for each
build.
> I put the base code in a directory and create the projects in 3
> subdirectories. I then have a header file in each subdirectory
that
> has the #defines for the conditional compiles.
> Pete
>
> --- In , "rootesracer"
<jarrid_gross@e...>
> wrote:
> > Since my original question got ignored, I will have to rephrase
the
> > subject so that perhaps I get an answer.
> >
> >
> >
> > Has anyone figured out how to build a project from the command
line,
> > or a batch file?
> >
> > I need to build 3 different versions of my code using conditional
> > compilations.
> >
> > I need to compile and rename the output file for each build.
> >
> > Additionally, the build mechanism _should_ have a method to allow
a
> > compile time argument to supply a #define to enable the
conditional
> > compilation.
> >
> > Anyone have opinions, or a better way to go about it?
> >
> >
> > I am running Version 5.02 of the 56F8XX compiler.