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
Borland makefile for Harbour + FWH + BCC7
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: Borland makefile for Harbour + FWH + BCC7
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.
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
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: Borland makefile for Harbour + FWH + BCC7
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
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: Select all
[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
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: Borland makefile for Harbour + FWH + BCC7
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
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
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: Borland makefile for Harbour + FWH + BCC7
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Borland makefile for Harbour + FWH + BCC7
James,
https://bitbucket.org/fivetech/fivewin- ... tation.pdf
Please email me your EXE compressed as a ZOP file, thanks
https://bitbucket.org/fivetech/fivewin- ... tation.pdf
Please email me your EXE compressed as a ZOP file, thanks
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: Borland makefile for Harbour + FWH + BCC7
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
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
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: Borland makefile for Harbour + FWH + BCC7
Antonio,
I have forwarded the test program files to your email.
Thanks for the documentation. I'm sure it will help.
Regards,
James
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