(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 mike          1.1  ifdef PEGASUS_DEBUG
 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 joyce.j       1.34 ifdef PEGASUS_ENABLE_SLP
 96                        DEFINES+= -DPEGASUS_ENABLE_SLP
 97                    endif
 98 karl          1.23 
 99 karl          1.11 # ATTN KS 20020927 - Add flag to allow conditional testing of interoperability
100                    # changes during interoperability tests.
101                    ifdef PEGASUS_SNIA_INTEROP_TEST
102 david.dillard 1.27     DEFINES+= -DPEGASUS_SNIA_INTEROP_TEST
103 karl          1.11 endif
104 kumpf         1.22 
105 mike          1.1  RM = mu rm
106                    
107                    RMDIRHIER = mu rmdirhier
108                    
109                    MKDIRHIER = mu mkdirhier
110                    
111 jim.wunderlich 1.26 DIFF = mu compare
112                     
113                     SORT = mu sort
114                     
115 mike           1.1  COPY = mu copy
116                     
117 mike           1.4  MOVE = mu move
118                     
119 mike           1.1  CXX = cl -nologo
120                     
121                     EXE_OUT = -Fe
122                     
123                     LIB_OUT = -out:
124                     
125                     OBJ = .obj
126                     
127                     OBJ_OUT = -Fo
128                     
129                     EXE = .exe
130 tony           1.15 
131                     DLL = .dll
132                     
133                     ILK = .ilk
134                     
135                     PDB = .pdb
136                     
137                     EXP = .exp
138 mike           1.1  
139                     AR = LINK -nologo -dll
140                     
141                     LIB_PREFIX =
142                     
143                     LIB_SUFFIX = .lib
144                     
145                     TOUCH = mu touch
146                     
147                     ECHO = mu echo
148                     
149                     LEX = flex
150                     
151                     YACC = bison
152 mike           1.3  
153                     SH = bash
154 mike           1.4  
155                     YACC = bison
156 konrad.r       1.19 
157 kumpf          1.21 # Windows DLLs are installed in the $(PEGASUS_HOME)/bin directory
158                     PEGASUS_DEST_LIB_DIR = bin
159 kumpf          1.22  
160                     # The Provider User Context feature (PEP 197) is not supported on Windows
161                     PEGASUS_DISABLE_PROV_USERCTXT=1
162 h.sterling     1.24 
163 h.sterling     1.33 # Windows does not support local domain sockets or the equivalent Bug 2147
164                     PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET=1
165 h.sterling     1.30 
166 h.sterling     1.24 # l10n
167                     ifdef PEGASUS_HAS_MESSAGES
168 david.dillard  1.27     DEFINES += -DPEGASUS_HAS_MESSAGES
169                         ifdef ICU_ROOT
170 h.sterling     1.30         MSG_COMPILE = genrb
171                             MSG_FLAGS =
172                             MSG_SOURCE_EXT = .txt
173                             MSG_COMPILE_EXT = .res
174                             CNV_ROOT_CMD = cnv2rootbundle
175 h.sterling     1.24 
176                     ##################################
177                     ##
178                     ## ICU_NO_UPPERCASE_ROOT if set, specifies NOT to uppercase the root resource bundle,
179                     ## default is to uppercase the root resource bundle##
180                     ##################################
181                     
182                     ifdef ICU_NO_UPPERCASE_ROOT
183 david.dillard  1.27     CNV_ROOT_FLAGS =
184 h.sterling     1.24 else
185 david.dillard  1.27     CNV_ROOT_FLAGS = -u
186 h.sterling     1.24 endif
187                     
188                     ####################################
189                     ##
190                     ##   ICU_ROOT_BUNDLE_LANG if set, specifies the language that the root resource bundle will be generated from
191                     ##   defaults to _en if not set.  if set, for any directory containing resource bundles,
192                     ##   there must exist a file name: package(the value of ICU_ROOT_BUNDLE_LANG).txt or the make messages target will fail
193                     ##
194                     ##   We have to use the full path library because the cl /Fe command in program-windows.mak does
195                     ##   not take libpath as an argument (as far as I can tell)
196                     ####################################
197                     
198                     ifdef ICU_ROOT_BUNDLE_LANG
199 david.dillard  1.27     MSG_ROOT_SOURCE = $(ICU_ROOT_BUNDLE_LANG)
200 h.sterling     1.24 else
201 david.dillard  1.27     MSG_ROOT_SOURCE = _en
202 h.sterling     1.24 endif
203 david.dillard  1.27         DEFINES += -DPEGASUS_HAS_ICU
204                             EXTRA_LIBRARIES += $(ICU_INSTALL)/lib/icuuc.lib $(ICU_INSTALL)/lib/icuin.lib $(ICU_INSTALL)/lib/icudt.lib
205                             SYS_INCLUDES += -I$(ICU_ROOT)/source/common -I$(ICU_ROOT)/source/i18n
206                         endif
207 h.sterling     1.24 endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2