From 808ef5731b4f0d576df64a84f58a360be798468d Mon Sep 17 00:00:00 2001 From: "David G. Holm" Date: Wed, 5 May 1999 21:52:33 +0000 Subject: [PATCH] Borland 16-bit batch files to build Harbour programs --- harbour/tests/working/buildexe.bat | 24 ++++++++++++++++++++++++ harbour/tests/working/hb.bat | 10 ++++++++++ 2 files changed, 34 insertions(+) create mode 100644 harbour/tests/working/buildexe.bat create mode 100644 harbour/tests/working/hb.bat diff --git a/harbour/tests/working/buildexe.bat b/harbour/tests/working/buildexe.bat new file mode 100644 index 0000000000..f0e357ae24 --- /dev/null +++ b/harbour/tests/working/buildexe.bat @@ -0,0 +1,24 @@ +@echo off + +IF A%1 == A GOTO :SINTAX +IF A%2 == A GOTO :NOOUTPUT + +echo -mh -O2 -Fm -e%2.exe -I..\..\include ..\..\source\vm\hvm.c %1.c > b16.bc +echo ..\..\libs\b16\harbour.lib+..\..\libs\b16\terminal.lib >> b16.bc +bcc @b16.bc +del b16.bc +GOTO :END + +:NOOUTPUT +echo -mh -O2 -Fm -e%1.exe -I..\..\include ..\..\source\vm\hvm.c %1.c > b16.bc +echo ..\..\libs\b16\harbour.lib+..\..\libs\b16\terminal.lib >> b16.bc +bcc @b16.bc +del b16.bc +GOTO :END + +:SINTAX +ECHO syntax: BuildExe Harbour_Output_Filename [Exe_Output_Filename] +ECHO Use Harbour_Output_Filename and Exe_Output_Filename without extensions +ECHO\ + +:END diff --git a/harbour/tests/working/hb.bat b/harbour/tests/working/hb.bat new file mode 100644 index 0000000000..78d46acaee --- /dev/null +++ b/harbour/tests/working/hb.bat @@ -0,0 +1,10 @@ +@echo off + +REM From .PRG to .C = Harbour +..\..\bin\harbour %1.prg /n +if errorlevel 1 goto end + +REM From .C to .EXE = BuildExe +call buildexe %1 %2 + +:end