I am going to move to MSVC and I think it is a good idea to start a new topic with the questions I have, so it would be very usefull for further users.
In first place, Antonio please would be possible for FW 13.02 to have updated Harbour build and fwh\makes\msmakes.zip please?.
What version of MSVC should I use, 2010 or 2010?.
Also, I please need the make file for making a lib. This is how I build it under BCC:
REM @echo off
cls
del obj\*.* /q
del lib\*.lib
rem
rem
SET HB_DIR=c:\harbour
SET BCC_DIR=c:\bcc582
SET FW_DIR=c:\FWH
if "%1" == "clean" goto CLEAN
if "%1" == "CLEAN" goto CLEAN
:BUILD
%BCC_DIR%\bin\make -fLIB.mak %1 %2 %3 >> make_libh.log
if errorlevel 1 goto BUILD_ERR
:BUILD_OK
goto EXIT
:BUILD_ERR
notepad make_libh.log
goto EXIT
:CLEAN
if exist lib\*.lib del lib\*.lib
if exist source\obj\*.obj del source\obj\*.obj
goto EXIT
:EXIT
del *.log
The lib.mak file:
Code: Select all
# Libray directories & filenames #############################################
LIB_NAME = lib\custom_fivewin.lib
LIB_PRG_DIR = source
LIB_OBJ_DIR = obj
LIB_INCLUDE_DIR = include
# LIBRARY PRG files (your PRG files go here) #################################
LIB_PRG_LIST = rpreview.prg \
meter.prg \
msgget.prg \
varios.prg \
xbrowse.prg \
report.prg \
errsysw.prg
LIB_C_LIST = funcionesc.c
# Make directives ############################################################
.autodepend
.swap
.suffixes: .prg .hrb .c
# Paths for dependent files ##################################################
.path.prg = $(LIB_PRG_DIR)
.path.c = $(LIB_PRG_DIR)
.path.hrb = $(LIB_OBJ_DIR)
.path.obj = $(LIB_OBJ_DIR)
# Contruction of the rest dependency lists ###################################
LIB_PRGS = $(LIB_PRG_LIST)
LIB_C = $(LIB_C_LIST)
LIB_HRB = $(LIB_PRG_LIST:.prg=.hrb)
LIB_OBJS = $(LIB_PRG_LIST:.prg=.obj) $(LIB_C_LIST:.c=.obj)
# FiveWin directories & flags ################################################
FW_INCLUDE_DIR = $(FW_DIR)\include
FW_LIB_DIR = $(FW_DIR)\lib
# Harbour directories & flags ################################################
HARBOUR_INCLUDE_DIR = $(HB_DIR)\include
HARBOUR_EXE_DIR = $(HB_DIR)\bin
HARBOUR_LIB_DIR = $(HB_DIR)\lib
HARBOUR_FLAGS = -i$(LIB_INCLUDE_DIR);$(HARBOUR_INCLUDE_DIR);$(FW_INCLUDE_DIR) -n -m -w -es2 -gc0
HARBOUR_EXE = $(HARBOUR_EXE_DIR)\harbour.exe
# Borlanc directories & flags ################################################
BORLANDC_INCLUDE_DIR = $(BCC_DIR)\include
BORLANDC_EXE_DIR = $(BCC_DIR)\bin
BORLANDC_LIB_DIR = $(BCC_DIR)\lib
BORLANDC_COMP_FLAGS = -c -O2 -I$(HARBOUR_INCLUDE_DIR);$(BORLANDC_INCLUDE_DIR)
BORLANDC_COMP_EXE = $(BORLANDC_EXE_DIR)\bcc32.exe
BORLANDC_LIB_EXE = $(BORLANDC_EXE_DIR)\tlib.exe
# Dependencies ###############################################################
all: $(LIB_OBJS) $(LIB_HRB) $(LIB_NAME)
# Implicit Rules #############################################################
.prg.hrb:
$(HARBOUR_EXE) $(HARBOUR_FLAGS) $** -o$@
.c.obj:
$(BORLANDC_COMP_EXE) $(BORLANDC_COMP_FLAGS) -D__HARBOUR__;HB_API_MACROS -o$@ $**
$(BORLANDC_LIB_EXE) $(LIB_NAME) -+ $@,,
.hrb.obj:
$(BORLANDC_COMP_EXE) $(BORLANDC_COMP_FLAGS) -o$@ $**
$(BORLANDC_LIB_EXE) $(LIB_NAME) -+ $@,,
Thanks a lot. Best regards,