Hey,
Is there also a easy setup link for the program.
In my early tries (some time ago) I needed to setup compilers, linkers, drives, and all other options /xx,/dd,/ss
Not my cup of tea
I would like to try in in the simple way (FW samples)
Or in the project that I'm working on.
I use this that works for me.
Buildh.bat
- Code: Select all Expand view
@ECHO ON
rem IF "%1"=="O" DEL OBJ/Q
rem IF "%1"=="o" DEL OBJ/Q
rem DEL OBJ/Q
"C:\Borland\BCC7\Bin\brc32.exe" -r TEST.RC
"C:\Borland\BCC7\Bin\make.exe" -f TEST.MAK
echo ERRORLEVEL
IF ERRORLEVEL 1 GOTO COMPILEERRORS
IF ERRORLEVEL 0 goto DONE
pause
GOTO EXIT
:COMPILEERRORS
pause
GOTO EXIT
:DONE
test.exe
pause
:EXIT
Test.mak
- Code: Select all Expand view
#Borland make sample, (c) FiveTech Software 2005-2009
HBDIR=c:\harbour
BCDIR=c:\borland\bcc7
FWDIR=c:\fwharb
#change these paths as needed
.path.OBJ = .\obj
.path.PRG = .\
.path.ch = $(FWDIR)\include;$(HBDIR)\include;$(BCDIR)\include
.path.C = .\
.path.RC = .\
#important: Use Uppercase for filenames extensions, in the next two rules!
PRG = \
maveco.PRG \
afdruk.PRG \
functies.PRG \
func32.PRG \
ingeven.PRG \
klanten.PRG \
lever.PRG \
artikel.PRG \
statisti.PRG \
dagtaak.PRG \
users.PRG \
prosp.PRG\
Makefile.PRG\
tphdial.PRG\
TSbrowse.PRG\
finddata.PRG\
browsers.PRG
C = \
maveco.C \
afdruk.C \
functies.C \
func32.C \
ingeven.C \
klanten.C \
lever.C \
artikel.C \
statisti.C \
dagtaak.C \
users.C \
prosp.C\
Makefile.C\
tphdial.C\
TSbrowse.C\
finddata.C\
browsers.C
OBJ = $(PRGS:.PRG=.\OBJ)
OBJS = $(OBJ:.\=.\obj\)
PROJECT : TEST.EXE
TEST.EXE : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) TEST.res
echo off
echo $(BCDIR)\lib\c0w32.obj + > b32.bc
# echo $(OBJS), + >> b32.bc
echo OBJ\maveco.OBJ + >> b32.bc
echo OBJ\afdruk.OBJ + >> b32.bc
echo OBJ\functies.OBJ + >> b32.bc
echo OBJ\func32.OBJ + >> b32.bc
echo OBJ\ingeven.OBJ + >> b32.bc
echo OBJ\klanten.OBJ + >> b32.bc
echo OBJ\lever.OBJ + >> b32.bc
echo OBJ\artikel.OBJ + >> b32.bc
echo OBJ\statisti.OBJ + >> b32.bc
echo OBJ\dagtaak.OBJ + >> b32.bc
echo OBJ\users.OBJ + >> b32.bc
echo OBJ\prosp.OBJ + >> b32.bc
echo OBJ\Makefile.OBJ + >> b32.bc
echo OBJ\tphdial.OBJ + >> b32.bc
echo OBJ\TSbrowse.OBJ + >> b32.bc
echo OBJ\finddata.OBJ + >> b32.bc
echo OBJ\browsers.OBJ, + >> b32.bc
echo TEST.EXE, + >> b32.bc
echo TEST.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
echo $(HBDIR)\lib\hbct.lib + >> b32.bc
echo $(HBDIR)\lib\png.lib + >> b32.bc
echo $(HBDIR)\lib\hbcplr.lib + >> b32.bc
echo $(HBDIR)\lib\xhb.lib + >> b32.bc
echo $(HBDIR)\lib\hbtip.lib + >> b32.bc
echo $(HBDIR)\lib\hbzlib.lib + >> b32.bc
echo $(HBDIR)\lib\hbmzip.lib + >> b32.bc
echo $(HBDIR)\lib\hbziparc.lib + >> b32.bc
echo $(HBDIR)\lib\minizip.lib + >> b32.bc
echo $(HBDIR)\lib\hbpcre.lib + >> b32.bc
echo $(HBDIR)\lib\sbrowse.lib + >> b32.bc
echo $(HBDIR)\lib\btnget.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\uuid.lib + >> b32.bc
echo $(BCDIR)\lib\import32.lib + >> b32.bc
echo $(BCDIR)\lib\ws2_32.lib + >> b32.bc
echo $(BCDIR)\lib\wininet.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
echo $(BCDIR)\lib\psdk\gdiplus.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\shell32.lib, >> b32.bc
IF EXIST TEST.RES echo TEST.RES >> b32.bc
$(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
.PRG.OBJ:
$(HBDIR)\bin\harbour $< /N /W0 /V /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
#RES-file wordt door COMPRES.BAT aangemaakt
#TEST.RES : ..\RES\TEST.RC
# $(BCDIR)\bin\brc32.exe -r ..\RES\TEST.RC