FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Borland makefile for Harbour + FWH + BCC7
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Borland makefile for Harbour + FWH + BCC7

Posted: Tue Mar 28, 2017 09:34 PM

James,

This line is wrong:

c:\bcc7 $(BCDIR)\bin\brc32.exe -r -Ic:\bcc7\include\windows\sdk myapp.rc

it should be:

$(BCDIR)\bin\brc32.exe -r -Ic:\bcc7\include\windows\sdk myapp.rc

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: Borland makefile for Harbour + FWH + BCC7

Posted: Tue Mar 28, 2017 10:00 PM
Ok, I found the problem. I had just cut and pasted the file from the above thread. But I forgot that all the leading spaces had to be tabs, not spaces. After changing to tabs it is working.

If anyone is interested, there is some good documentation about using MAKE files here:

https://wpollock.com/CPlus/Make/MakeDoc.htm

James

PS: Antonio, I just saw your reply and I will make that change too.
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: Borland makefile for Harbour + FWH + BCC7

Posted: Fri Apr 07, 2017 10:35 AM
I use Xmate from many Years
I use Bcc7, fwh,Pellesc
I an make EXE , LIB and DLL files with a click

I use a folder called Work
and on it I have other folders
Work
----- xharbour
------ PellesC
------ Harbour
------ fwh


this the Fwhbcc7.env
Code (fw): Select all Collapse
[Environment]
Description 1=For Borland 7
Description 2=
Description 3=
PRG Compiler ver=xHarbour
C compiler ver=Bcc7
Subsystem=FWH0217
Author=Falconi Silvio
Last update=04/07/2017

[Advanced]
Command types=1,1,1,1,1,1,1,1,1

[Harbour]
HB_INSTALL=C:\work\XHARBOUR
HB_COMMAND=%HB_BIN_INSTALL%\Harbour.Exe %PRG% /m /n0 /gc1 /es2 /a /i%HB_INC_INSTALL% /j%HOME%\I18n\Main.hil /iinclude;c:\work\fwh\include;%HB_INSTALL%\include
Option prefix=/

[C]
C_INSTALL=C:\work\bcc7
C_COMP_COMMAND=%C_BIN_INSTALL%\Bcc32.Exe -M -c %CRLF%-DHB_OS_WIN_32 %CRLF%-DHB_FM_STATISTICS_OFF %CRLF%-DHB_NO_DEFAULT_API_MACROS %CRLF%-DHB_NO_DEFAULT_STACK_MACROS %CRLF%-I%C_INC_INSTALL%\windows\sdk\;%HB_INC_INSTALL%  -n%HOME%\Obj %C%%CRLF%%CRLF%%CRLF%
C_LIB_COMMAND=%C_BIN_INSTALL%\TLib.Exe %LIB% /P512 @%RSP% , %LST%
C_LINK_COMMAND=%C_BIN_INSTALL%\iLink32.Exe -Gn -aa -Tpe -s -v @%LNK%
C_RC_COMMAND=c:\work\PellesC\Bin\PORC.EXE  %RC%  /I c:\work\pellesc\include /I c:\work\pellesc\include\win
C_DLL_COMMAND=%C_BIN_INSTALL%\iLink32.Exe -Gn -aa -Tpd -M -L%C_LIB_INSTALL% @%LNK%
Option prefix=-

[User]
POSTEXE_COMMAND=
POSTLIB_COMMAND=
POSTDLL_COMMAND=

[Files]
%C_LIB_INSTALL%\c0w32.obj=1
C:\work\FWH\LIB\Fivehx.lib=2
C:\work\FWH\LIB\Fivehc.lib=3
%HB_LIB_INSTALL%\rtl.lib=4
%HB_LIB_INSTALL%\vm.lib=5
%HB_LIB_INSTALL%\gtgui.lib=6
%HB_LIB_INSTALL%\lang.lib=7
%HB_LIB_INSTALL%\macro.lib=8
%HB_LIB_INSTALL%\rdd.lib=9
%HB_LIB_INSTALL%\dbfntx.lib=10
%HB_LIB_INSTALL%\dbfcdx.lib=11
%HB_LIB_INSTALL%\dbffpt.lib=12
%HB_LIB_INSTALL%\hbsix.lib=13
%HB_LIB_INSTALL%\debug.lib=14
%HB_LIB_INSTALL%\common.lib=15
%HB_LIB_INSTALL%\pp.lib=16
%HB_LIB_INSTALL%\pcrepos.lib=17
%HB_LIB_INSTALL%\ct.lib=18
%HB_LIB_INSTALL%\zlib.lib=19
%HB_LIB_INSTALL%\hbzip.lib=20
%HB_LIB_INSTALL%\libmisc.lib=21
%HB_LIB_INSTALL%\tip.lib=22
%HB_LIB_INSTALL%\png.lib=23
%C_LIB_INSTALL%\cw32.lib=24
%C_LIB_INSTALL%\IMPORT32.LIB=25
%C_LIB_INSTALL%\uuid.lib=26
%C_LIB_INSTALL%\ws2_32.lib=27
%C_LIB_INSTALL%\PSDK\odbc32.lib=28
%C_LIB_INSTALL%\PSDK\rassapi.lib=29
%C_LIB_INSTALL%\PSDK\nddeapi.lib=30
%C_LIB_INSTALL%\PSDK\msimg32.lib=31
%C_LIB_INSTALL%\PSDK\psapi.lib=32
%C_LIB_INSTALL%\PSDK\GdiPlus.lib=33
%C_LIB_INSTALL%\PSDK\iphlpapi.lib=34
%C_LIB_INSTALL%\PSDK\shell32.lib=35

[DLL Files]
%C_LIB_INSTALL%\import32.lib=1
%HB_LIB_INSTALL%\harbour.lib=2
%C_LIB_INSTALL%\c0w32w.obj=3
%C_LIB_INSTALL%\cw32.lib=4
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: Borland makefile for Harbour + FWH + BCC7

Posted: Fri Apr 07, 2017 04:43 PM

I never really understood Xmate. I looked at years ago, but if I remember correctly, I had to save my files from my editor, then go to Xmate to compile. This gets really tedious. With a make file, I can just press the compile button in my editor.

Maybe I never figured out how Xmate was supposed to work?

Actually, I haven't been able to compile using the Borland Make utility yet either. I get an EXE, and it runs, and then exits without error or display. I am just using a simple 3 line, Hello World test app. I'm sure my make file is not right, but I don't know what is wrong. I have not been able to find any documentation on the Internet for the Borland Make utility. Does anyone have a copy?

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: Borland makefile for Harbour + FWH + BCC7

Posted: Fri Apr 07, 2017 05:04 PM

with xmate you have also the editor ....

http://groups.yahoo.com/group/xmate_users/

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Borland makefile for Harbour + FWH + BCC7

Posted: Fri Apr 07, 2017 06:39 PM
James,

https://bitbucket.org/fivetech/fivewin-contributions/downloads/borland_make_documentation.pdf

Please email me your EXE compressed as a ZOP file, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: Borland makefile for Harbour + FWH + BCC7

Posted: Fri Apr 07, 2017 11:28 PM

Silvio,

Now I remember. I didn't want to learn a new editor--that was the issue for me. Using a make utility allows you to use just about any editor.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: Borland makefile for Harbour + FWH + BCC7

Posted: Fri Apr 07, 2017 11:34 PM

Antonio,

I have forwarded the test program files to your email.

Thanks for the documentation. I'm sure it will help.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion