Examples for xHARBOUR

Post Reply
Vladimir Rudomanov
Posts: 4
Joined: Tue Nov 29, 2005 5:33 am
Location: Russia

Examples for xHARBOUR

Post 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.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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
...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Re: Examples for xHARBOUR

Post 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)

......
Dima
Posts: 4
Joined: Thu Nov 10, 2005 6:40 pm

Re: Examples for xHARBOUR

Post by Dima »

Жаль нет ветки на русском языке по FWH.
Sorry за Offtop.
Vladimir Rudomanov
Posts: 4
Joined: Tue Nov 29, 2005 5:33 am
Location: Russia

Re: Examples for xHARBOUR

Post by Vladimir Rudomanov »

Dima wrote:Жаль нет ветки на русском языке по FWH.
Sorry за Offtop.
Пиши по-русски orsv04@mail.ru
User avatar
Rimantas
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Re: Examples for xHARBOUR

Post by Rimantas »

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

С уважением , Римантас .
Rimantas U.
Post Reply