###############################################################################
# File:         TOOLSET/VisualBasic.def
# Contents:     Visual Basic 6 defines
###############################################################################

toolset		= visualbasic

o		= obj
s		= asm
a		= lib
exe		= .exe

.SUFFIXES:	.asm

#
#   Setup the basic VB6 environment paths
#
PROGRAMFILES  ?= C:\\Program Files
MSVBDir       ?= $(PROGRAMFILES)\Microsoft Visual Studio\VB98
MSVCDir       ?= $(PROGRAMFILES)\Microsoft Visual Studio\VC98

# Verify environment variable requirements
.PHONY:		visualbasic
visualbasic:
  ifndef GBE_NOTOOLSTEST
	    @$(echo) '[Toolset VB6 - Visual Basic 6 WIN32]'; \
	    if [ ! -d "$(MSVCDir)" ]; then echo "Directory MSVCDir does not exist: $(MSVCDir)"; exit 2; fi; \
	    if [ ! -d "$(MSVBDir)" ]; then echo "Directory MSVBDir does not exist: $(MSVCDir)"; exit 2; fi;
  endif

VISUALB		:= $(subst \,/,$(strip $(MSVBDir)))
visualb		:= $(subst $(space),$(spacealt),$(subst \,/,$(strip $(MSVBDir))))

#
#   Setup PATH, VB_LIB and INCLUDE
#
VB_PATH := $(MSVBDir)
VB_PATH := $(VB_PATH);$(MSVCDir)
VB_PATH := $(VB_PATH);$(MSVCDir)\BIN

ifeq "$(findstring $(VB_PATH),$(PATH))" ""
PATH    := $(VB_PATH);$(PATH)
endif
Path    := $(PATH)
export PATH

INCLUDE := $(MSVBDir)
export INCLUDE

VC_LIB     := $(MSVBDir)

#
