makefile de Borland genérico para múltiples PRGs

Re: makefile de Borland genérico para múltiples PRGs

Postby goosfancito » Tue Sep 30, 2014 12:57 pm

Hola.
Antonio tendras uno generico tambien para xharbour?
gracias.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Re: makefile de Borland genérico para múltiples PRGs

Postby karinha » Tue Sep 30, 2014 1:15 pm

goosfancito wrote:Karina.
Tu script me tira este error:

Fatal: Too many MAP file names: Z:\xh\fwh\lib\FiveHC.lib

solo he cambiado los nombres de mi .prg.

Podes darme una mano?
gracias.



Fatal: Too many MAP file names

viewtopic.php?f=3&t=5240&start=0

http://fivetechsupport.com/forums/viewt ... 67&start=0

Acá compila bién. FWH13.06

salu2
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7824
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: makefile de Borland genérico para múltiples PRGs

Postby karinha » Tue Sep 30, 2014 2:23 pm

Mejoras utilizando xHarbour:

Code: Select all  Expand view

#Borland make sample, (c) FiveTech Software 2005-2014 With xHarbour

HDIRL=c:\XHB280714
BCDIR=c:\BCC582
FWDIR=c:\FWH1306
 
#change these paths as needed
.path.OBJ = .\obj
.path.PRG = .\
.path.CH  = $(FWDIR)\include;$(HDIRL)\include
.path.C   = .\
.path.rc  = .\
 
#important: Use Uppercase for filenames extensions, in the next two rules!
 
PRG =        \
.\TESTE.PRG \
.\DISPLAY.PRG

# Comentario
#REM ONE.PRG   \
#REM TWO.PRG   \
#REM THREE.PRG

OBJ=$(PRG:.prg=.obj)
OBJS=$(OBJ:.\=.\obj\)
 
C =          \
TESTE.C    \
DISPLAY.C
 
PROJECT    : TESTE.exe
 
TESTE.exe : $(PRG:.PRG=.OBJ)
   echo off
   echo $(BCDIR)\lib\c0w32.obj         +  > b32.bc
   echo OBJ\TESTE.obj                  + >> b32.bc
   echo OBJ\DISPLAY.obj,               + >> b32.bc
   echo TESTE.exe,                     + >> b32.bc
   echo TESTE.map,                     + >> b32.bc
   echo $(FWDIR)\lib\FiveHx.lib        + >> b32.bc
   echo $(FWDIR)\lib\FiveHC.lib        + >> b32.bc
   echo $(HDIRL)\lib\rtl.lib           + >> b32.bc
   echo $(HDIRL)\lib\vm.lib            + >> b32.bc
   echo $(HDIRL)\lib\gtgui.lib         + >> b32.bc
   echo $(HDIRL)\lib\lang.lib          + >> b32.bc
   echo $(HDIRL)\lib\codepage.lib      + >> b32.bc
   echo $(HDIRL)\lib\macro.lib         + >> b32.bc
   echo $(HDIRL)\lib\rdd.lib           + >> b32.bc
   echo $(HDIRL)\lib\dbfntx.lib        + >> b32.bc
   echo $(HDIRL)\lib\dbfcdx.lib        + >> b32.bc
   echo $(HDIRL)\lib\dbffpt.lib        + >> b32.bc
   echo $(HDIRL)\lib\hbsix.lib         + >> b32.bc
   echo $(HDIRL)\lib\debug.lib         + >> b32.bc
   echo $(HDIRL)\lib\common.lib        + >> b32.bc
   echo $(HDIRL)\lib\pp.lib            + >> b32.bc
   echo $(HDIRL)\lib\pcrepos.lib       + >> b32.bc
   echo $(HDIRL)\lib\ct.lib            + >> b32.bc
   echo $(HDIRL)\lib\zlib.lib          + >> b32.bc
   echo $(HDIRL)\lib\hbzip.lib         + >> b32.bc
   echo $(HDIRL)\lib\libmisc.lib       + >> b32.bc
   echo $(HDIRL)\lib\tip.lib           + >> b32.bc
   echo $(HDIRL)\lib\png.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\psapi.lib    + >> b32.bc

   IF NOT EXIST TESTE.RES echo $(BCDIR)\lib\psdk\rasapi32.lib >> b32.bc

   IF EXIST TESTE.RES echo $(BCDIR)\lib\psdk\rasapi32.lib,    >> b32.bc
 
   IF EXIST TESTE.res  echo TESTE.res   >> b32.bc
      $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc

#  IF EXIST DISPLAY.res echo DISPLAY.res >> b32.bc
#     $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
 
#   del b32.bc
 
.PRG.OBJ:
  $(HDIRL)\bin\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HDIRL)\include
  $(BCDIR)\bin\bcc32 -c -tWM -I$(HDIRL)\include -oobj\$& obj\$&.c
 
.C.OBJ:
  echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
  echo -I$(HDIRL)\include;$(FWDIR)\include >> tmp
  $(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c
 
  del tmp
 
TESTE.res : IF EXIST TESTE.rc
  $(BCDIR)\bin\brc32.exe -r TESTE.rc
 
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7824
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: makefile de Borland genérico para múltiples PRGs

Postby karinha » Tue Sep 30, 2014 2:25 pm

B32.BC

Code: Select all  Expand view

c:\BCC582\lib\c0w32.obj +
OBJ\TESTE.obj +
OBJ\DISPLAY.obj, +
TESTE.exe, +
TESTE.map, +
c:\FWH1306\lib\FiveHx.lib +
c:\FWH1306\lib\FiveHC.lib +
c:\XHB280714\lib\rtl.lib +
c:\XHB280714\lib\vm.lib +
c:\XHB280714\lib\gtgui.lib +
c:\XHB280714\lib\lang.lib +
c:\XHB280714\lib\codepage.lib +
c:\XHB280714\lib\macro.lib +
c:\XHB280714\lib\rdd.lib +
c:\XHB280714\lib\dbfntx.lib +
c:\XHB280714\lib\dbfcdx.lib +
c:\XHB280714\lib\dbffpt.lib +
c:\XHB280714\lib\hbsix.lib +
c:\XHB280714\lib\debug.lib +
c:\XHB280714\lib\common.lib +
c:\XHB280714\lib\pp.lib +
c:\XHB280714\lib\pcrepos.lib +
c:\XHB280714\lib\ct.lib +
c:\XHB280714\lib\zlib.lib +
c:\XHB280714\lib\hbzip.lib +
c:\XHB280714\lib\libmisc.lib +
c:\XHB280714\lib\tip.lib +
c:\XHB280714\lib\png.lib +
c:\BCC582\lib\cw32.lib +
c:\BCC582\lib\import32.lib +
c:\BCC582\lib\psdk\odbc32.lib +
c:\BCC582\lib\psdk\nddeapi.lib +
c:\BCC582\lib\psdk\iphlpapi.lib +
c:\BCC582\lib\psdk\msimg32.lib +
c:\BCC582\lib\psdk\psapi.lib +
c:\BCC582\lib\psdk\rasapi32.lib,
TESTE.res
 
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7824
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: makefile de Borland genérico para múltiples PRGs

Postby goosfancito » Tue Sep 30, 2014 5:50 pm

Ok Karinha,
gracias, voy a probarlo.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Previous

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 20 guests