@echo off

set HB_INSTALL=..\xharbour

%HB_INSTALL%\bin\harbour test\test.prg -n -a -w -b -i%HB_INSTALL%\include

..\bcc5\bin\bcc32 -c -O2 -tW -M -I%HB_INSTALL%\include -I..\bcc5\include test.c

echo ..\bcc5\lib\c0w32.obj + > b32.bc
echo test.obj, + >> b32.bc
echo ..\bin\test.exe, + >> b32.bc
echo test.map, + >> b32.bc
echo %HB_INSTALL%\lib\optgui.lib + >> b32.bc
echo %HB_INSTALL%\lib\gtwvt.lib + >> b32.bc
echo %HB_INSTALL%\lib\gtwin.lib + >> b32.bc
echo %HB_INSTALL%\lib\gtnul.lib + >> b32.bc
echo %HB_INSTALL%\lib\rtl.lib + >> b32.bc
echo %HB_INSTALL%\lib\vm.lib + >> b32.bc
echo %HB_INSTALL%\lib\macro.lib + >> b32.bc
echo %HB_INSTALL%\lib\common.lib + >> b32.bc
echo %HB_INSTALL%\lib\lang.lib + >> b32.bc
echo %HB_INSTALL%\lib\codepage.lib + >> b32.bc
echo %HB_INSTALL%\lib\rdd.lib + >> b32.bc
echo %HB_INSTALL%\lib\dbfntx.lib + >> b32.bc
echo %HB_INSTALL%\lib\dbfcdx.lib + >> b32.bc
echo %HB_INSTALL%\lib\dbffpt.lib + >> b32.bc
echo %HB_INSTALL%\lib\dbfdbt.lib + >> b32.bc
echo %HB_INSTALL%\lib\debug.lib + >> b32.bc
echo %HB_INSTALL%\lib\libct.lib + >> b32.bc


echo ..\bcc5\lib\cw32.lib + >> b32.bc
echo ..\bcc5\lib\import32.lib, >> b32.bc
if exist test.res echo test.res >> b32.bc
..\bcc5\bin\ilink32 -Gn -Tpe -ap @b32.bc

del ..\bin\*.tds
del test.c
del test.map
del test.obj
del b32.bc

