Page 1 of 1

Examples for xHARBOUR

Posted: Thu Dec 01, 2005 3:58 am
by Vladimir Rudomanov
I Study the examples for xHARBOUR. The Problems with assembly greater project. Is absent the examples buildx.bat for project , where several files.

Posted: Thu Dec 01, 2005 9:11 am
by Antonio Linares
Vladimir,

You may easily modify samples\buildx.bat to use more than one PRG:

%hdir%\bin\harbour %1 /n /i..\include;%hdir%\include /w /p %2 %3 > clip.log
@type clip.log
IF ERRORLEVEL 1 PAUSE
IF ERRORLEVEL 1 GOTO EXIT

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

%hdir%\bin\harbour another /n /i..\include;%hdir%\include /w /p %2 %3 > clip.log
@type clip.log
IF ERRORLEVEL 1 PAUSE
IF ERRORLEVEL 1 GOTO EXIT

echo -O2 -eanother.exe -I%hdir%\include another.c > b32.bc
%bcdir%\bin\bcc32 -M -c -v @b32.bc
:ENDCOMPILE

...

echo c0w32.obj + > b32.bc
echo %1.obj another.obj, + >> b32.bc
echo %1.exe, + >> b32.bc
...

Posted: Thu Dec 01, 2005 9:17 am
by Antonio Linares
You may also review fwh\makes directory working samples to use a Borland make or a Microsoft make instead of a batch file.

Re: Examples for xHARBOUR

Posted: Thu Dec 01, 2005 10:43 am
by Richard Chidiak
Vladimir Rudomanov wrote:I Study the examples for xHARBOUR. The Problems with assembly greater project. Is absent the examples buildx.bat for project , where several files.
Vladimir

This is a working sample

# Paths for dependent files ##################################################

.path.prg = $(APP_PRG_DIR)
.path.c = $(APP_OBJ_DIR) # add reference to C intermediate code
.path.obj = $(APP_OBJ_DIR)

# Application PRG files (your PRG files go here) #############################

APP_RC_LIST = \
CBATIMAN.rc \
CBATI.rc \
CBATICOM.rc \
CBATISAV.rc \
CBATIVEH.rc

APP_PRG_LIST = \
CBATIWIN.prg \
CBATITEC.prg \
CBATIRTE.prg \
COMPTOIR.prg



# Contruction of the rest dependency lists ###################################

APP_PRGS = $(APP_PRG_LIST)
APP_OBJS = $(APP_PRG_LIST:.prg=.obj)
APP_RC = $(APP_RC_LIST)
APP_RES = $(APP_RC_LIST:.rc=.res)

......

Re: Examples for xHARBOUR

Posted: Thu Dec 01, 2005 6:42 pm
by Dima
Жаль нет ветки на русском языке по FWH.
Sorry за Offtop.

Re: Examples for xHARBOUR

Posted: Fri Dec 02, 2005 7:56 am
by Vladimir Rudomanov
Dima wrote:Жаль нет ветки на русском языке по FWH.
Sorry за Offtop.
Пиши по-русски orsv04@mail.ru

Re: Examples for xHARBOUR

Posted: Sun Dec 04, 2005 8:26 am
by Rimantas
Vladimir Rudomanov wrote:
Dima wrote:Жаль нет ветки на русском языке по FWH.
Sorry за Offtop.
Пиши по-русски orsv04@mail.ru
Ну можеть быть и я помогу .. :-) . Хоть мой родной язык литовский , я ещё успел прожить 24 лет при союзе , так что не теснаяйтесь , пишите , будет радость чем нибудь помочь .

С уважением , Римантас .