rmake sample for xHarbour with Borland required

rmake sample for xHarbour with Borland required

Postby sanilpmc » Wed Aug 27, 2008 9:05 am

Freinds,

Can I have a sample rmk file to be used with xHarbour & Borland.

I am using FWH 8.08

C:\FWH\Makes\Bormakes.zip is for usage with Harbour and most of the libraries does not exist in xHarbour folder

For Eg:

echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc
echo $(HBDIR)\lib\hbvm.lib + >> b32.bc

HBDIR=c:\xharbour
BCDIR=C:\Borland\BCC55
FWDIR=c:\fwh
sanilpmc
 
Posts: 36
Joined: Tue Jun 17, 2008 7:09 am

RMAKE-File

Postby ukoenig » Wed Aug 27, 2008 10:26 am

Hello,

Here is the sample :

a => GO.BAT to start with => GO YOURPRG

-------- GO.BAT --------------------------------------

Code: Select all  Expand view
if not exist obj md obj
c:\bcc55\bin\make -f datfile.rmk


---------------------------------------------

the DATFILE.rmk ( Make-File )
change the => PRG- and OBJ names, bartest.RES, bartest.RC
Bartest.MAP and Bartest.EXE with your file names

----------- DATFILE.RMK ----------------------------------

Code: Select all  Expand view
#Borland make sample, (c) FiveTech Software 2005

HBDIR=c:\xharbour
BCDIR=c:\bcc55
FWDIR=c:\fwh

.path.OBJ = .\obj
.path.PRG = .\
.path.CH  = $(FWDIR)\include;$(HBDIR)\include
.path.C   = .\
.path.rc  = .\

#  PRG has to be UPPER !!!

PRG = \
bartest.PRG \
bar.PRG \
btnbmp.PRG

# C =          \
# two.C                 

PROJECT    : Bartest.exe

Bartest.exe  : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) bartest.res
    echo off
    echo $(BCDIR)\bin\c0w32.obj + > b32.bc

# OBJ-Liste
# -------------
   echo obj\bartest.obj \
      obj\bar.obj \
      obj\btnbmp.obj, + >> b32.bc

  echo bartest.exe, + >> b32.bc
  echo bartest.map, + >> b32.bc

# Fivewin Lib`s für xHARBOUR
# --------------------------------------

  echo $(FWDIR)\lib\Fivehx.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
   
# xHARBOUR-Lib`s
# -----------------------

  echo $(HBDIR)\lib\rtl.lib + >> b32.bc
  echo $(HBDIR)\lib\vm.lib + >> b32.bc
  echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
  echo $(HBDIR)\lib\lang.lib + >> b32.bc
  echo $(HBDIR)\lib\macro.lib + >> b32.bc
  echo $(HBDIR)\lib\rdd.lib + >> b32.bc
  echo $(HBDIR)\lib\dbfntx.lib + >> b32.bc
  echo $(HBDIR)\lib\dbfcdx.lib + >> b32.bc
  echo $(HBDIR)\lib\dbffpt.lib + >> b32.bc
  echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
  echo $(HBDIR)\lib\debug.lib + >> b32.bc
  echo $(HBDIR)\lib\common.lib + >> b32.bc
  echo $(HBDIR)\lib\pp.lib + >> b32.bc
  echo $(HBDIR)\lib\codepage.lib + >> b32.bc
  echo $(HBDIR)\lib\pcrepos.lib + >> b32.bc

# Uncomment these two lines to use Advantage RDD
# echo $(HBDIR)\lib\rddads.lib + >> b32.bc
# echo $(HBDIR)\lib\Ace32.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

# Dbfstruct.res includes Symbol ICON : favorite.ico
# --------------------------------------------------------------------------   

  IF EXIST bartest.res echo bartest.res >> b32.bc
     $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s -v @b32.bc
  #   $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
  del b32.bc

.PRG.OBJ:
  $(HBDIR)\bin\harbour $< /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include > clip.log
  $(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c

.C.OBJ:
  echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
  echo -I$(HBDIR)\include;$(FWDIR)\include >> tmp
  $(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c
  del tmp

bartest.res : bartest.rc
  $(BCDIR)\bin\brc32.exe -r bartest.rc



Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

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