Thread overview
How do I make wxWidgets release build?
Nov 24, 2004
Storck
Nov 25, 2004
W³odzimierz Skiba
Nov 25, 2004
Storck
November 24, 2004
Hi all!
Could someone please explain how to put together a make file that would build a
wxWidgets release version instead of debug?
I don't really understand why there isn't such a make file for Digital Mars
since there are for MingW, Open Watcom, Borland and most others. Is it hard to
do? I have read about bakefiles, but I am not sure how to do it. Has anyone done
it? I would be most helpful for any help because I would prefer using DMC.

/ Storck


November 25, 2004
Storck <Storck_member@pathlink.com> wrote in news:co2obs$2m68$1@digitaldaemon.com:
> Hi all!
> Could someone please explain how to put together a make file that
> would build a wxWidgets release version instead of debug?

I hope I will not miss any stage:

1. Download and install wxWidgets some 2.5.X
2. Download and install Bakefiles 0.1.4.
3. Read and follow comment at begining of
   wxWidgets\build\bakefiles\Bakefiles.bkgen file to turn DMC generation
4. Find <if cond="FORMAT=='dmars'"> at the end of
   wxWidgets\build\bakefiles\config.bkl and
   replace <set var="BUILD">debug</set> with <set var="BUILD">release</set>
5. Run
   cd wxWidgets\build\bakefiles
   bakefile_gen -f dmars

> I don't really understand why there isn't such a make file for Digital Mars since there are for MingW, Open Watcom, Borland and most others.

There is single makefile for each compiler. The difference that MinGW, Watcom and Borland supports conditions within makefiles so they can perform both release and debug builds. Free MAKE.EXE can't do this because conditions are not supported there. There is nothing more wxWidgets or Bakefile can do about it other than regenerating makefiles with new build setting. There is one solution to it: buy full DMC with smake and use CVS version of bakefiles to produce another set of makefiles which fully supports conditions.

ABX
November 25, 2004
Thank you for the answer!
I tried the first soloution, but I guess I didn't use bakefiles the correct way.
I have never tried it before.
I am already the hapy owner of the CD version. That's why I was a little
frustrated. Now that I know I will try to use smake.

/ Storck


In article <co4kc7$250n$1@digitaldaemon.com>, W³odzimierz Skiba says...
>
>Storck <Storck_member@pathlink.com> wrote in news:co2obs$2m68$1@digitaldaemon.com:
>> Hi all!
>> Could someone please explain how to put together a make file that
>> would build a wxWidgets release version instead of debug?
>
>I hope I will not miss any stage:
>
>1. Download and install wxWidgets some 2.5.X
>2. Download and install Bakefiles 0.1.4.
>3. Read and follow comment at begining of
>   wxWidgets\build\bakefiles\Bakefiles.bkgen file to turn DMC generation
>4. Find <if cond="FORMAT=='dmars'"> at the end of
>   wxWidgets\build\bakefiles\config.bkl and
>   replace <set var="BUILD">debug</set> with <set var="BUILD">release</set>
>5. Run
>   cd wxWidgets\build\bakefiles
>   bakefile_gen -f dmars
>
>> I don't really understand why there isn't such a make file for Digital Mars since there are for MingW, Open Watcom, Borland and most others.
>
>There is single makefile for each compiler. The difference that MinGW, Watcom and Borland supports conditions within makefiles so they can perform both release and debug builds. Free MAKE.EXE can't do this because conditions are not supported there. There is nothing more wxWidgets or Bakefile can do about it other than regenerating makefiles with new build setting. There is one solution to it: buy full DMC with smake and use CVS version of bakefiles to produce another set of makefiles which fully supports conditions.
>
>ABX