diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 28b4d5d7ea..667c6c5305 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,25 @@ 2008-12-31 13:59 UTC+0100 Foo Bar */ +2008-08-05 00:22 UTC+0200 Viktor Szakats (harbour.01 syenar hu) + + utils/hbmake/bld_vc.bat + + utils/hbmake/bld_b32.bat + + Added non-GNU make batch files to build hbmake. + ; This is a step towards detaching hbmake from core. + + + contrib/examples/dbu/bld_vc.bat + + contrib/examples/guestbk/bld_vc.bat + + contrib/examples/hscript/bld_vc.bat + + contrib/examples/pe/bld_vc.bat + + contrib/examples/pp/bld_vc.bat + + Added MSVC build scripts. + +2008-08-05 00:22 UTC+0200 Viktor Szakats (harbour.01 syenar hu) + + utils/hbmake/bld_vc.bat + + utils/hbmake/bld_b32.bat + + Added non-GNU make batch files to build hbmake. + ; This is a step towards detaching hbmake from core. + 2008-08-04 22:28 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * utils/hbdot/hbdot.prg + hbdot is now able to run .hrb files too, by doing a check diff --git a/harbour/contrib/examples/dbu/bld_vc.bat b/harbour/contrib/examples/dbu/bld_vc.bat new file mode 100644 index 0000000000..a01c79582b --- /dev/null +++ b/harbour/contrib/examples/dbu/bld_vc.bat @@ -0,0 +1,40 @@ +@echo off +rem +rem $Id$ +rem + +set HB_DIR_DBU=%CLIPPER_DIR%\SOURCE\DBU +if exist "%HB_DIR_DBU%\DBU.PRG" goto DIR_OK +set HB_DIR_DBU=. +if exist "%HB_DIR_DBU%\DBU.PRG" goto DIR_OK_LOCAL + +echo --------------------------------------------------------------- +echo IMPORTANT: You'll either need to copy the original CA-Cl*pper +echo DBU sources to this directory, or set the location of +echo your original CA-Cl*pper installation (with DBU sources +echo in SOURCE\DBU): +echo set CLIPPER_DIR=C:\CLIPPER5 +echo --------------------------------------------------------------- +goto EXIT + +:DIR_OK_LOCAL + +if exist hb_dbu.dif patch -i hb_dbu.dif + +:DIR_OK + +..\..\..\bin\harbour /n %HB_DIR_DBU%\DBU.PRG /i..\..\..\include\ +..\..\..\bin\harbour /n %HB_DIR_DBU%\DBUCOPY.PRG /i..\..\..\include\ +..\..\..\bin\harbour /n %HB_DIR_DBU%\DBUEDIT.PRG /i..\..\..\include\ +..\..\..\bin\harbour /n %HB_DIR_DBU%\DBUHELP.PRG /i..\..\..\include\ +..\..\..\bin\harbour /n %HB_DIR_DBU%\DBUINDX.PRG /i..\..\..\include\ +..\..\..\bin\harbour /n %HB_DIR_DBU%\DBUNET.PRG /i..\..\..\include\ +..\..\..\bin\harbour /n %HB_DIR_DBU%\DBUSTRU.PRG /i..\..\..\include\ +..\..\..\bin\harbour /n %HB_DIR_DBU%\DBUUTIL.PRG /i..\..\..\include\ +..\..\..\bin\harbour /n %HB_DIR_DBU%\DBUVIEW.PRG /i..\..\..\include\ + +cl -D_CRT_SECURE_NO_DEPRECATE -nologo -O2 -TP -W3 -I..\..\..\include dbu.c dbucopy.c dbuedit.c dbuhelp.c dbuindx.c dbunet.c dbustru.c dbuutil.c dbuview.c /link /subsystem:CONSOLE /LIBPATH:..\..\..\lib hbcpage.lib hbdebug.lib hbvm.lib hbrtl.lib gtwin.lib hblang.lib hbrdd.lib hbmacro.lib hbpp.lib rddntx.lib rddcdx.lib rddfpt.lib hbsix.lib hbcommon.lib hbpcre.lib hbzlib.lib user32.lib winspool.lib + +dbu + +:EXIT diff --git a/harbour/contrib/examples/guestbk/bld_vc.bat b/harbour/contrib/examples/guestbk/bld_vc.bat new file mode 100644 index 0000000000..85be41fe60 --- /dev/null +++ b/harbour/contrib/examples/guestbk/bld_vc.bat @@ -0,0 +1,12 @@ +@echo off +rem +rem $Id$ +rem + +..\..\..\bin\harbour /n guestbk /i..\..\..\include\ +..\..\..\bin\harbour /n inifiles /i..\..\..\include\ +..\..\..\bin\harbour /n testcgi /i..\..\..\include\ + +cl -D_CRT_SECURE_NO_DEPRECATE -nologo -O2 -TP -W3 -I..\..\..\include guestbk.c inifiles.c testcgi.c /link /subsystem:CONSOLE /LIBPATH:..\..\..\lib hbcpage.lib hbdebug.lib hbvm.lib hbrtl.lib gtwin.lib hblang.lib hbrdd.lib hbmacro.lib hbpp.lib rddntx.lib rddcdx.lib rddfpt.lib hbsix.lib hbcommon.lib hbpcre.lib hbzlib.lib user32.lib winspool.lib + +guestbk diff --git a/harbour/contrib/examples/hscript/bld_vc.bat b/harbour/contrib/examples/hscript/bld_vc.bat new file mode 100644 index 0000000000..2d64e5d8d1 --- /dev/null +++ b/harbour/contrib/examples/hscript/bld_vc.bat @@ -0,0 +1,28 @@ +@echo off +rem +rem $Id$ +rem + +rem NOTE: This sample program needs hbnf.lib from contrib/hbnf + +..\..\..\bin\harbour hscript /n /i..\..\..\include +cl -D_CRT_SECURE_NO_DEPRECATE -nologo -O2 -TP -W3 -I..\..\..\include hscript.c /link /subsystem:CONSOLE /LIBPATH:..\..\..\lib hbcpage.lib hbdebug.lib hbvm.lib hbrtl.lib gtwin.lib hblang.lib hbrdd.lib hbmacro.lib hbpp.lib rddntx.lib rddcdx.lib rddfpt.lib hbsix.lib hbcommon.lib hbpcre.lib hbzlib.lib hbnf.lib user32.lib winspool.lib +del hscript.c + +if not exist hscript.exe goto :EXIT + +hscript dir.hs > dir.htm +hscript hello.hs > hello.htm +hscript multiply.hs > multiply.htm +hscript ugly.hs > ugly.htm + +echo Ready to go! +echo. +echo Try: +echo. +echo start dir.htm +echo start hello.htm +echo start multiply.htm +echo start ugly.htm + +:EXIT diff --git a/harbour/contrib/examples/pe/bld_vc.bat b/harbour/contrib/examples/pe/bld_vc.bat new file mode 100644 index 0000000000..4c7c9a1f02 --- /dev/null +++ b/harbour/contrib/examples/pe/bld_vc.bat @@ -0,0 +1,11 @@ +@echo off +rem +rem $Id$ +rem + +..\..\..\bin\harbour /n pe /i..\..\..\include\ +..\..\..\bin\harbour /n editorhi /i..\..\..\include\ + +cl -D_CRT_SECURE_NO_DEPRECATE -nologo -O2 -TP -W3 -I..\..\..\include pe.c editorhi.c editorlo.c /link /subsystem:CONSOLE /LIBPATH:..\..\..\lib hbcpage.lib hbdebug.lib hbvm.lib hbrtl.lib gtwin.lib hblang.lib hbrdd.lib hbmacro.lib hbpp.lib rddntx.lib rddcdx.lib rddfpt.lib hbsix.lib hbcommon.lib hbpcre.lib hbzlib.lib user32.lib winspool.lib + +pe diff --git a/harbour/contrib/examples/pp/bld_vc.bat b/harbour/contrib/examples/pp/bld_vc.bat new file mode 100644 index 0000000000..2e1d0a37da --- /dev/null +++ b/harbour/contrib/examples/pp/bld_vc.bat @@ -0,0 +1,8 @@ +@echo off +rem +rem $Id$ +rem + +cl -D_CRT_SECURE_NO_DEPRECATE -nologo -O2 -TP -W3 -I..\..\..\include pp.c hbppcomp.c hbppcore.c hbpptbl.c hbpragma.c /link /subsystem:CONSOLE /LIBPATH:..\..\..\lib hbcommon.lib + +pp diff --git a/harbour/utils/hbmake/bld_b32.bat b/harbour/utils/hbmake/bld_b32.bat new file mode 100644 index 0000000000..f5292e1cbc --- /dev/null +++ b/harbour/utils/hbmake/bld_b32.bat @@ -0,0 +1,52 @@ +@echo off +rem +rem $Id$ +rem + +..\..\bin\harbour /n hbmake /i..\..\include +..\..\bin\harbour /n checks /i..\..\include +..\..\bin\harbour /n fclass1 /i..\..\include +..\..\bin\harbour /n ffile1 /i..\..\include +..\..\bin\harbour /n ft_funcs /i..\..\include +..\..\bin\harbour /n hbmutils /i..\..\include +..\..\bin\harbour /n pickarry /i..\..\include +..\..\bin\harbour /n pickfile /i..\..\include +..\..\bin\harbour /n prb_stak /i..\..\include +..\..\bin\harbour /n radios /i..\..\include +..\..\bin\harbour /n tmake /i..\..\include + +echo -O2 -I..\..\include -L..\..\lib > build.tmp + +echo -ehbmake.exe >> build.tmp + +echo hbmake.c >> build.tmp +echo checks.c >> build.tmp +echo fclass1.c >> build.tmp +echo ffile1.c >> build.tmp +echo ft_funcs.c >> build.tmp +echo hbmutils.c >> build.tmp +echo pickarry.c >> build.tmp +echo pickfile.c >> build.tmp +echo prb_stak.c >> build.tmp +echo radios.c >> build.tmp +echo tmake.c >> build.tmp + +echo hbmlang.c >> build.tmp +echo readline.c >> build.tmp + +echo hbdebug.lib >> build.tmp +echo hbvm.lib >> build.tmp +echo hbrtl.lib >> build.tmp +echo gtwin.lib >> build.tmp +echo hblang.lib >> build.tmp +echo hbrdd.lib >> build.tmp +echo hbmacro.lib >> build.tmp +echo hbpp.lib >> build.tmp +echo rddntx.lib >> build.tmp +echo rddcdx.lib >> build.tmp +echo rddfpt.lib >> build.tmp +echo hbsix.lib >> build.tmp +echo hbcommon.lib >> build.tmp + +bcc32 @build.tmp +del build.tmp diff --git a/harbour/utils/hbmake/bld_vc.bat b/harbour/utils/hbmake/bld_vc.bat new file mode 100644 index 0000000000..af69dcaf8b --- /dev/null +++ b/harbour/utils/hbmake/bld_vc.bat @@ -0,0 +1,18 @@ +@echo off +rem +rem $Id$ +rem + +..\..\bin\harbour /n hbmake /i..\..\include +..\..\bin\harbour /n checks /i..\..\include +..\..\bin\harbour /n fclass1 /i..\..\include +..\..\bin\harbour /n ffile1 /i..\..\include +..\..\bin\harbour /n ft_funcs /i..\..\include +..\..\bin\harbour /n hbmutils /i..\..\include +..\..\bin\harbour /n pickarry /i..\..\include +..\..\bin\harbour /n pickfile /i..\..\include +..\..\bin\harbour /n prb_stak /i..\..\include +..\..\bin\harbour /n radios /i..\..\include +..\..\bin\harbour /n tmake /i..\..\include + +cl -D_CRT_SECURE_NO_DEPRECATE -nologo -O2 -TP -W3 -I..\..\include hbmake.c checks.c fclass1.c ffile1.c ft_funcs.c hbmutils.c pickarry.c pickfile.c prb_stak.c radios.c tmake.c hbmlang.c readline.c /link /subsystem:CONSOLE /LIBPATH:..\..\lib hbcpage.lib hbdebug.lib hbvm.lib hbrtl.lib gtwin.lib hblang.lib hbrdd.lib hbmacro.lib hbpp.lib rddntx.lib rddcdx.lib rddfpt.lib hbsix.lib hbcommon.lib hbpcre.lib hbzlib.lib user32.lib winspool.lib