LOOKING TO HARBOUR

Post Reply
User avatar
patili
Posts: 98
Joined: Mon Jan 23, 2006 9:34 am
Location: LE CREUSOT FRANCE

LOOKING TO HARBOUR

Post by patili »

HI EVERYBODY
i'm a poor fivewin/clipper user and looking from harbour.
In the buildh.bat i understand that the fist part is compiling my .prg with harbour
%hdir%\bin\b32\harbour %1 /n /i..\include;%hdir%\include /p %2 %3 > clip.log
with result in a clip.log file and .ppo

But what is doing this part

echo -O2 -e%1.exe -I%hdir%\include -tW %1.c > b32.bc
%bcdir%\bcc32 -M -c @b32.bc



And how to compile all prg ? Is it a make file?
Thanks
hag
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California
Contact:

Post by hag »

Here is a cut down version of my make file.

Code: Select all

HBDIR=f:\harbour
BCDIR=c:\borland\bcc55
FWDIR=f:\fwh

#change these paths as needed

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

#important: Use Uppercase for filenames extensions, in the next two rules!


// PRGS here
PRG =       \
CASHVER3.PRG\ 
xbrowse.PRG	\
other.PRG

PROJECT    : cashver3.exe

cashver3.exe  : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) cashver3.res

	 echo off
		
	 echo $(BCDIR)\lib\c0w32.obj + > b32.bc
	 
// OBJs Here

echo obj\CASHVER3.obj \
   obj\xbrowse.obj      \ 
   obj\NEWGRAPH.obj     \ 
   obj\GLREG.obj	+ >> b32.bc
   		
   echo cashver3.exe, + >> b32.bc
	 echo cashver3.map, + >> b32.bc
		
   echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
   echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc
   echo $(HBDIR)\lib\hbvm.lib + >> b32.bc
   echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
   echo $(HBDIR)\lib\hblang.lib + >> b32.bc
   echo $(HBDIR)\lib\hbmacro.lib + >> b32.bc
   echo $(HBDIR)\lib\hbrdd.lib + >> b32.bc
   echo $(HBDIR)\lib\rddntx.lib + >> b32.bc
   echo $(HBDIR)\lib\rddcdx.lib + >> b32.bc
   echo $(HBDIR)\lib\rddfpt.lib + >> b32.bc
   echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
   echo $(HBDIR)\lib\hbdebug.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcommon.lib + >> b32.bc
   echo $(HBDIR)\lib\hbpp.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcpage.lib + >> b32.bc
	 echo $(HBDIR)\lib\hbw32.lib + >> b32.bc
			
	 rem Uncomment these two lines to use Advantage RDD
   rem echo $(HBDIR)\lib\rddads.lib + >> b32.bc
   rem 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

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


.PRG.OBJ:
  $(HBDIR)\bin\harbour $< /b /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

 cashver3.res : cashver3.rc
  $(BCDIR)\bin\brc32.exe -r cashver3.rc
Thank you
Harvey
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Patrick,

Please review FWH\makes\BorMake.zip for a make file.
Last edited by Antonio Linares on Sun Oct 26, 2008 10:08 pm, edited 1 time in total.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Rochinha
Posts: 309
Joined: Sun Jan 08, 2006 10:09 pm
Location: Brasil - Sao Paulo
Contact:

Post by Rochinha »

Friend,
%hdir%\bin\b32\harbour %1 /n /i..\include;%hdir%\include /p %2 %3 > clip.log
This part build a .C Harbour compatible code of your .PRG file.
echo -O2 -e%1.exe -I%hdir%\include -tW %1.c > b32.bc
%bcdir%\bcc32 -M -c @b32.bc
This part build a .OBJ of your .C file.

After build a .OBJ you need use a ILINK32 to create a .EXE file.

Review your BUILD.BAT
Post Reply