| 227 |
dpurdie |
1 |
# -*- mode: mak; -*-
|
|
|
2 |
###############################################################################
|
|
|
3 |
# File: TOOLSET/vcwin.def
|
|
|
4 |
# Contents: Visual C/C++ defines
|
|
|
5 |
###############################################################################
|
|
|
6 |
|
|
|
7 |
toolset = vcwin
|
|
|
8 |
|
|
|
9 |
o = obj
|
|
|
10 |
s = asm
|
|
|
11 |
a = lib
|
|
|
12 |
exe = .exe
|
|
|
13 |
|
|
|
14 |
.SUFFIXES: .asm
|
|
|
15 |
|
|
|
16 |
#
|
|
|
17 |
# Setup the basic MSVS environment paths
|
|
|
18 |
# This is taken from "c:\Program Files\Microsoft Visual Studio\VC98\Bin\VCVARS32.BAT"
|
|
|
19 |
#
|
|
|
20 |
# Cannot use VCVARS32.BAT data imported from the environment as it
|
|
|
21 |
# will conflict with other versions of MS
|
|
|
22 |
#
|
|
|
23 |
# The following are the default installed locations, which may be
|
|
|
24 |
# overriden by environment variables
|
|
|
25 |
#
|
|
|
26 |
PROGRAMFILES ?= C:\\Program Files
|
|
|
27 |
VSCommonDir ?= $(PROGRAMFILES)\Microsoft Visual Studio\Common
|
|
|
28 |
MSDevDir ?= $(PROGRAMFILES)\Microsoft Visual Studio\Common\MSDev98
|
|
|
29 |
MSVCDir ?= $(PROGRAMFILES)\Microsoft Visual Studio\VC98
|
|
|
30 |
VcOsDir ?= WINNT
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
# Verify environment variable requirements
|
|
|
34 |
.PHONY: visualc
|
|
|
35 |
visualc:
|
|
|
36 |
ifndef GBE_NOTOOLSTEST
|
| 6177 |
dpurdie |
37 |
@$(echo) '[Toolset VCWIN32 - Visual C/C++ WIN32]'; \
|
| 227 |
dpurdie |
38 |
if [ ! -d "$(VSCommonDir)" ]; then echo "Directory VSCommonDir does not exist: $(VSCommonDir)"; exit 2; fi; \
|
|
|
39 |
if [ ! -d "$(MSDevDir)" ]; then echo "Directory MSDevDir does not exist: $(MSDevDir)"; exit 2; fi; \
|
|
|
40 |
if [ ! -d "$(MSVCDir)" ]; then echo "Directory MSVCDir does not exist: $(MSVCDir)"; exit 2; fi;
|
|
|
41 |
endif
|
|
|
42 |
|
|
|
43 |
VISUALC := $(subst \,/,$(strip $(MSVCDir)))
|
|
|
44 |
visualc := $(subst $(space),$(spacealt),$(subst \,/,$(strip $(MSVCDir))))
|
|
|
45 |
|
|
|
46 |
#
|
|
|
47 |
# Setup PATH, VC_LIB and INCLUDE
|
|
|
48 |
#
|
|
|
49 |
V6_PATH := $(MSDevDir)\BIN
|
|
|
50 |
V6_PATH := $(V6_PATH);$(MSVCDir)\BIN
|
|
|
51 |
V6_PATH := $(V6_PATH);$(VSCommonDir)\TOOLS\$(VcOsDir)
|
|
|
52 |
V6_PATH := $(V6_PATH);$(VSCommonDir)\TOOLS
|
|
|
53 |
|
|
|
54 |
ifeq "$(findstring $(V6_PATH),$(PATH))" ""
|
|
|
55 |
PATH := $(V6_PATH);$(PATH)
|
|
|
56 |
endif
|
|
|
57 |
Path := $(PATH)
|
|
|
58 |
export PATH
|
|
|
59 |
|
|
|
60 |
INCLUDE := $(MSVCDir)\ATL\INCLUDE
|
|
|
61 |
INCLUDE := $(INCLUDE);$(MSVCDir)\INCLUDE
|
|
|
62 |
INCLUDE := $(INCLUDE);$(MSVCDir)\MFC\INCLUDE
|
|
|
63 |
export INCLUDE
|
|
|
64 |
|
|
|
65 |
VC_LIB := $(MSVCDir)\LIB
|
|
|
66 |
VC_LIB := $(VC_LIB);$(MSVCDir)\MFC\LIB
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
# rpcgen configuration
|
|
|
70 |
#
|
|
|
71 |
RPCGEN_CPP := cl
|
|
|
72 |
RPCGEN_CFLAGS := -EP
|
|
|
73 |
export RPCGEN_CPP RPCGEN_CFLAGS
|
|
|
74 |
|
|
|
75 |
#
|