bcc make problem

bcc make problem

Postby Ehab Samir Aziz » Wed Jun 15, 2011 4:45 pm

I have something wrong in that file to make it usable from clipper
rmake.exe to bcc make.exe:

Code: Select all  Expand view

HBDIR=c:\programs\harbour
 BCDIR=c:\programs\bcc
 FWH=c:\programs\fwh


.prg.c:
   $(HBDIR)\bin\harbour $< /O$@ /n/i$(FWH)include;$(HBDIR)\include /p /
gc


.c.obj:
   $(BCDIR)\bin\bcc32  -M -c -I$(HBDIR)\include $<


txdata.c        :       txdata.prg
d_expand.c      :       d_expand.prg
AutoRuse.c      :       AutoRuse.prg
TXdata.c        :       TXdata.prg
cust.c          :       cust.prg
tmain.c         :       tmain.prg


txdata.obj      :       txdata.c
AutoRuse.obj    :       AutoRuse.c
d_expand.obj    :       d_expand.c
TXdata.obj      :       TXdata.c
cust.obj        :       cust.c
tmain.obj       :       tmain.c



 
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Re: bcc make problem

Postby hua » Thu Jun 16, 2011 7:36 am

The only suggestion I can think of is recheck your make file against the sample in fwh\makes\bormake.zip and keep in mind the notice that's in there
test.rmk wrote:#important: Use Uppercase for filenames extensions, in the next two rules!
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: bcc make problem

Postby Ehab Samir Aziz » Thu Jun 16, 2011 8:46 pm

Can you adjust my batch and make file to be fit for borland
Code: Select all  Expand view

@echo off

::@if /i %COMPUTERNAME%==CZC70416L8 (goto :Hp_machine)
::@if /i %COMPUTERNAME%==HOMER-THINK    (goto :NoteBook)
::@if /i %COMPUTERNAME%==USER (goto :home_machine)

SET PATH=c:\programs\compilers\dos;c:\programs\compilers\resources\borland;c:\programs\fwh\bin;c:\programs\bcc\bin;c:\programs\harbour\bin
set hdir=c:\programs\harbour
set bcdir=c:\programs\bcc
set fwh=c:\programs\fwh
set include=c:\programs\fwh\include
@goto :Main_Menu

:Main_menu

%fwh%\bin\rMAKE clippermake.rmk /xs2000
::%bcdir%\bin\MAKE tmain2.rmk

if errorlevel 1 goto error
 
rem Borland C compile
echo -O2 -etmain.exe -I%hdir%\include tmain.c > b32.bc
%bcdir%\bin\bcc32 +%bcdir%\bin\bcc32.cfg -M -c @b32.bc
if errorlevel 1 pause goto end
 
IF EXIST tmain.rc %bcdir%\bin\brc32 -r tmain
 
echo c0w32.obj + > b32.bc
 
rem Main program module
echo tmain.obj, + >> b32.bc
echo tmain.exe, + >> b32.bc
echo tmain.map, + >> b32.bc

 
rem Other application modules
echo txdata.obj + >> b32.bc
echo d_expand.obj + >> b32.bc
echo AutoRuse.obj + >> b32.bc
echo cust.obj + >> b32.bc
echo tmain.obj + >> b32.bc


rem Uncomment these two lines to use Advantage RDD

echo %fwh%\lib\tdata32.lib + >> b32.bc
echo %fwh%\lib\FiveH.lib %fwh%\lib\FiveHC.lib + >> b32.bc
echo %hdir%\lib\hbrtl.lib + >> b32.bc
echo %hdir%\lib\hbvm.lib + >> b32.bc
echo %hdir%\lib\gtgui.lib + >> b32.bc
echo %hdir%\lib\hblang.lib + >> b32.bc
echo %hdir%\lib\hbmacro.lib + >> b32.bc
echo %hdir%\lib\hbrdd.lib + >> b32.bc
echo %hdir%\lib\rddntx.lib + >> b32.bc
echo %hdir%\lib\rddcdx.lib + >> b32.bc
echo %hdir%\lib\rddfpt.lib + >> b32.bc
echo %hdir%\lib\hbsix.lib + >> b32.bc
echo %hdir%\lib\hbdebug.lib + >> b32.bc
echo %hdir%\lib\hbcommon.lib + >> b32.bc
echo %hdir%\lib\hbpp.lib + >> b32.bc
echo %hdir%\lib\hbcpage.lib + >> b32.bc
echo %hdir%\lib\hbw32.lib + >> b32.bc

rem Uncomment these two lines to use Advantage RDD
echo %hdir%\lib\rddads.lib + >> b32.bc
echo %hdir%\lib\Ace32.lib + >> b32.bc
echo %hdir%\lib\Ads32.lib + >> b32.bc

echo %hdir%\lib\hbole.lib + >> b32.bc

echo %bcdir%\lib\cw32.lib + >> b32.bc
echo %bcdir%\lib\import32.lib + >> b32.bc
echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc
echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\iphlpapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\msimg32.lib + >> b32.bc
echo %bcdir%\lib\psdk\rasapi32.lib, >> b32.bc

IF EXIST tmain.res echo tmain.res >> b32.bc
 
rem Link
rem Uncomment this line and comment out the next to review the unreleased memory blocks
rem %bcdir%\bin\ilink32 -Tpe -s @b32.bc
%bcdir%\bin\ilink32 +%bcdir%\bin\ilink32.cfg -Gn -aa -Tpe -s @b32.bc
 
rem Delete temporary files
@del tmain.c
rem @del tmain.il?
 
IF ERRORLEVEL 1 GOTO LINKERROR
echo * Application successfully built.
tmain
GOTO :END
ECHO
 
:LINKERROR
echo * Whoops, there was a link error.
 

 




:END

 

Code: Select all  Expand view

 HBDIR=c:\programs\harbour
 BCDIR=c:\programs\bcc
 FWH=c:\programs\fwh

.prg.c:
   $(HBDIR)\bin\harbour $< /O$@ /n/i$(FWH)include;$(HBDIR)\include /p /gc
 

.c.obj:
   $(BCDIR)\bin\bcc32  -M -c -I$(HBDIR)\include $<


txdata.c        :       txdata.prg
d_expand.c      :       d_expand.prg
AutoRuse.c      :       AutoRuse.prg
TXdata.c        :       TXdata.prg
cust.c          :       cust.prg
tmain.c         :       tmain.prg


txdata.obj      :       txdata.c
AutoRuse.obj    :       AutoRuse.c
d_expand.obj    :       d_expand.c
TXdata.obj      :       TXdata.c
cust.obj        :       cust.c
tmain.obj       :       tmain.c

 
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 97 guests