Re: [Harbour] nmake optimization for .prg

2008-11-15 Thread Szakáts Viktor
Here is the logic converted to plain batch solution (needs Windows NT or upper), if anyone is interested: #*** # General *.prg --> *.obj COMPILE rules for STATIC Libraries #*** !if "$(HB_BATCH_

Re: [Harbour] nmake optimization for .prg

2008-11-15 Thread Szakáts Viktor
Finally, by creating a small external tool to convert the list of .prg files to .c files in the object directory, it's now possible to use the batch rules with MSVC. It speeded up build creation quite noticeably, and made the output much cleaner (one harbour, one C compiler, one linker and one re

Re: [Harbour] nmake optimization for .prg

2008-10-08 Thread Szakáts Viktor
Hi Przemek, Have you tried sth like: set HB_CFG_FILE=hb_bld.cfg echo CC=$(CC) > %HB_CFG_FILE% echo CFLAGS=$(CLIBFLAGS) -Fo$(OBJ_DIR)\ >> %HB_CFG_FILE% echo VERBOSE=YES >> %HB_CFG_FILE% echo DELTMP=YES >> %HB_CFG_FILE% and then: {$(RTL_DIR)}.prg{$(OBJ_DIR)}$(OBJEXT):: $(HB) $(

Re: [Harbour] nmake optimization for .prg

2008-10-07 Thread Przemyslaw Czerpak
On Tue, 07 Oct 2008, Szak�ts Viktor wrote: Hi Viktor, > I'd imaging two ways to achieve that: > 1) To have a batch rule with two steps. >.prg -> .obj rules, with two command, >Harbour getting all .prg as input, creating .c files, then >cl.exe getting all .c files as input. >This s

Re: [Harbour] nmake optimization for .prg

2008-10-07 Thread Szakáts Viktor
Hi Alex. I'm trying to optimize MSVC non-GNU make, so that it compiles .prg in one batch (== one harbour.exe call by .lib), just like for .c files, as opposed to the current one-by-one .prg file compilation approach. Does anyone have an idea how to fix this? Marek, Paul? I may not understan

Re: [Harbour] nmake optimization for .prg

2008-10-07 Thread Alex Strickland
Szakáts Viktor wrote: I'm trying to optimize MSVC non-GNU make, so that it compiles .prg in one batch (== one harbour.exe call by .lib), just like for .c files, as opposed to the current one-by-one .prg file compilation approach. Does anyone have an idea how to fix this? Marek, Paul? I may

Re: [Harbour] nmake optimization for .prg

2008-10-03 Thread Przemyslaw Czerpak
On Fri, 03 Oct 2008, Szak�ts Viktor wrote: Hi Viktor, > I've tried it, and it's still no go, as now nmake > says it doesn't know how to make "obj\vc\myfirstprg.obj". > Probably because it doesn't see any myfirstprg.c, > and, also cannot see (for some reason) that myfirstprg.c > can be generated f

Re: [Harbour] nmake optimization for .prg

2008-10-03 Thread Szakáts Viktor
Hi Przemek, I've tried it, and it's still no go, as now nmake says it doesn't know how to make "obj\vc\myfirstprg.obj". Probably because it doesn't see any myfirstprg.c, and, also cannot see (for some reason) that myfirstprg.c can be generated from myfirstprg.prg. Can easily be that I'm missing s

Re: [Harbour] nmake optimization for .prg

2008-10-02 Thread Szakáts Viktor
Many thanks Przemek, I'll try this way later today. [ I've retyped the examples from another screen, hence the bad typos, like '}' :) ] Brgds, Viktor On 2008.10.02., at 16:09, Przemyslaw Czerpak wrote: On Thu, 02 Oct 2008, Szak�ts Viktor wrote: Hi Viktor, I'm trying to optimize MSVC non-GN

Re: [Harbour] nmake optimization for .prg

2008-10-02 Thread Przemyslaw Czerpak
On Thu, 02 Oct 2008, Szak�ts Viktor wrote: Hi Viktor, > I'm trying to optimize MSVC non-GNU make, so that it > compiles .prg in one batch (== one harbour.exe call by > .lib), just like for .c files, as opposed to the current > one-by-one .prg file compilation approach. > IOW (and if possible), I'

[Harbour] nmake optimization for .prg

2008-10-02 Thread Szakáts Viktor
Hi all, I'm trying to optimize MSVC non-GNU make, so that it compiles .prg in one batch (== one harbour.exe call by .lib), just like for .c files, as opposed to the current one-by-one .prg file compilation approach. IOW (and if possible), I'd like to convert this rule: --- {$(RTL_DIR)}.prg{$(OBJ