 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Matt Lowe Guest
|
Posted: Fri Sep 15, 2006 6:31 pm Post subject: bdsproj2mak: generating makefile for a single CONFIG |
|
|
While I'm sure it's wonderful to be able to build every configuration using
bdsproject2mak, I just want to generate makefiles that build for a single
config.
My problem is, certain macros, such as TARGET and TARGETFILENAME, are only
available within the %FOREACH CONFIG block.
So what's the best syntax for generating a makefile for a single config
(say, the active one, or one whose name I know beforehand)?
(And is this easier in Darko's version of bdsproj2mak? I haven't tried it
yet.)
--
Matt Lowe
Milsoft Utility Solutions |
|
| Back to top |
|
 |
Matt Lowe Guest
|
Posted: Fri Sep 15, 2006 6:39 pm Post subject: Re: bdsproj2mak: generating makefile for a single CONFIG |
|
|
Also, I'm assuming that bdsproj2mak -m is the extent of documentation on
this tool. Please correct me if I'm wrong.
Matt |
|
| Back to top |
|
 |
Darko Miletic Guest
|
Posted: Fri Sep 15, 2006 7:48 pm Post subject: Re: bdsproj2mak: generating makefile for a single CONFIG |
|
|
Matt Lowe wrote:
| Quote: | (And is this easier in Darko's version of bdsproj2mak? I haven't tried it
yet.)
|
My makefile generator creates makefile for currently active
configuration in bdsproj. So I guess it should be easier  |
|
| Back to top |
|
 |
Jonathan Benedicto Guest
|
Posted: Fri Sep 15, 2006 9:18 pm Post subject: Re: bdsproj2mak: generating makefile for a single CONFIG |
|
|
Matt Lowe wrote:
| Quote: | So what's the best syntax for generating a makefile for a single config
(say, the active one, or one whose name I know beforehand)?
|
I'm not sure how to do this in bdsproj2mak, but Makefiles For BDS supports
makefile generation from a specific config. You just pass the config name
with the -c parameter.
http://www.jomitech.com/#makefilesforbds
Jonathan
-----------------------------------------------------------------
TwineCompiler - Blazingly fast C++ compiles on ANY machine.
http://www.jomitech.com/#twine
----------------------------------------------------------------- |
|
| Back to top |
|
 |
Dennis Jones Guest
|
Posted: Wed Sep 20, 2006 8:10 am Post subject: Re: bdsproj2mak: generating makefile for a single CONFIG |
|
|
"Matt Lowe" <dontspammatt (AT) milsoft (DOT) com> wrote in message
news:450aab3f (AT) newsgroups (DOT) borland.com...
| Quote: | While I'm sure it's wonderful to be able to build every configuration
using bdsproject2mak, I just want to generate makefiles that build for a
single config.
My problem is, certain macros, such as TARGET and TARGETFILENAME, are
only available within the %FOREACH CONFIG block.
So what's the best syntax for generating a makefile for a single config
(say, the active one, or one whose name I know beforehand)?
(And is this easier in Darko's version of bdsproj2mak? I haven't tried it
yet.)
|
Realizing that:
1) bdsproj2mak has a number of bugs and that other makefile generators are
likely to have corrected or avoided those same bugs, and
2) bdsproj2mak could be updated in the future to generate a makefile for the
active config, or allow an option to specify the config,
are you aware that you can simply specify which target to build on the
command line? For instance:
make -f MyProject.mak Release_Build
- Dennis |
|
| Back to top |
|
 |
Matt Lowe Guest
|
Posted: Thu Sep 21, 2006 1:35 am Post subject: Re: bdsproj2mak: generating makefile for a single CONFIG |
|
|
"Dennis Jones" <nospam (AT) nospam (DOT) com> wrote in message
news:4510beb5$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
are you aware that you can simply specify which target to build on the
command line? For instance:
make -f MyProject.mak Release_Build
|
Aha.
This only works for the individual mak files created with bdsproj2mak, and
not with the mak file created for a bdsgroup file, but it shows me how to
fix the problem using MAKE, I think. I was thinking I needed to modify the
per-project output for bdsproj2mak, but I guess I can just modify the final
mak file instead.
Thanks.
Matt Lowe |
|
| Back to top |
|
 |
Matt Lowe Guest
|
Posted: Thu Sep 21, 2006 1:46 am Post subject: Re: bdsproj2mak: generating makefile for a single CONFIG |
|
|
"Matt Lowe" <dontspammatt (AT) milsoft (DOT) com> wrote in message
news:4511a629$1 (AT) newsgroups (DOT) borland.com...
| Quote: | I guess I can just modify the final mak file instead.
|
Or, I realize now, I can just define the target on the command line .... I
suppose this is the cleanest way to do it.
make -DTARGET="Debug_Build" -fMyProject.mak
Matt Lowe |
|
| Back to top |
|
 |
Dennis Jones Guest
|
Posted: Thu Sep 21, 2006 3:31 am Post subject: Re: bdsproj2mak: generating makefile for a single CONFIG |
|
|
"Matt Lowe" <dontspammatt (AT) milsoft (DOT) com> wrote in message
news:4511a8aa$1 (AT) newsgroups (DOT) borland.com...
| Quote: | "Matt Lowe" <dontspammatt (AT) milsoft (DOT) com> wrote in message
news:4511a629$1 (AT) newsgroups (DOT) borland.com...
I guess I can just modify the final mak file instead.
Or, I realize now, I can just define the target on the command line .... I
suppose this is the cleanest way to do it.
make -DTARGET="Debug_Build" -fMyProject.mak
|
That's exactly right, but it is not always necessary to define TARGET
explicitly. MAKE's syntax treats anything following the name of the
makefile as a target specification. Thus, you can simply specify the target
after the name of the makefile, like I showed in my first post:
make -fMyProject.mak Debug_Build
Some targets don't work with this syntax (make_dirs, for example), but most
do:
make -fMyProject.mak clean Release_Build Debug_Build
- Dennis |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|