Page 1 of 2

Compilar Sistema

Posted: Sat Jul 12, 2008 5:25 pm
by jlsg1803
Hi amigos listeros, tengo un sistema de mas 250 programas y me gustaria antes de realizar la transformacion a FW,compilarlo con Harbour,por favor me puedes decir cual seria el metodo mas conveniente para hacer esto y si tienen algun ejemplo con el cual me pueda guiar.
Desde ya muchas gracias.

Posted: Sat Jul 12, 2008 6:42 pm
by sysctrl2
puedes utilizar VERCE

Posted: Sat Jul 12, 2008 11:27 pm
by Ricardo Ramirez E.
Yo... prefieros... *.mak puros y duros....

Posted: Mon Jul 14, 2008 4:11 pm
by QAZWSX2K
yo te recomendaria, despues de hacer durante años mis archivos *.bat puros y duros para compilar...que uses verce y te quitaras dolores de cabezas puros y duros, 100% te soluciona y es 100% confiable, eso si decirte el tiempo que te ahorras que se traduce en dinero

Posted: Mon Jul 14, 2008 5:15 pm
by Antonio Linares
Cada cual que use lo que mejor le sirva :-)

Yo tambien uso makes de toda la vida...

Posted: Thu Jul 17, 2008 2:36 am
by jlsg1803
Gracias amigos, pero tendrian por ahí algun ejemplo que pueda orientarme....
gracias.

Posted: Thu Jul 17, 2008 8:52 am
by Antonio Linares
En FWH\makes\ tienes un ejemplo de make para Borland (bormake.zip) y otro para Microsoft (msmake.zip)

Posted: Sat Jul 26, 2008 4:59 pm
by jlsg1803
Antonio, gracias por la ayuda, he estado tratando de compilar y me da el siguiente error que talvez puedas ayudarme a solucionar,cuando trato de enlazar los objs
** error 2 ** deleting
Creo que es un error en las opciones de compilacion....pero no se que sera.....

Les comento que es un sistema en DOS....el b32.bc que uso es:
echo $(BCDIR)\bin\c0w32.obj + > b32.bc
echo obj\obj1 obj\obj2 + >> b32.bc
echo obj\obj3 obj\obj4 + >> b32.bc
echo sistema.exe, + >> b32.bc
echo sistema.map, + >> b32.bc
# echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
echo $(HBDIR)\lib\rtl.lib + >> b32.bc
echo $(HBDIR)\lib\vm.lib + >> b32.bc
echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
echo $(HBDIR)\lib\lang.lib + >> b32.bc
echo $(HBDIR)\lib\macro.lib + >> b32.bc
echo $(HBDIR)\lib\rdd.lib + >> b32.bc
echo $(HBDIR)\lib\dbfntx.lib + >> b32.bc
echo $(HBDIR)\lib\dbfcdx.lib + >> b32.bc
echo $(HBDIR)\lib\dbffpt.lib + >> b32.bc
echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
echo $(HBDIR)\lib\debug.lib + >> b32.bc
echo $(HBDIR)\lib\common.lib + >> b32.bc
echo $(HBDIR)\lib\pp.lib + >> b32.bc
echo $(HBDIR)\lib\codepage.lib + >> b32.bc
rem Uncomment these two lines to use Advantage RDD
echo $(HBDIR)\lib\rddads.lib + >> b32.bc
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\rasapi32.lib, >> b32.bc

$(BCDIR)\bin\ilink32 -Gn -Tpe -s /L$(BCDIR)\include @b32.bc

Espero me puedan ayudar con esto...desde ya gracias.

Posted: Sat Jul 26, 2008 8:44 pm
by MauroArevalo
Este bat lo utilizo para compilar en DOS, espero te sirva. Si no me equivoco no puedes utilizar gtgui.lib sino gtwin.lib y ninguna libreria grafica.

Code: Select all

@echo off
DEL *.EXE
DEL *.OBJ
DEL *.C

set HB_INSTALL=c:\xharbour
set BCC_DIR=c:\bcc55
ECHO Compiling...

REM %HB_INSTALL%\bin\harbour HYMPLUSX -es2 -p -n -w -i%HB_INSTALL%\include > log
REM %HB_INSTALL%\bin\harbour H96EMAM -es2 -p -n -w -i%HB_INSTALL%\include > log
REM %HB_INSTALL%\bin\harbour H96EMA1 -es2 -p -n -w -i%HB_INSTALL%\include > log
REM %HB_INSTALL%\bin\harbour H96EMA2 -es2 -p -n -w -i%HB_INSTALL%\include > log
REM %HB_INSTALL%\bin\harbour H96EMA3 -es2 -p -n -w -i%HB_INSTALL%\include > log

REM ECHO si necesita colocar el restro de prgs hay que colocarlos aqui

REM pause


echo -O2 -tW -M -DHB_API_MACROS -DHB_STACK_MACROS -DHB_OS_WIN_32 -DHB_FM_STATISTICS_OFF > b32.bc
echo -I%HB_INSTALL%\include;%BCC_DIR%\include >> b32.bc

echo -c HYMPLUSX.c >> b32.bc
echo -c H96EMAM.c >> b32.bc
echo -c H96EMA0.c >> b32.bc
echo -c H96EMA1.c >> b32.bc
echo -c H96EMA2.c >> b32.bc
echo -c H96EMA3.c >> b32.bc

REM ECHO si necesita colocar el restro de los archivos hay que colocarlos aqui
REM pause


%BCC_DIR%\BIN\bcc32 @b32.bc
echo %BCC_DIR%\lib\c0w32.obj + > b32.bc

echo HYMPLUSX.obj + >> b32.bc
echo H96EMAM.obj + >> b32.bc
echo H96EMA0.obj + >> b32.bc
echo H96EMA1.obj + >> b32.bc
echo H96EMA2.obj + >> b32.bc
echo H96EMA3.obj + >> b32.bc

REM ECHO si necesita colocar el restro de los archivos hay que colocarlos aqui
REM pause

echo , + >> b32.bc
echo %HYMPLUSX.EXE, + >> b32.bc
echo %HYMPLUSX.map, + >> b32.bc
echo %BCC_DIR%\lib\ws2_32.lib + >> b32.bc
echo %HB_INSTALL%\lib\rtl.lib + >> b32.bc
echo %HB_INSTALL%\lib\pcrepos.lib + >> b32.bc

echo %HB_INSTALL%\lib\vm.lib + >> b32.bc
echo %HB_INSTALL%\lib\gtwin.lib + >> b32.bc
echo %HB_INSTALL%\lib\lang.lib + >> b32.bc
echo %HB_INSTALL%\lib\macro.lib + >> b32.bc
ECHO %HB_INSTALL%\lib\rdd.lib + >> b32.bc
ECHO %HB_INSTALL%\lib\dbfntx.lib + >> b32.bc
REM ECHO %HB_INSTALL%\lib\dbfcdx.lib + >> b32.bc
ECHO %HB_INSTALL%\lib\dbffpt.lib + >> b32.bc
ECHO %HB_INSTALL%\lib\hbsix.lib + >> b32.bc
echo %HB_INSTALL%\lib\debug.lib + >> b32.bc
echo %HB_INSTALL%\lib\common.lib + >> b32.bc
echo %HB_INSTALL%\lib\pp.lib + >> b32.bc
echo %HB_INSTALL%\lib\codepage.lib + >> b32.bc

ECHO %bcc_dir%\lib\cw32.lib + >> b32.bc
ECHO %bcc_dir%\lib\import32.lib + >> b32.bc

ECHO *
ECHO Linking...

%BCC_DIR%\bin\ilink32 -Gn -Tpe -L%HB_INSTALL%\lib\;%BCC_DIR%\lib\ -s @b32.bc

If exist HYMPLUSX.EXE HYMPLUSX

Saludos,

Posted: Sun Jul 27, 2008 12:32 am
by jlsg1803
Gracias, Mauricio, intente tus consejos pero aun me sigue saliendo el mismo error....
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Illegal option: ABACO.OBJ

** error 2 ** deleting abaco.exe

El codigo que uso es:

Code: Select all

#Borland make sample, (c) FiveTech Software 2005

HBDIR=d:\softdesa\xharbour
BCDIR=d:\softdesa\bcc55
FWDIR=d:\softdesa\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 =        \
ABACO.PRG    \
MSPRUTI.PRG  \
MSPPEPE.PRG  \
MSPCOL.PRG   \
HELP.PRG     \
CLASSIDX.PRG \
LISTIDX.PRG  \
BAP1000.PRG  \
BAP2000.PRG  \
BAP3100.PRG  \
BAP3200.PRG  \
BAP3300.PRG  \
BAP4100.PRG  \
BAP4200.PRG  \
BAP4300.PRG  \
BAP5100.PRG  \
BAP5200.PRG  \
BAP5300.PRG  \
BAP5400.PRG  \
BAP6000.PRG  \
CCP1100.PRG  \
CCP1200.PRG  \
CCP1300.PRG  \
CCP1400.PRG  \
CCP1500.PRG  \
CCP1600.PRG  \
CCP1700.PRG  \
CCP1800.PRG  \
CCP2110.PRG  \
CCP2120.PRG  \
CCP2130.PRG  \
CCP2210.PRG  \
CCP2220.PRG  \
CCP2310.PRG  \
CCP2320.PRG  \
CCP2400.PRG  \
CCP2500.PRG  \
CCP2600.PRG  \
CCP2700.PRG  \
CCP2800.PRG  \
CCP2900.PRG  \
CCP3110.PRG  \
CCP3120.PRG  \
CCP3210.PRG  \
CCP3220.PRG  \
CCP3310.PRG  \
CCP3320.PRG  \
CCP3400.PRG  \
CCP3500.PRG  \
CCP3600.PRG  \
CCP3700.PRG  \
CCP37A0.PRG  \
CCP3800.PRG  \
CCP3900.PRG  \
CCP39A0.PRG  \
CCP39D0.PRG  \
CCP4100.PRG  \
CCP4200.PRG  \
CCPRUTI.PRG  \
CLP1100.PRG  \
CLP2100.PRG  \
CLP3100.PRG  \
CLP4100.PRG  \
CLP4200.PRG  \
CLP4500.PRG  \
CLP5100.PRG  \
CLPRUTI.PRG  \
CPP1100.PRG  \
CPP1200.PRG  \
CPP1300.PRG  \
CPP1400.PRG  \
CPP1500.PRG  \
CPP2100.PRG  \
CPP2200.PRG  \
CPP2300.PRG  \
CPP2400.PRG  \
CPP2500.PRG  \
CPP3200.PRG  \
CPPRUTI.PRG  \
DDP1100.PRG  \
DDP1200.PRG  \
DDP1210.PRG  \
DDP1220.PRG  \
DDP1230.PRG  \
EVP1000.PRG  \
EVP2000.PRG  \
EVP3000.PRG  \
EVP4000.PRG  \
EVP5000.PRG  \
EVP6000.PRG  \
EVP7000.PRG  \
EVP8000.PRG  \
EVP9000.PRG  \
FAP1000.PRG  \
FAP2000.PRG  \
FAP3000.PRG  \
FAP2100.PRG  \
FAP5000.PRG  \
FAP6000.PRG  \
FAP7100.PRG  \
FAP8000.PRG  \
FAP9000.PRG  \
FAP9100.PRG  \
FAP9200.PRG  \
FAP9300.PRG  \
FAP9400.PRG  \
FAP9500.PRG  \
FAP9600.PRG  \
FAP9700.PRG  \
FAP9A00.PRG  \
# FAP9B00.PRG  \
FAPRUTI.PRG  \
INP1000.PRG  \
INP2000.PRG  \
INP3000.PRG  \
INP3110.PRG  \
INP3120.PRG  \
INP3130.PRG  \
INP3140.PRG  \
INP3150.PRG  \
INP3160.PRG  \
INP3170.PRG  \
INP3180.PRG  \
INP3190.PRG  \
INP31A0.PRG  \
INP3200.PRG  \
INP3600.PRG  \
INP3900.PRG  \
INP5100.PRG  \
INP5200.PRG  \
INP5300.PRG  \
INP5400.PRG  \
INP5500.PRG  \
INP5600.PRG  \
INP5700.PRG  \
INP5800.PRG  \
INP5900.PRG  \
INP5A00.PRG  \
INP5B00.PRG  \
INP5C00.PRG  \
INP5D00.PRG  \
INP5E00.PRG  \
INP5F00.PRG  \
INP6100.PRG  \
INP6200.PRG  \
INP6300.PRG  \
INP6400.PRG  \
INP6500.PRG  \
INP6600.PRG  \
INP6900.PRG  \
INP6A00.PRG  \
INP6B00.PRG  \
INP6C00.PRG  \
INP6D00.PRG  \
INP6E00.PRG  \
INP6F00.PRG  \
INP7000.PRG  \
INP8000.PRG  \
INPRUTI.PRG  \
MIP1000.PRG  \
MIP2000.PRG  \
MIP8000.PRG  \
MSP1000.PRG  \
MSP2000.PRG  \
MSP3000.PRG  \
PEP1000.PRG  \
PEP2000.PRG  \
PEP3000.PRG  \
PRP1100.PRG  \
PRP2000.PRG  \
PRP4000.PRG  \
PRPRUTI.PRG  \
RCP1000.PRG  \
RCP2000.PRG  \
RCP3000.PRG  \
RCP4000.PRG  \
RCP5000.PRG  \
RCP6000.PRG  \
RCPRUTI.PRG  \
SSP1100.PRG  \
SSP1200.PRG  \
SSP1300.PRG  \
SSP1400.PRG

# C =          \
# two.C                 

PROJECT    : abaco.exe

abaco.exe  : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ)
   echo off
   echo $(BCDIR)\bin\c0w32.obj + > b32.bc
   echo obj/ABACO.OBJ    obj/MSPRUTI.OBJ  obj/MSPPEPE.OBJ  obj/MSPCOL.OBJ                    >> b32.bc
   echo obj/HELP.OBJ     obj/CLASSIDX.OBJ obj/LISTIDX.OBJ                                    >> b32.bc
   
   echo obj/BAP1000.OBJ  obj/BAP2000.OBJ  obj/BAP3100.OBJ  obj/BAP3200.OBJ                   >> b32.bc
   echo obj/BAP3300.OBJ  obj/BAP4100.OBJ  obj/BAP4200.OBJ  obj/BAP4300.OBJ                   >> b32.bc
   echo obj/BAP5100.OBJ  obj/BAP5200.OBJ  obj/BAP5300.OBJ  obj/BAP5400.OBJ  obj/BAP6000.OBJ  >> b32.bc
   
   echo obj/CCP1100.OBJ  obj/CCP1200.OBJ  obj/CCP1300.OBJ  obj/CCP1400.OBJ                   >> b32.bc
   echo obj/CCP1500.OBJ  obj/CCP1600.OBJ  obj/CCP1700.OBJ  obj/CCP1800.OBJ                   >> b32.bc
   echo obj/CCP2110.OBJ  obj/CCP2120.OBJ  obj/CCP2130.OBJ  obj/CCP2210.OBJ                   >> b32.bc
   echo obj/CCP2220.OBJ  obj/CCP2310.OBJ  obj/CCP2320.OBJ  obj/CCP2400.OBJ                   >> b32.bc
   echo obj/CCP2500.OBJ  obj/CCP2600.OBJ  obj/CCP2700.OBJ  obj/CCP2800.OBJ                   >> b32.bc
   echo obj/CCP2900.OBJ  obj/CCP3110.OBJ  obj/CCP3120.OBJ  obj/CCP3210.OBJ                   >> b32.bc
   echo obj/CCP3220.OBJ  obj/CCP3310.OBJ  obj/CCP3320.OBJ  obj/CCP3400.OBJ                   >> b32.bc
   echo obj/CCP3500.OBJ  obj/CCP3600.OBJ  obj/CCP3700.OBJ  obj/CCP37A0.OBJ                   >> b32.bc
   echo obj/CCP3800.OBJ  obj/CCP3900.OBJ  obj/CCP39A0.OBJ  obj/CCP39D0.OBJ                   >> b32.bc
   echo obj/CCP4100.OBJ  obj/CCP4200.OBJ  obj/CCPRUTI.OBJ                                    >> b32.bc
   
   echo obj/CLP1100.OBJ  obj/CLP2100.OBJ  obj/CLP3100.OBJ  obj/CLP4100.OBJ                   >> b32.bc
   echo obj/CLP4200.OBJ  obj/CLP4500.OBJ  obj/CLP5100.OBJ  obj/CLPRUTI.OBJ                   >> b32.bc
   
   echo obj/CPP1100.OBJ  obj/CPP1200.OBJ  obj/CPP1300.OBJ  obj/CPP1400.OBJ                   >> b32.bc
   echo obj/CPP1500.OBJ  obj/CPP2100.OBJ  obj/CPP2200.OBJ  obj/CPP2300.OBJ                   >> b32.bc
   echo obj/CPP2400.OBJ  obj/CPP2500.OBJ  obj/CPP3200.OBJ  obj/CPPRUTI.OBJ                   >> b32.bc
   
   echo obj/DDP1100.OBJ  obj/DDP1200.OBJ  obj/DDP1210.OBJ  obj/DDP1220.OBJ  obj/DDP1230.OBJ  >> b32.bc
   
   echo obj/EVP1000.OBJ  obj/EVP2000.OBJ  obj/EVP3000.OBJ  obj/EVP4000.OBJ                   >> b32.bc
   echo obj/EVP5000.OBJ  obj/EVP6000.OBJ  obj/EVP7000.OBJ  obj/EVP8000.OBJ  obj/EVP9000.OBJ  >> b32.bc
   
   echo obj/FAP1000.OBJ  obj/FAP2000.OBJ  obj/FAP3000.OBJ  obj/FAP2100.OBJ                   >> b32.bc
   echo obj/FAP5000.OBJ  obj/FAP6000.OBJ  obj/FAP7100.OBJ  obj/FAP8000.OBJ                   >> b32.bc
   echo obj/FAP9000.OBJ  obj/FAP9100.OBJ  obj/FAP9200.OBJ  obj/FAP9300.OBJ                   >> b32.bc
   echo obj/FAP9400.OBJ  obj/FAP9500.OBJ  obj/FAP9600.OBJ  obj/FAP9700.OBJ                   >> b32.bc
   echo obj/FAP9A00.OBJ  obj/FAPRUTI.OBJ                                                     >> b32.bc
   
   echo obj/INP1000.OBJ  obj/INP2000.OBJ  obj/INP3000.OBJ  obj/INP3110.OBJ                   >> b32.bc
   echo obj/INP3120.OBJ  obj/INP3130.OBJ  obj/INP3140.OBJ  obj/INP3150.OBJ                   >> b32.bc
   echo obj/INP3160.OBJ  obj/INP3170.OBJ  obj/INP3180.OBJ  obj/INP3190.OBJ                   >> b32.bc
   echo obj/INP31A0.OBJ  obj/INP3200.OBJ  obj/INP3600.OBJ  obj/INP3900.OBJ                   >> b32.bc
   echo obj/INP5100.OBJ  obj/INP5200.OBJ  obj/INP5300.OBJ  obj/INP5400.OBJ                   >> b32.bc
   echo obj/INP5500.OBJ  obj/INP5600.OBJ  obj/INP5700.OBJ  obj/INP5800.OBJ                   >> b32.bc
   echo obj/INP5900.OBJ  obj/INP5A00.OBJ  obj/INP5B00.OBJ  obj/INP5C00.OBJ                   >> b32.bc
   echo obj/INP5D00.OBJ  obj/INP5E00.OBJ  obj/INP5F00.OBJ  obj/INP6100.OBJ                   >> b32.bc
   echo obj/INP6200.OBJ  obj/INP6300.OBJ  obj/INP6400.OBJ  obj/INP6500.OBJ                   >> b32.bc
   echo obj/INP6600.OBJ  obj/INP6900.OBJ  obj/INP6A00.OBJ  obj/INP6B00.OBJ                   >> b32.bc
   echo obj/INP6C00.OBJ  obj/INP6D00.OBJ  obj/INP6E00.OBJ  obj/INP6F00.OBJ                   >> b32.bc
   echo obj/INP7000.OBJ  obj/INP8000.OBJ  obj/INPRUTI.OBJ                                    >> b32.bc
   
   echo obj/MIP1000.OBJ  obj/MIP2000.OBJ  obj/MIP8000.OBJ                                    >> b32.bc
   
   echo obj/MSP1000.OBJ  obj/MSP2000.OBJ  obj/MSP3000.OBJ                                    >> b32.bc
   
   echo obj/PEP1000.OBJ  obj/PEP2000.OBJ  obj/PEP3000.OBJ                                    >> b32.bc
   
   echo obj/PRP1100.OBJ  obj/PRP2000.OBJ  obj/PRP4000.OBJ  obj/PRPRUTI.OBJ                   >> b32.bc
   
   echo obj/RCP1000.OBJ  obj/RCP2000.OBJ  obj/RCP3000.OBJ  obj/RCP4000.OBJ                   >> b32.bc
   echo obj/RCP5000.OBJ  obj/RCP6000.OBJ  obj/RCPRUTI.OBJ                                    >> b32.bc
   
   echo obj/SSP1100.OBJ  obj/SSP1200.OBJ  obj/SSP1300.OBJ  obj/SSP1400.OBJ, +                >> b32.bc
   echo abaco.exe, + >> b32.bc
   echo abaco.map, + >> b32.bc
#   echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
   echo $(BCDIR)\lib\ws2_32.lib + >> b32.bc                                                        
   echo $(HBDIR)\lib\rtl.lib + >> b32.bc
   echo $(HBDIR)\lib\pcrepos.lib + >> b32.bc                                                    
   echo $(HBDIR)\lib\vm.lib + >> b32.bc
   echo $(HBDIR)\lib\gtwin.lib + >> b32.bc
   echo $(HBDIR)\lib\lang.lib + >> b32.bc
   echo $(HBDIR)\lib\macro.lib + >> b32.bc
   echo $(HBDIR)\lib\rdd.lib + >> b32.bc
   echo $(HBDIR)\lib\dbfntx.lib + >> b32.bc
   echo $(HBDIR)\lib\dbfcdx.lib + >> b32.bc
   echo $(HBDIR)\lib\dbffpt.lib + >> b32.bc
   echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
   echo $(HBDIR)\lib\debug.lib + >> b32.bc
   echo $(HBDIR)\lib\common.lib + >> b32.bc
   echo $(HBDIR)\lib\pp.lib + >> b32.bc
   echo $(HBDIR)\lib\codepage.lib + >> b32.bc

   rem Uncomment these two lines to use Advantage RDD
   echo $(HBDIR)\lib\rddads.lib + >> b32.bc
   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\rasapi32.lib, >> b32.bc

   IF EXIST abaco.res echo abaco.res >> b32.bc
   $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s -v /L$(BCDIR)\include @b32.bc
   del b32.bc

.PRG.OBJ:
  $(HBDIR)\bin\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include;$(BCDIR)\include > clip.log
  echo ************** >> clip.log
  $(BCDIR)\bin\bcc32 -c -tWM -I$(FWDIR)\include;$(HBDIR)\include;$(BCDIR)\include -oobj\$& obj\$&.c >> clip.log

.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

abaco.res : abaco.rc
  $(BCDIR)\bin\brc32.exe -r abaco.rc

Posted: Sun Jul 27, 2008 12:33 am
by jlsg1803
Gracias, Mauricio, intente tus consejos pero aun me sigue saliendo el mismo error....
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Illegal option: ABACO.OBJ

** error 2 ** deleting abaco.exe

El codigo que uso es:

Code: Select all

#Borland make sample, (c) FiveTech Software 2005

HBDIR=d:\softdesa\xharbour
BCDIR=d:\softdesa\bcc55
FWDIR=d:\softdesa\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 =        \
ABACO.PRG    \
MSPRUTI.PRG  \
MSPPEPE.PRG  \
MSPCOL.PRG   \
HELP.PRG     \
CLASSIDX.PRG \
LISTIDX.PRG  \
BAP1000.PRG  \
BAP2000.PRG  \
BAP3100.PRG  \
BAP3200.PRG  \
BAP3300.PRG  \
BAP4100.PRG  \
BAP4200.PRG  \
BAP4300.PRG  \
BAP5100.PRG  \
BAP5200.PRG  \
BAP5300.PRG  \
BAP5400.PRG  \
BAP6000.PRG  \
CCP1100.PRG  \
CCP1200.PRG  \
CCP1300.PRG  \
CCP1400.PRG  \
CCP1500.PRG  \
CCP1600.PRG  \
CCP1700.PRG  \
CCP1800.PRG  \
CCP2110.PRG  \
CCP2120.PRG  \
CCP2130.PRG  \
CCP2210.PRG  \
CCP2220.PRG  \
CCP2310.PRG  \
CCP2320.PRG  \
CCP2400.PRG  \
CCP2500.PRG  \
CCP2600.PRG  \
CCP2700.PRG  \
CCP2800.PRG  \
CCP2900.PRG  \
CCP3110.PRG  \
CCP3120.PRG  \
CCP3210.PRG  \
CCP3220.PRG  \
CCP3310.PRG  \
CCP3320.PRG  \
CCP3400.PRG  \
CCP3500.PRG  \
CCP3600.PRG  \
CCP3700.PRG  \
CCP37A0.PRG  \
CCP3800.PRG  \
CCP3900.PRG  \
CCP39A0.PRG  \
CCP39D0.PRG  \
CCP4100.PRG  \
CCP4200.PRG  \
CCPRUTI.PRG  \
CLP1100.PRG  \
CLP2100.PRG  \
CLP3100.PRG  \
CLP4100.PRG  \
CLP4200.PRG  \
CLP4500.PRG  \
CLP5100.PRG  \
CLPRUTI.PRG  \
CPP1100.PRG  \
CPP1200.PRG  \
CPP1300.PRG  \
CPP1400.PRG  \
CPP1500.PRG  \
CPP2100.PRG  \
CPP2200.PRG  \
CPP2300.PRG  \
CPP2400.PRG  \
CPP2500.PRG  \
CPP3200.PRG  \
CPPRUTI.PRG  \
DDP1100.PRG  \
DDP1200.PRG  \
DDP1210.PRG  \
DDP1220.PRG  \
DDP1230.PRG  \
EVP1000.PRG  \
EVP2000.PRG  \
EVP3000.PRG  \
EVP4000.PRG  \
EVP5000.PRG  \
EVP6000.PRG  \
EVP7000.PRG  \
EVP8000.PRG  \
EVP9000.PRG  \
FAP1000.PRG  \
FAP2000.PRG  \
FAP3000.PRG  \
FAP2100.PRG  \
FAP5000.PRG  \
FAP6000.PRG  \
FAP7100.PRG  \
FAP8000.PRG  \
FAP9000.PRG  \
FAP9100.PRG  \
FAP9200.PRG  \
FAP9300.PRG  \
FAP9400.PRG  \
FAP9500.PRG  \
FAP9600.PRG  \
FAP9700.PRG  \
FAP9A00.PRG  \
# FAP9B00.PRG  \
FAPRUTI.PRG  \
INP1000.PRG  \
INP2000.PRG  \
INP3000.PRG  \
INP3110.PRG  \
INP3120.PRG  \
INP3130.PRG  \
INP3140.PRG  \
INP3150.PRG  \
INP3160.PRG  \
INP3170.PRG  \
INP3180.PRG  \
INP3190.PRG  \
INP31A0.PRG  \
INP3200.PRG  \
INP3600.PRG  \
INP3900.PRG  \
INP5100.PRG  \
INP5200.PRG  \
INP5300.PRG  \
INP5400.PRG  \
INP5500.PRG  \
INP5600.PRG  \
INP5700.PRG  \
INP5800.PRG  \
INP5900.PRG  \
INP5A00.PRG  \
INP5B00.PRG  \
INP5C00.PRG  \
INP5D00.PRG  \
INP5E00.PRG  \
INP5F00.PRG  \
INP6100.PRG  \
INP6200.PRG  \
INP6300.PRG  \
INP6400.PRG  \
INP6500.PRG  \
INP6600.PRG  \
INP6900.PRG  \
INP6A00.PRG  \
INP6B00.PRG  \
INP6C00.PRG  \
INP6D00.PRG  \
INP6E00.PRG  \
INP6F00.PRG  \
INP7000.PRG  \
INP8000.PRG  \
INPRUTI.PRG  \
MIP1000.PRG  \
MIP2000.PRG  \
MIP8000.PRG  \
MSP1000.PRG  \
MSP2000.PRG  \
MSP3000.PRG  \
PEP1000.PRG  \
PEP2000.PRG  \
PEP3000.PRG  \
PRP1100.PRG  \
PRP2000.PRG  \
PRP4000.PRG  \
PRPRUTI.PRG  \
RCP1000.PRG  \
RCP2000.PRG  \
RCP3000.PRG  \
RCP4000.PRG  \
RCP5000.PRG  \
RCP6000.PRG  \
RCPRUTI.PRG  \
SSP1100.PRG  \
SSP1200.PRG  \
SSP1300.PRG  \
SSP1400.PRG

# C =          \
# two.C                 

PROJECT    : abaco.exe

abaco.exe  : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ)
   echo off
   echo $(BCDIR)\bin\c0w32.obj + > b32.bc
   echo obj/ABACO.OBJ    obj/MSPRUTI.OBJ  obj/MSPPEPE.OBJ  obj/MSPCOL.OBJ                    >> b32.bc
   echo obj/HELP.OBJ     obj/CLASSIDX.OBJ obj/LISTIDX.OBJ                                    >> b32.bc
   
   echo obj/BAP1000.OBJ  obj/BAP2000.OBJ  obj/BAP3100.OBJ  obj/BAP3200.OBJ                   >> b32.bc
   echo obj/BAP3300.OBJ  obj/BAP4100.OBJ  obj/BAP4200.OBJ  obj/BAP4300.OBJ                   >> b32.bc
   echo obj/BAP5100.OBJ  obj/BAP5200.OBJ  obj/BAP5300.OBJ  obj/BAP5400.OBJ  obj/BAP6000.OBJ  >> b32.bc
   
   echo obj/CCP1100.OBJ  obj/CCP1200.OBJ  obj/CCP1300.OBJ  obj/CCP1400.OBJ                   >> b32.bc
   echo obj/CCP1500.OBJ  obj/CCP1600.OBJ  obj/CCP1700.OBJ  obj/CCP1800.OBJ                   >> b32.bc
   echo obj/CCP2110.OBJ  obj/CCP2120.OBJ  obj/CCP2130.OBJ  obj/CCP2210.OBJ                   >> b32.bc
   echo obj/CCP2220.OBJ  obj/CCP2310.OBJ  obj/CCP2320.OBJ  obj/CCP2400.OBJ                   >> b32.bc
   echo obj/CCP2500.OBJ  obj/CCP2600.OBJ  obj/CCP2700.OBJ  obj/CCP2800.OBJ                   >> b32.bc
   echo obj/CCP2900.OBJ  obj/CCP3110.OBJ  obj/CCP3120.OBJ  obj/CCP3210.OBJ                   >> b32.bc
   echo obj/CCP3220.OBJ  obj/CCP3310.OBJ  obj/CCP3320.OBJ  obj/CCP3400.OBJ                   >> b32.bc
   echo obj/CCP3500.OBJ  obj/CCP3600.OBJ  obj/CCP3700.OBJ  obj/CCP37A0.OBJ                   >> b32.bc
   echo obj/CCP3800.OBJ  obj/CCP3900.OBJ  obj/CCP39A0.OBJ  obj/CCP39D0.OBJ                   >> b32.bc
   echo obj/CCP4100.OBJ  obj/CCP4200.OBJ  obj/CCPRUTI.OBJ                                    >> b32.bc
   
   echo obj/CLP1100.OBJ  obj/CLP2100.OBJ  obj/CLP3100.OBJ  obj/CLP4100.OBJ                   >> b32.bc
   echo obj/CLP4200.OBJ  obj/CLP4500.OBJ  obj/CLP5100.OBJ  obj/CLPRUTI.OBJ                   >> b32.bc
   
   echo obj/CPP1100.OBJ  obj/CPP1200.OBJ  obj/CPP1300.OBJ  obj/CPP1400.OBJ                   >> b32.bc
   echo obj/CPP1500.OBJ  obj/CPP2100.OBJ  obj/CPP2200.OBJ  obj/CPP2300.OBJ                   >> b32.bc
   echo obj/CPP2400.OBJ  obj/CPP2500.OBJ  obj/CPP3200.OBJ  obj/CPPRUTI.OBJ                   >> b32.bc
   
   echo obj/DDP1100.OBJ  obj/DDP1200.OBJ  obj/DDP1210.OBJ  obj/DDP1220.OBJ  obj/DDP1230.OBJ  >> b32.bc
   
   echo obj/EVP1000.OBJ  obj/EVP2000.OBJ  obj/EVP3000.OBJ  obj/EVP4000.OBJ                   >> b32.bc
   echo obj/EVP5000.OBJ  obj/EVP6000.OBJ  obj/EVP7000.OBJ  obj/EVP8000.OBJ  obj/EVP9000.OBJ  >> b32.bc
   
   echo obj/FAP1000.OBJ  obj/FAP2000.OBJ  obj/FAP3000.OBJ  obj/FAP2100.OBJ                   >> b32.bc
   echo obj/FAP5000.OBJ  obj/FAP6000.OBJ  obj/FAP7100.OBJ  obj/FAP8000.OBJ                   >> b32.bc
   echo obj/FAP9000.OBJ  obj/FAP9100.OBJ  obj/FAP9200.OBJ  obj/FAP9300.OBJ                   >> b32.bc
   echo obj/FAP9400.OBJ  obj/FAP9500.OBJ  obj/FAP9600.OBJ  obj/FAP9700.OBJ                   >> b32.bc
   echo obj/FAP9A00.OBJ  obj/FAPRUTI.OBJ                                                     >> b32.bc
   
   echo obj/INP1000.OBJ  obj/INP2000.OBJ  obj/INP3000.OBJ  obj/INP3110.OBJ                   >> b32.bc
   echo obj/INP3120.OBJ  obj/INP3130.OBJ  obj/INP3140.OBJ  obj/INP3150.OBJ                   >> b32.bc
   echo obj/INP3160.OBJ  obj/INP3170.OBJ  obj/INP3180.OBJ  obj/INP3190.OBJ                   >> b32.bc
   echo obj/INP31A0.OBJ  obj/INP3200.OBJ  obj/INP3600.OBJ  obj/INP3900.OBJ                   >> b32.bc
   echo obj/INP5100.OBJ  obj/INP5200.OBJ  obj/INP5300.OBJ  obj/INP5400.OBJ                   >> b32.bc
   echo obj/INP5500.OBJ  obj/INP5600.OBJ  obj/INP5700.OBJ  obj/INP5800.OBJ                   >> b32.bc
   echo obj/INP5900.OBJ  obj/INP5A00.OBJ  obj/INP5B00.OBJ  obj/INP5C00.OBJ                   >> b32.bc
   echo obj/INP5D00.OBJ  obj/INP5E00.OBJ  obj/INP5F00.OBJ  obj/INP6100.OBJ                   >> b32.bc
   echo obj/INP6200.OBJ  obj/INP6300.OBJ  obj/INP6400.OBJ  obj/INP6500.OBJ                   >> b32.bc
   echo obj/INP6600.OBJ  obj/INP6900.OBJ  obj/INP6A00.OBJ  obj/INP6B00.OBJ                   >> b32.bc
   echo obj/INP6C00.OBJ  obj/INP6D00.OBJ  obj/INP6E00.OBJ  obj/INP6F00.OBJ                   >> b32.bc
   echo obj/INP7000.OBJ  obj/INP8000.OBJ  obj/INPRUTI.OBJ                                    >> b32.bc
   
   echo obj/MIP1000.OBJ  obj/MIP2000.OBJ  obj/MIP8000.OBJ                                    >> b32.bc
   
   echo obj/MSP1000.OBJ  obj/MSP2000.OBJ  obj/MSP3000.OBJ                                    >> b32.bc
   
   echo obj/PEP1000.OBJ  obj/PEP2000.OBJ  obj/PEP3000.OBJ                                    >> b32.bc
   
   echo obj/PRP1100.OBJ  obj/PRP2000.OBJ  obj/PRP4000.OBJ  obj/PRPRUTI.OBJ                   >> b32.bc
   
   echo obj/RCP1000.OBJ  obj/RCP2000.OBJ  obj/RCP3000.OBJ  obj/RCP4000.OBJ                   >> b32.bc
   echo obj/RCP5000.OBJ  obj/RCP6000.OBJ  obj/RCPRUTI.OBJ                                    >> b32.bc
   
   echo obj/SSP1100.OBJ  obj/SSP1200.OBJ  obj/SSP1300.OBJ  obj/SSP1400.OBJ, +                >> b32.bc
   echo abaco.exe, + >> b32.bc
   echo abaco.map, + >> b32.bc
#   echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
   echo $(BCDIR)\lib\ws2_32.lib + >> b32.bc                                                        
   echo $(HBDIR)\lib\rtl.lib + >> b32.bc
   echo $(HBDIR)\lib\pcrepos.lib + >> b32.bc                                                    
   echo $(HBDIR)\lib\vm.lib + >> b32.bc
   echo $(HBDIR)\lib\gtwin.lib + >> b32.bc
   echo $(HBDIR)\lib\lang.lib + >> b32.bc
   echo $(HBDIR)\lib\macro.lib + >> b32.bc
   echo $(HBDIR)\lib\rdd.lib + >> b32.bc
   echo $(HBDIR)\lib\dbfntx.lib + >> b32.bc
   echo $(HBDIR)\lib\dbfcdx.lib + >> b32.bc
   echo $(HBDIR)\lib\dbffpt.lib + >> b32.bc
   echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
   echo $(HBDIR)\lib\debug.lib + >> b32.bc
   echo $(HBDIR)\lib\common.lib + >> b32.bc
   echo $(HBDIR)\lib\pp.lib + >> b32.bc
   echo $(HBDIR)\lib\codepage.lib + >> b32.bc

   rem Uncomment these two lines to use Advantage RDD
   echo $(HBDIR)\lib\rddads.lib + >> b32.bc
   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\rasapi32.lib, >> b32.bc

   IF EXIST abaco.res echo abaco.res >> b32.bc
   $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s -v /L$(BCDIR)\include @b32.bc
   del b32.bc

.PRG.OBJ:
  $(HBDIR)\bin\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include;$(BCDIR)\include > clip.log
  echo ************** >> clip.log
  $(BCDIR)\bin\bcc32 -c -tWM -I$(FWDIR)\include;$(HBDIR)\include;$(BCDIR)\include -oobj\$& obj\$&.c >> clip.log

.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

abaco.res : abaco.rc
  $(BCDIR)\bin\brc32.exe -r abaco.rc

Posted: Sun Jul 27, 2008 5:36 am
by Antonio Linares
Cambia obj/ABACO.OBJ y similares para que usen la barra a la izquierda:

obj\ABACO.OBJ

Posted: Sun Jul 27, 2008 4:50 pm
by jlsg1803
Antonio, gracias por el consejo....hice el cambio que me recomendaste pero igual me sigue dando el mismo resultado.

Posted: Sun Jul 27, 2008 7:05 pm
by Antonio Linares
Prueba a poner al final de cada línea de OBJs un signo + :

echo obj/ABACO.OBJ obj/MSPRUTI.OBJ obj/MSPPEPE.OBJ obj/MSPCOL.OBJ + >> b32.bc

Posted: Tue Jul 29, 2008 10:07 pm
by jlsg1803
Antonio, gracias por tu consejo, hice lo que me recomendaste pero compilo a medias....
Realice el cambio de libreria que recomendo nuestro amigo Mauro..
gtgui.lib por gtwin.lib
Pero al compilar ahora me el siguiente error:

Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Unable to open file 'UUID.LIB'

** error 2 ** deleting abaco.exe

Coloque en el test.rmk:
echo d:\softdesa\bcc55\lib\uuid.lib + >> b32.bc

Pero igual me da el error.

Por favor si tuvieran alguna idea de lo que esta pasando, desde ya se los agradeceria....