Ejemplo Buildh.bat compilar varios prgs.

Re: Ejemplo Buildh.bat compilar varios prgs.

Postby Marcelo Roggeri » Wed Aug 14, 2019 1:14 pm

Hola buenos días, siguiendo el hilo alguien puede ayudarme con este .mak que no me esta generando el archivo.res
Code: Select all  Expand view  RUN


!if !$d(DEL)
   DEL = del
!endif

# Make directives ############################################################

.autodepend
.swap
.suffixes: .prg .hrb

# Flags for modules to include: YES | NO (must be UPPERCASE)##################

RES_FILE      = YES
LNK_DBFNTX    = YES
LNK_DBFCDX    = YES
LNK_DEBUG     = NO
LNK_ADVANTAGE = NO
LNK_ODBC      = NO
MAP_FILE      = NO

# Application directories & filenames ########################################

APP_NAME         = menu  # (Your EXE name without extension)
APP_PRG_DIR      = .
APP_OBJ_DIR      = .        # (create the app\obj directory first)
APP_INCLUDE_DIR  = .
APP_EXE_DIR      = $(APP_PRG_DIR)
APP_RES_DIR      = $(APP_PRG_DIR)

APP_EXE  = $(APP_EXE_DIR)\$(APP_NAME).exe
APP_RC1  = $(APP_RES_DIR)\menu.rc
APP_RES1 = $(APP_RES_DIR)\menu.res
APP_MAP  = $(APP_RES_DIR)\$(APP_NAME).map

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

.path.prg = $(APP_PRG_DIR)
.path.hrb = $(APP_OBJ_DIR)
.path.obj = $(APP_OBJ_DIR)

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

APP_PRG_LIST = \
   menu.prg  \
   FuncionesGenericas.prg \
   DiskInfo.prg \
   FASTREPH.prg \
   TSCAN.prg \
   classUsuarios.prg \
   classLocalidad.prg \
   classPacientes.prg \
   classMedicamentos.prg \
   usoMedicaciones.prg \
   usoAuditoriaUsuarios.prg


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

APP_PRGS = $(APP_PRG_LIST)
APP_HRBS = $(APP_PRG_LIST:.prg=.hrb)
APP_OBJS = $(APP_PRG_LIST:.prg=.obj)

# Fivewin directories ########################################################

FIVEWIN_INCLUDE_DIR = c:\fwh\include
FIVEWIN_LIB_DIR = c:\fwh\lib
MY_LIB_DIR = c:\DolphinCli\mislib

# MY_LIB_DIR2         = .
# MY_LIB_DIR3         = \sistema\proyectos\UTILX

# Fivewin libraries ##########################################################

FIVE_LIB  = $(FIVEWIN_LIB_DIR)\fiveH.lib
FIVEC_LIB = $(FIVEWIN_LIB_DIR)\fiveHC.lib

# Harbour directories & flags ################################################

HARBOUR_INCLUDE_DIR = c:\Harbour\include
HARBOUR_EXE_DIR     = c:\Harbour\bin
HARBOUR_LIB_DIR     = c:\Harbour\lib
HARBOUR_FLAGS       = -i$(APP_INCLUDE_DIR);$(FIVEWIN_INCLUDE_DIR);$(HARBOUR_INCLUDE_DIR) -n -m -es2 -gc1
HARBOUR_EXE         = $(HARBOUR_EXE_DIR)\harbour.exe

# My libraries      ##########################################################

MYSQL_LIB = $(FIVEWIN_LIB_DIR)\libmysql.lib
DOLPHIN_LIB = $(FIVEWIN_LIB_DIR)\dolphin.lib
TWAIN_LIB =$(MY_LIB_DIR)\TWAIN.lib

# TWBRW_LIB    = $(MY_LIB_DIR)\twbrw17b.lib

# Harbour libraries ##########################################################

CT_LIB       = $(HARBOUR_LIB_DIR)\hbct.lib
RTL_LIB      = $(HARBOUR_LIB_DIR)\hbrtl.lib
VM_LIB       = $(HARBOUR_LIB_DIR)\hbvm.lib
GTWIN_LIB    = $(HARBOUR_LIB_DIR)\gtgui.lib
LANG_LIB     = $(HARBOUR_LIB_DIR)\hblang.lib
MACRO_LIB    = $(HARBOUR_LIB_DIR)\hbmacro.lib
RDD_LIB      = $(HARBOUR_LIB_DIR)\hbrdd.lib
DBFNTX_LIB   = $(HARBOUR_LIB_DIR)\rddntx.lib
DBFCDX_LIB   = $(HARBOUR_LIB_DIR)\rddcdx.lib
DBFFPT_LIB   = $(HARBOUR_LIB_DIR)\rddfpt.lib
DBFSIX_LIB   = $(HARBOUR_LIB_DIR)\hbsix.lib
HBPCRE_LIB   = $(HARBOUR_LIB_DIR)\hbpcre.lib
DEBUG_LIB    = $(HARBOUR_LIB_DIR)\hbdebug.lib
COMMON_LIB   = $(HARBOUR_LIB_DIR)\hbcommon.lib
PP_LIB       = $(HARBOUR_LIB_DIR)\hbpp.lib
ZLIB_LIB     = $(HARBOUR_LIB_DIR)\hbzlib.lib
HBZIP_LIB    = $(HARBOUR_LIB_DIR)\hbmzip.lib
XHB_LIB      = $(HARBOUR_LIB_DIR)\xhb.lib
PNG_LIB      = $(HARBOUR_LIB_DIR)\png.lib
HBWIN_LIB    = $(HARBOUR_LIB_DIR)\hbwin.lib
HBCPAGE_LIB  = $(HARBOUR_LIB_DIR)\hbcpage.lib
HBCPLR_LIB   = $(HARBOUR_LIB_DIR)\hbcplr.lib
HBZIPARC_LIB = $(HARBOUR_LIB_DIR)\hbziparc.lib
MINIZIP_LIB  = $(HARBOUR_LIB_DIR)\minizip.lib
HBUSRRDD_LIB = $(HARBOUR_LIB_DIR)\hbusrrdd.lib
HBTIP_LIB    = $(HARBOUR_LIB_DIR)\hbtip.lib
HBZEBRA_LIB  = $(HARBOUR_LIB_DIR)\hbzebra.lib

# Advantage libraries ########################################################

# RDDADS_LIB = $(HARBOUR_LIB_DIR)\rddads.lib
# ACE32_LIB  = $(MY_LIB_DIR2)\ace32.lib

# Borlanc directories & flags ################################################

BORLANDC_INCLUDE_DIR = c:\bcc7\include
BORLANDC_EXE_DIR     = c:\bcc7\bin
BORLANDC_LIB_DIR     = c:\bcc7\lib
BORLANDC_COMP_FLAGS  = -c -O2 -I$(HARBOUR_INCLUDE_DIR);$(BORLANDC_INCLUDE_DIR)
BORLANDC_COMP_EXE    = $(BORLANDC_EXE_DIR)\bcc32.exe
BORLANDC_LINK_FLAGS  = -Gn -aa -Tpe -s -v -I$(APP_OBJ_DIR)
BORLANDC_LINK_EXE    = $(BORLANDC_EXE_DIR)\ilink32.exe
BORLANDC_RES_EXE     = $(BORLANDC_EXE_DIR)\brc32.exe

!if $(MAP_FILE) != YES
   BORLANDC_LINK_FLAGS = $(BORLANDC_LINK_FLAGS) -x
!endif

# Borland libraries & files ##################################################

STARTUP_OBJ  = $(BORLANDC_LIB_DIR)\c0w32.obj
CW32_LIB     = $(BORLANDC_LIB_DIR)\cw32.lib
IMPORT32_LIB = $(BORLANDC_LIB_DIR)\import32.lib
UUID_LIB     = $(BORLANDC_LIB_DIR)\uuid.lib
MSIMG32_LIB  = $(BORLANDC_LIB_DIR)\psdk\msimg32.lib
ODBC32_LIB   = $(BORLANDC_LIB_DIR)\psdk\odbc32.lib
RASAPI32_LIB = $(BORLANDC_LIB_DIR)\psdk\rasapi32.lib
NDDEAPI32_LIB= $(BORLANDC_LIB_DIR)\psdk\nddeapi.lib
IPHLPAPI_LIB = $(BORLANDC_LIB_DIR)\psdk\iphlpapi.lib
PSAPI_LIB    = $(BORLANDC_LIB_DIR)\psdk\psapi.lib

WS2_32_LIB  = $(BORLANDC_LIB_DIR)\ws2_32.lib
GDIPLUS_LIB = $(BORLANDC_LIB_DIR)\psdk\gdiplus.lib
SHELL32_LIB = $(BORLANDC_LIB_DIR)\psdk\shell32.lib


# Dependencies ###############################################################

all: $(APP_OBJS) $(APP_HRBS) $(APP_EXE)

!if $(RES_FILE) == YES
all: $(APP_RES)
!endif

# Implicit Rules #############################################################

.prg.hrb:
   $(HARBOUR_EXE) $(HARBOUR_FLAGS) $** -o$@

.hrb.obj:
   $(BORLANDC_COMP_EXE) $(BORLANDC_COMP_FLAGS) -o$@ $**

# Explicit Rules #############################################################

!if $(RES_FILE) == YES
$(APP_RES1) : $(APP_RC1)
   $(BORLANDC_RES_EXE) -r $**

$(APP_EXE) :: $(APP_RES)
   @if exist $(APP_EXE) $(DEL) $(APP_EXE) > nul
!endif

$(APP_EXE) :: $(APP_OBJS)
   $(BORLANDC_LINK_EXE) $(BORLANDC_LINK_FLAGS) @&&|
   $(STARTUP_OBJ) +
   $(**), +
   $(APP_EXE), +
   $(APP_MAP), +
   $(MYSQL_LIB) +
   $(DOLPHIN_LIB) +
   $(FIVE_LIB) +
   $(FIVEC_LIB) +
   $(CT_LIB) +
   $(RTL_LIB) +
   $(VM_LIB) +
   $(GTWIN_LIB) +
   $(HBZIP_LIB) +
   $(XHB_LIB) +
   $(LANG_LIB) +
   $(MACRO_LIB) +
   $(RDD_LIB) +
   $(DBFSIX_LIB) +
$(HBPCRE_LIB)+
   $(PCREPOS_LIB) +
   $(PNG_LIB) +
  $(HBWIN_LIB) +
  $(HBCPAGE_LIB) +
  $(HBCPLR_LIB) +
  $(HBZIPARC_LIB) +
  $(MINIZIP_LIB) +
  $(HBUSRRDD_LIB) +
  $(HBTIP_LIB) +
  $(HBZEBRA_LIB) +
  $(TWAIN_LIB) +
   $(ZLIB_LIB) +
   $(HBLIB_LIB) +
!if $(LNK_DBFNTX) == YES
   $(DBFNTX_LIB) +
!endif
!if $(LNK_DBFCDX) == YES
   $(DBFCDX_LIB) +
   $(DBFFPT_LIB) +
!endif
!if $(LNK_DEBUG) == YES
   $(DEBUG_LIB) +
!endif
   $(COMMON_LIB) +
   $(PP_LIB) +
!if $(LNK_ADVANTAGE) == YES
   $(RDDADS_LIB) +
   $(ACE32_LIB) +
!endif
!if $(LNK_ODBC) == YES
   $(ODBC32_LIB) +
!endif
   $(CW32_LIB) +
   $(MSIMG32_LIB) +
   $(IMPORT32_LIB) +
   $(RASAPI32_LIB) +
   $(NDDEAPI32_LIB) +
   $(PSAPI_LIB) +
$(WS2_32_LIB) +
$(GDIPLUS_LIB) +
$(SHELL32_LIB) +
   $(IPHLPAPI_LIB), +
!if $(RES_FILE) == YES
   ,$(APP_RES1)
!endif
|
   @$(DEL) $(APP_EXE_DIR)\$(APP_NAME).tds
 

Desde ya les agradezco su ayuda.
Saludos
Marcelo
FWH - Harbour - BCC7 - PellesC
User avatar
Marcelo Roggeri
 
Posts: 342
Joined: Sat Jul 22, 2006 9:04 pm
Location: Venado Tuerto - Santa Fe -Argentina

Previous

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 43 guests