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