Antonio Linares wrote:Rimantas,
Do you want to use a make file ?
Or do you plan to use a tool like UEStudio, xMate, Verce, etc ?
For FiveTech development we use make files and also UEStudio projects.
#Borland make sample, (c) FiveTech Software 2005-2009
HBDIR=c:\harbour
BCDIR=c:\bcc55
FWDIR=c:\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!
PRG = \
alert.PRG \
one.PRG
C = \
two.C
PROJECT : Alert.exe
Alert.exe : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) Alert.res
echo off
echo $(BCDIR)\lib\c0w32.obj + > b32.bc
echo obj\alert.obj obj\one.obj obj\two.obj, + >> b32.bc
echo alert.exe, + >> b32.bc
echo alert.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\hbwin.lib + >> b32.bc
echo $(HBDIR)\lib\hbcpage.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 Alert.res echo Alert.res >> b32.bc
$(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
del b32.bc
.PRG.OBJ:
$(HBDIR)\bin\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include
$(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
Alert.res : Alert.rc
$(BCDIR)\bin\brc32.exe -r Alert.rc
Antonio Linares wrote:Rimantas,
In FWH\makes\BorMake.zip you have a working example. You can easily add as many PRGs and C modules as needed.
Rimantas wrote:Antonio Linares wrote:Rimantas,
In FWH\makes\BorMake.zip you have a working example. You can easily add as many PRGs and C modules as needed.
Thanks , Antonio ! It seems that this will fit for me .
Another question - compiling I'm getting error alreday on the first main prg - "Syntax error at 'METHOD' " . Here it's a class in FiveWin style . What include or header I must to add to source or change something in .rmk ?
#include "Hbclass.ch"
Enrico Maria Giordano wrote:What is the error? Try adding
- Code: Select all Expand view
#include "Hbclass.ch"
and remove <clipapi.h> and <fwharb.h>.
EMG
Antonio Linares wrote:Rimantas,
Have you implemented the Borland setup files ?
viewtopic.php?f=17&t=13098
-IC:\BCC55\Include
-LC:\BCC55\Lib
-LC:\BCC55\Lib\PSDK
-LC:\BCC55\Lib;C:\BCC55\Lib\PSDK
EXTEND CLASS TReport WITH DATA lColTitl
EXTEND CLASS TReport WITH METHOD ColTitleGr
OVERRIDE METHOD StartPage IN CLASS TReport WITH RepStartPage
Rimantas wrote: Added - Antonio , this new Harbour 2.0 beta don't support such commands - the sample :
- Code: Select all Expand view
EXTEND CLASS TReport WITH DATA lColTitl
EXTEND CLASS TReport WITH METHOD ColTitleGr
OVERRIDE METHOD StartPage IN CLASS TReport WITH RepStartPage
In other prg , I'm using some own possibilities for report , as you an see from source sample . Maybe it's solutions to fix this ?
But in contrib/xhb directory we have xHarbour compatibility library and header (.ch) files which emulate some of xHarbour
features we do not want to add to core code for different reasons. Some of them also use unsupported and undocumented functionality so I think that if I add yet another header file xhbcls.ch with PP commands for above nothing worse will happen. I'll commit it ASAP but please remember that it's undocumented and unsupported by us functionality.
best regards,
Przemek
Antonio Linares wrote:Rimantas,But in contrib/xhb directory we have xHarbour compatibility library and header (.ch) files which emulate some of xHarbour
features we do not want to add to core code for different reasons. Some of them also use unsupported and undocumented functionality so I think that if I add yet another header file xhbcls.ch with PP commands for above nothing worse will happen. I'll commit it ASAP but please remember that it's undocumented and unsupported by us functionality.
best regards,
Przemek
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 42 guests