Harbour 3.1 + Fivewin 12.03 + Bcc5.82 Compile & Link Tools
Too many DEF file name Link Error
"Fatal: Too many DEF file names: C:\Bcc582\lib\psdk\psapi.lib"
psapi.lib delete, rasapi32.lib error
- Code: Select all Expand view
- # 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 = NO
LNK_DEBUG = NO
LNK_ADVANTAGE = YES
MAP_FILE = NO
# Application directories & filenames ########################################
APP_NAME = MyApp # (Your EXE name without extension)
APP_PRG_DIR = .
APP_OBJ_DIR = obj # (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_RC = $(APP_RES_DIR)\$(APP_NAME).rc
APP_RES = $(APP_RES_DIR)\$(APP_NAME).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 = \
MyApp.prg \
Sub1.prg \
Sub2.prg \
Sub3.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
# 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 -w -es2 -gc0
HARBOUR_EXE = $(HARBOUR_EXE_DIR)\harbour.exe
# Harbour libraries ##########################################################
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
HBSIX_LIB = $(HARBOUR_LIB_DIR)\hbsix.lib
HBZIP_LIB = $(HARBOUR_LIB_DIR)\hbzip.lib
DEBUG_LIB = $(HARBOUR_LIB_DIR)\hbdebug.lib
COMMON_LIB = $(HARBOUR_LIB_DIR)\hbcommon.lib
PP_LIB = $(HARBOUR_LIB_DIR)\hbpp.lib
CPAGE_LIB = $(HARBOUR_LIB_DIR)\hbcpage.lib
WIN_LIB = $(HARBOUR_LIB_DIR)\hbwin.lib
CPLR_LIB = $(HARBOUR_LIB_DIR)\hbcplr.lib
CT_LIB = $(HARBOUR_LIB_DIR)\hbct.lib
PCREPOS_LIB = $(HARBOUR_LIB_DIR)\hbpcre.lib
XHB_LIB = $(HARBOUR_LIB_DIR)\xhb.lib
ZIPARC_LIB = $(HARBOUR_LIB_DIR)\hbziparc.lib
MZIP_LIB = $(HARBOUR_LIB_DIR)\hbmzip.lib
ZLIB_LIB = $(HARBOUR_LIB_DIR)\hbzlib.lib
MINIZIP_LIB = $(HARBOUR_LIB_DIR)\minizip.lib
PNG_LIB = $(HARBOUR_LIB_DIR)\png.lib
BC_64 = $(HARBOUR_LIB_DIR)\bcc640.lib
# Advantage libraries ########################################################
RDDADS_LIB = $(HARBOUR_LIB_DIR)\rddads.lib
ACE32_LIB = $(FIVEWIN_LIB_DIR)\ace32.lib
# Borlanc directories & flags ################################################
BORLANDC_INCLUDE_DIR = C:\bcc582\include
BORLANDC_EXE_DIR = C:\bcc582\bin
BORLANDC_LIB_DIR = C:\bcc582\lib
BORLANDC_OPTION ="__HARBOUR__;HB_API_MACROS;HB_OS_WIN"
BORLANDC_COMP_FLAGS = -D$(BORLANDC_OPTION) -O2 -I$(HARBOUR_INCLUDE_DIR);$(BORLANDC_INCLUDE_DIR) -M -c
BORLANDC_COMP_EXE = $(BORLANDC_EXE_DIR)\bcc32.exe
BORLANDC_LINK_FLAGS = -Gn -aa -Tpe -s -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
WS2_32_LIB = $(BORLANDC_LIB_DIR)\ws2_32.lib
ODBC32_LIB = $(BORLANDC_LIB_DIR)\psdk\odbc32.lib
NDDEAPI_LIB = $(BORLANDC_LIB_DIR)\psdk\nddeapi.lib
IPHLPAPI_LIB = $(BORLANDC_LIB_DIR)\psdk\iphlpapi.lib
MSIMG32_LIB = $(BORLANDC_LIB_DIR)\psdk\msimg32.lib
PSAPI_LIB = $(BORLANDC_LIB_DIR)\psdk\psapi.lib
RASAPI32_LIB = $(BORLANDC_LIB_DIR)\psdk\rasapi32.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_RES) : $(APP_RC)
$(BORLANDC_RES_EXE) -r $**
$(APP_EXE) :: $(APP_RES)
@if exist $(APP_EXE) del $(APP_EXE) > nul
!endif
$(APP_EXE) :: $(APP_OBJS)
@echo $(STARTUP_OBJ) + > make.tmp
@echo $(**), + >> make.tmp
@echo $(APP_EXE), + >> make.tmp
@echo $(APP_MAP), + >> make.tmp
@echo $(FIVE_LIB) + >> make.tmp
@echo $(FIVEC_LIB) + >> make.tmp
@echo $(BC_64) + >> make.tmp
@echo $(RTL_LIB) + >> make.tmp
@echo $(VM_LIB) + >> make.tmp
@echo $(GTWIN_LIB) + >> make.tmp
@echo $(LANG_LIB) + >> make.tmp
@echo $(MACRO_LIB) + >> make.tmp
@echo $(RDD_LIB) + >> make.tmp
!if $(LNK_DBFNTX) == YES
@echo $(DBFNTX_LIB) + >> make.tmp
!endif
!if $(LNK_DBFCDX) == YES
@echo $(DBFCDX_LIB) + >> make.tmp
!endif
@echo $(DBFFPT_LIB) + >> make.tmp
@echo $(HBSIX_LIB) + >> make.tmp
@echo $(HBZIP_LIB) + >> make.tmp
!if $(LNK_DEBUG) == YES
@echo $(DEBUG_LIB) + >> make.tmp
!endif
@echo $(COMMON_LIB) + >> make.tmp
@echo $(PP_LIB) + >> make.tmp
@echo $(CPAGE_LIB) + >> make.tmp
@echo $(WIN_LIB) + >> make.tmp
@echo $(CPLR_LIB) + >> make.tmp
@echo $(CT_LIB) + >> make.tmp
@echo $(PCREPOS_LIB) + >> make.tmp
@echo $(XHB_LIB) + >> make.tmp
@echo $(ZIPARC_LIB) + >> make.tmp
@echo $(MZIP_LIB) + >> make.tmp
@echo $(ZLIB_LIB) + >> make.tmp
@echo $(MINIZIP_LIB) + >> make.tmp
@echo $(PNG_LIB) + >> make.tmp
!if $(LNK_ADVANTAGE) == YES
@echo $(RDDADS_LIB) + >> make.tmp
@echo $(ACE32_LIB) + >> make.tmp
!endif
@echo $(CW32_LIB) + >> make.tmp
@echo $(IMPORT32_LIB) + >> make.tmp
@echo $(UUID_LIB) + >> make.tmp
@echo $(WS2_32_LIB) + >> make.tmp
@echo $(ODBC32_LIB) + >> make.tmp
@echo $(NDDEAPI_LIB) + >> make.tmp
@echo $(IPHLPAPI_LIB) >> make.tmp
@echo $(MSIMG32_LIB) + >> make.tmp
@echo $(PSAPI_LIB) + >> make.tmp
@echo $(RASAPI32_LIB) + >> make.tmp
@echo $(GDIPLUS_LIB) + >> make.tmp
@echo $(SHELL32_LIB), >> make.tmp
!if $(RES_FILE) == YES
@echo $(APP_RES) >> make.tmp
!endif
$(BORLANDC_LINK_EXE) $(BORLANDC_LINK_FLAGS) @make.tmp
@del $(APP_EXE_DIR)\$(APP_NAME).tds
@del make.tmp
Please help.
Tomas.