Return to platform_WIN64_X86_64_MSVC.mak CVS log | Up to [Pegasus] / pegasus / mak |
1 a.dunfey 1.1 #//%2006//////////////////////////////////////////////////////////////////////// 2 #// 3 #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development 4 #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. 5 #// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; 6 #// IBM Corp.; EMC Corporation, The Open Group. 7 #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; 8 #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. 9 #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; 10 #// EMC Corporation; VERITAS Software Corporation; The Open Group. 11 #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; 12 #// EMC Corporation; Symantec Corporation; The Open Group. 13 #// 14 #// Permission is hereby granted, free of charge, to any person obtaining a copy 15 #// of this software and associated documentation files (the "Software"), to 16 #// deal in the Software without restriction, including without limitation the 17 #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 18 #// sell copies of the Software, and to permit persons to whom the Software is 19 #// furnished to do so, subject to the following conditions: 20 #// 21 #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN 22 a.dunfey 1.1 #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED 23 #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 24 #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 25 #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 26 #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 27 #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 28 #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 29 #// 30 #//============================================================================== 31 OS_TYPE = windows 32 OS = win64 33 ARCHITECTURE = X86X64 34 COMPILER = msvc 35 36 SYS_INCLUDES = 37 38 DEPEND_INCLUDES = 39 40 DEFINES = -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM) -D_WIN32_WINNT=0x0400 41 #-D_WIN32_WINNT=0x0400 -DWINVER=0x0400 42 43 a.dunfey 1.1 44 # 45 # Determine the version of the compiler being used. 46 # 47 CL_VERSION := $(word 8, $(shell cl.exe 2>&1)) 48 CL_MAJOR_VERSION := $(word 1, $(subst ., , $(CL_VERSION))) 49 | ||
50 dave.sudlik 1.2 51 # 52 # Determine the version of Windows being used. 53 # IPv6 is not supported on Windows 2000 (earliest Windows version supported | ||
54 dave.sudlik 1.4 # by Pegasus), but we don't enforce that here. 55 # IPv6 is not supported by the VC 6 compiler (CL_MAJOR_VERSION is 12 for VC 6). | ||
56 dave.sudlik 1.2 # 57 ifeq ($(CL_MAJOR_VERSION), 12) 58 PEGASUS_ENABLE_IPV6 = false 59 endif 60 61 | ||
62 a.dunfey 1.1 # 63 # The flags set here should be valid for VC 6. 64 # 65 # The -Zm105 flag was added as part of bug 4418 to resolve this compile error: 66 # C:\Program Files\Microsoft Visual Studio\VC98\include\xlocale(467) : 67 # fatal error C1076: compiler limit : internal heap limit reached; use /Zm to 68 # specify a higher limit 69 # 70 CXX_VERSION_FLAGS := -Zm105 71 CXX_VERSION_DEBUG_FLAGS := 72 CXX_VERSION_RELEASE_FLAGS := 73 LINK_VERSION_RELEASE_FLAGS := 74 75 76 # 77 # CL_MAJOR_VERSION 13 is VC 7 78 # 79 ifeq ($(CL_MAJOR_VERSION), 13) 80 CXX_VERSION_FLAGS := -EHsc 81 CXX_VERSION_DEBUG_FLAGS := -Gs 82 CXX_VERSION_RELEASE_FLAGS := -Gs -GF -Gy 83 a.dunfey 1.1 LINK_VERSION_RELEASE_FLAGS := /LTCG /OPT:REF /OPT:ICF=5 /OPT:NOWIN98 84 endif 85 86 87 # 88 # CL_MAJOR_VERSION 14 is VC 8 89 # 90 ifeq ($(CL_MAJOR_VERSION), 14) 91 CXX_VERSION_FLAGS := -EHsc 92 CXX_VERSION_DEBUG_FLAGS := -RTCc -RTCsu 93 CXX_VERSION_RELEASE_FLAGS := -GF -GL -Gy 94 LINK_VERSION_RELEASE_FLAGS := /LTCG /OPT:REF /OPT:ICF=5 /OPT:NOWIN98 95 DEFINES += -D_CRT_SECURE_NO_DEPRECATE 96 endif 97 98 CXX_VERSION_FLAGS := -Wp64 -EHsc 99 CXX_VERSION_DEBUG_FLAGS := -RTCc -RTCsu 100 101 ifdef PEGASUS_USE_DEBUG_BUILD_OPTIONS 102 FLAGS = $(CXX_VERSION_FLAGS) $(CXX_VERSION_DEBUG_FLAGS) -GR -W3 -Od -Zi -MDd -DDEBUG -Fd$(OBJ_DIR)/ 103 LINK_FLAGS += -debug 104 a.dunfey 1.1 else 105 FLAGS = $(CXX_VERSION_FLAGS) $(CXX_VERSION_RELEASE_FLAGS) -GR -W3 -O2 -MD 106 LINK_FLAGS += $(LINK_VERSION_RELEASE_FLAGS) 107 endif 108 109 110 ifdef PEGASUS_DEBUG_CIMEXCEPTION 111 DEFINES += -DPEGASUS_DEBUG_CIMEXCEPTION 112 endif 113 114 # if PEGASUS_ENABLE_SLP is already set then honor the users preference else 115 # Enable the compilation of the SLP functions. 116 # 117 ifndef PEGASUS_ENABLE_SLP 118 PEGASUS_ENABLE_SLP = true 119 endif 120 121 # ATTN KS 20020927 - Add flag to allow conditional testing of interoperability 122 # changes during interoperability tests. 123 ifdef PEGASUS_SNIA_INTEROP_TEST 124 DEFINES+= -DPEGASUS_SNIA_INTEROP_TEST 125 a.dunfey 1.1 endif 126 127 RM = mu rm 128 129 RMDIRHIER = mu rmdirhier 130 131 MKDIRHIER = mu mkdirhier 132 133 DIFF = mu compare 134 135 SORT = mu sort 136 137 COPY = mu copy 138 139 MOVE = mu move 140 141 CXX = cl -nologo 142 143 EXE_OUT = -Fe 144 145 LIB_OUT = -out: 146 a.dunfey 1.1 147 OBJ = .obj 148 149 OBJ_OUT = -Fo 150 151 EXE = .exe 152 153 DLL = .dll 154 155 ILK = .ilk 156 157 PDB = .pdb 158 159 EXP = .exp 160 161 AR = LINK -nologo -dll 162 163 LIB_PREFIX = 164 165 LIB_SUFFIX = .lib 166 167 a.dunfey 1.1 TOUCH = mu touch 168 169 ECHO = mu echo 170 171 LEX = flex 172 173 YACC = bison 174 175 SH = bash 176 177 # Windows DLLs are installed in the $(PEGASUS_HOME)/bin directory 178 PEGASUS_DEST_LIB_DIR = bin 179 180 # The Provider User Context feature (PEP 197) is not supported on Windows 181 PEGASUS_DISABLE_PROV_USERCTXT=1 182 183 # Windows does not support local domain sockets or the equivalent Bug 2147 184 PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET=1 185 186 ifdef PEGASUS_HAS_MESSAGES | ||
187 kumpf 1.5 ifneq ($(PEGASUS_HAS_ICU),true) | ||
188 a.dunfey 1.1 MSG_COMPILE = genrb 189 MSG_FLAGS = 190 MSG_SOURCE_EXT = .txt 191 MSG_COMPILE_EXT = .res 192 CNV_ROOT_CMD = cnv2rootbundle 193 194 EXTRA_LIBRARIES += $(ICU_INSTALL)/lib/icuuc.lib $(ICU_INSTALL)/lib/icuin.lib $(ICU_INSTALL)/lib/icudt.lib | ||
195 kumpf 1.5 SYS_INCLUDES += -I$(ICU_INSTALL)/include | ||
196 a.dunfey 1.1 endif 197 endif 198 199 PEGASUS_JAVA_CLASSPATH_DELIMITER = ; | ||
200 mateus.baur 1.3 201 ################################## 202 ## 203 ## Pegasus WMIMapper 204 ## 205 ################################## 206 207 ifeq ($(PEGASUS_BUILD_WMIMAPPER),true) 208 FLAGS += -DPEGASUS_WMIMAPPER 209 else 210 ifdef PEGASUS_WMIMAPPER 211 FLAGS += -DPEGASUS_WMIMAPPER 212 endif 213 endif 214 215 ################################## 216 ## 217 ## The newer compiler versions need neither MS Platform SDK installed nor MSSdk variable defined. 218 ## 219 ################################## 220 ifeq ($(PEGASUS_BUILD_WMIMAPPER),true) 221 mateus.baur 1.3 ifeq ($(CL_MAJOR_VERSION), 12) 222 PEGASUS_WMIMAPPER_NEED_MSSDK=true 223 endif 224 ifeq ($(CL_MAJOR_VERSION), 13) 225 PEGASUS_WMIMAPPER_NEED_MSSDK=true 226 endif 227 ifeq ($(PEGASUS_WMIMAPPER_NEED_MSSDK),true) 228 ifndef MSSdk 229 $(error MSSdk environment variable undefined) 230 endif 231 endif 232 endif |
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |