Another effective solution is to create 3 different
include files each containing your build-specific
definitions.
You then create 3 targets (within the same
project). Each target specifies the appropriate corresponding "prefix
file" for the desired build. You customize the output files for each
target as desired.
I'm using an old version of CW (4.1). In
my version you set the prefix file under the Language Settings panel, under
"C/C++ Language".
William C.
Yochum
Microwave Data Systems Inc. Principal Eng./Software 175 Science
Parkway Phone:
(585) 242-8319
Rochester, NY 14620 FAX: (585) 241-5590
USA
-----Original Message----- From: rootesracer
[mailto:j...@earthlink.net] Sent: Friday, February 27, 2004 11:16
AM To: m...@yahoogroups.com Subject: [motoroladsp] Re:
ATTN: Metrowerks/Motorola Folks: Can you build from the command line?
Pete,
This is an effective work-around, thanks for
your thoughts. --- In m...@yahoogroups.com, "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 m...@yahoogroups.com, "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.
_____________________________________ Note: If you do a simple
"reply" with your email client, only the author of this message will receive
your answer. You need to do a "reply all" if you want your answer to be
distributed to the entire group.
_____________________________________ About this discussion group: