(file) Return to platform_WIN32_IX86_MSVC.mak CVS log (file) (dir) Up to [Pegasus] / pegasus / mak

  1 martin 1.36 #//%2005////////////////////////////////////////////////////////////////////////
  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             #//
 12             #// Permission is hereby granted, free of charge, to any person obtaining a copy
 13             #// of this software and associated documentation files (the "Software"), to
 14             #// deal in the Software without restriction, including without limitation the
 15             #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 16             #// sell copies of the Software, and to permit persons to whom the Software is
 17             #// furnished to do so, subject to the following conditions:
 18             #// 
 19             #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 20             #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 21             #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 22 martin 1.36 #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 23             #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 24             #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 25             #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 26             #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27             #//
 28             #//==============================================================================
 29 mike   1.1  OS_TYPE = windows
 30             OS = win32
 31             ARCHITECTURE = iX86
 32             COMPILER = msvc
 33             
 34             SYS_INCLUDES =
 35             
 36             DEPEND_INCLUDES =
 37             
 38 kumpf  1.17 DEFINES = -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM) -D_WIN32_WINNT=0x0400
 39 mike   1.6  #-D_WIN32_WINNT=0x0400 -DWINVER=0x0400
 40 mike   1.1  
 41 david.dillard 1.27 
 42                    #
 43                    # Determine the version of the compiler being used.
 44                    #
 45                    CL_VERSION := $(word 8, $(shell cl.exe 2>&1))
 46                    CL_MAJOR_VERSION := $(word 1, $(subst .,  , $(CL_VERSION)))
 47                    
 48                    
 49                    #
 50                    # The flags set here should be valid for VC 6.
 51                    #
 52 david.dillard 1.35 CXX_VERSION_FLAGS := -GX
 53                    CXX_VERSION_DEBUG_FLAGS :=
 54                    CXX_VERSION_RELEASE_FLAGS :=
 55                    LINK_VERSION_RELEASE_FLAGS :=
 56 david.dillard 1.27 
 57                    
 58                    #
 59                    # CL_MAJOR_VERSION 13 is VC 7
 60                    #
 61                    ifeq ($(CL_MAJOR_VERSION), 13)
 62 david.dillard 1.35     CXX_VERSION_FLAGS := -Wp64 -EHsc
 63                        CXX_VERSION_DEBUG_FLAGS := -Gs
 64                        CXX_VERSION_RELEASE_FLAGS := -Gs -GF -Gy
 65                        LINK_VERSION_RELEASE_FLAGS := /LTCG /OPT:REF /OPT:ICF=5 /OPT:NOWIN98
 66 david.dillard 1.27 endif
 67                    
 68                    
 69                    #
 70                    # CL_MAJOR_VERSION 14 is VC 8
 71                    #
 72                    ifeq ($(CL_MAJOR_VERSION), 14)
 73 david.dillard 1.35     CXX_VERSION_FLAGS := -Wp64 -EHsc
 74                        CXX_VERSION_DEBUG_FLAGS := -RTCc -RTCsu
 75                        CXX_VERSION_RELEASE_FLAGS := -GF -GL -Gy
 76                        LINK_VERSION_RELEASE_FLAGS := /LTCG /OPT:REF /OPT:ICF=5 /OPT:NOWIN98
 77 david.dillard 1.27     DEFINES += -D_CRT_SECURE_NO_DEPRECATE
 78                    endif
 79                    
 80                    
 81 aruran.ms     1.38 ifdef PEGASUS_USE_DEBUG_BUILD_OPTIONS 
 82 david.dillard 1.35     FLAGS = $(CXX_VERSION_FLAGS) $(CXX_VERSION_DEBUG_FLAGS) -GR -W3 -Od -Zi -MDd -DDEBUG -Fd$(OBJ_DIR)/
 83                        LINK_FLAGS += -debug
 84 mike          1.1  else
 85 david.dillard 1.35     FLAGS = $(CXX_VERSION_FLAGS) $(CXX_VERSION_RELEASE_FLAGS) -GR -W3 -O2 -MD
 86                        LINK_FLAGS += $(LINK_VERSION_RELEASE_FLAGS)
 87 mike          1.1  endif
 88                    
 89 david.dillard 1.27 
 90 karl          1.9  ifdef PEGASUS_DEBUG_CIMEXCEPTION
 91 david.dillard 1.27     DEFINES += -DPEGASUS_DEBUG_CIMEXCEPTION
 92 karl          1.9  endif
 93                    
 94 karl          1.23 # Enable the compilation of the SLP functions.
 95 a.dunfey      1.37 ifndef PEGASUS_DISABLE_SLP
 96                        PEGASUS_ENABLE_SLP = true
 97                        DEFINES += -DPEGASUS_ENABLE_SLP
 98 joyce.j       1.34 endif
 99 karl          1.23 
100 karl          1.11 # ATTN KS 20020927 - Add flag to allow conditional testing of interoperability
101                    # changes during interoperability tests.
102                    ifdef PEGASUS_SNIA_INTEROP_TEST
103 david.dillard 1.27     DEFINES+= -DPEGASUS_SNIA_INTEROP_TEST
104 karl          1.11 endif
105 kumpf         1.22 
106 mike          1.1  RM = mu rm
107                    
108                    RMDIRHIER = mu rmdirhier
109                    
110                    MKDIRHIER = mu mkdirhier
111                    
112 jim.wunderlich 1.26 DIFF = mu compare
113                     
114                     SORT = mu sort
115                     
116 mike           1.1  COPY = mu copy
117                     
118 mike           1.4  MOVE = mu move
119                     
120 mike           1.1  CXX = cl -nologo
121                     
122                     EXE_OUT = -Fe
123                     
124                     LIB_OUT = -out:
125                     
126                     OBJ = .obj
127                     
128                     OBJ_OUT = -Fo
129                     
130                     EXE = .exe
131 tony           1.15 
132                     DLL = .dll
133                     
134                     ILK = .ilk
135                     
136                     PDB = .pdb
137                     
138                     EXP = .exp
139 mike           1.1  
140                     AR = LINK -nologo -dll
141                     
142                     LIB_PREFIX =
143                     
144                     LIB_SUFFIX = .lib
145                     
146                     TOUCH = mu touch
147                     
148                     ECHO = mu echo
149                     
150                     LEX = flex
151                     
152                     YACC = bison
153 mike           1.3  
154                     SH = bash
155 mike           1.4  
156                     YACC = bison
157 konrad.r       1.19 
158 kumpf          1.21 # Windows DLLs are installed in the $(PEGASUS_HOME)/bin directory
159                     PEGASUS_DEST_LIB_DIR = bin
160 kumpf          1.22  
161                     # The Provider User Context feature (PEP 197) is not supported on Windows
162                     PEGASUS_DISABLE_PROV_USERCTXT=1
163 h.sterling     1.24 
164 h.sterling     1.33 # Windows does not support local domain sockets or the equivalent Bug 2147
165                     PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET=1
166 h.sterling     1.30 
167 h.sterling     1.24 # l10n
168                     ifdef PEGASUS_HAS_MESSAGES
169 david.dillard  1.27     DEFINES += -DPEGASUS_HAS_MESSAGES
170                         ifdef ICU_ROOT
171 h.sterling     1.30         MSG_COMPILE = genrb
172                             MSG_FLAGS =
173                             MSG_SOURCE_EXT = .txt
174                             MSG_COMPILE_EXT = .res
175                             CNV_ROOT_CMD = cnv2rootbundle
176 h.sterling     1.24 
177                     ##################################
178                     ##
179                     ## ICU_NO_UPPERCASE_ROOT if set, specifies NOT to uppercase the root resource bundle,
180                     ## default is to uppercase the root resource bundle##
181                     ##################################
182                     
183                     ifdef ICU_NO_UPPERCASE_ROOT
184 david.dillard  1.27     CNV_ROOT_FLAGS =
185 h.sterling     1.24 else
186 david.dillard  1.27     CNV_ROOT_FLAGS = -u
187 h.sterling     1.24 endif
188                     
189                     ####################################
190                     ##
191                     ##   ICU_ROOT_BUNDLE_LANG if set, specifies the language that the root resource bundle will be generated from
192                     ##   defaults to _en if not set.  if set, for any directory containing resource bundles,
193                     ##   there must exist a file name: package(the value of ICU_ROOT_BUNDLE_LANG).txt or the make messages target will fail
194                     ##
195                     ##   We have to use the full path library because the cl /Fe command in program-windows.mak does
196                     ##   not take libpath as an argument (as far as I can tell)
197                     ####################################
198                     
199                     ifdef ICU_ROOT_BUNDLE_LANG
200 david.dillard  1.27     MSG_ROOT_SOURCE = $(ICU_ROOT_BUNDLE_LANG)
201 h.sterling     1.24 else
202 david.dillard  1.27     MSG_ROOT_SOURCE = _en
203 h.sterling     1.24 endif
204 david.dillard  1.27         DEFINES += -DPEGASUS_HAS_ICU
205                             EXTRA_LIBRARIES += $(ICU_INSTALL)/lib/icuuc.lib $(ICU_INSTALL)/lib/icuin.lib $(ICU_INSTALL)/lib/icudt.lib
206                             SYS_INCLUDES += -I$(ICU_ROOT)/source/common -I$(ICU_ROOT)/source/i18n
207                         endif
208 h.sterling     1.24 endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2