(file) Return to Makefile CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Server

  1 martin 1.66 #//%LICENSE////////////////////////////////////////////////////////////////
  2 martin 1.67 #//
  3 martin 1.66 #// Licensed to The Open Group (TOG) under one or more contributor license
  4             #// agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  5             #// this work for additional information regarding copyright ownership.
  6             #// Each contributor licenses this file to you under the OpenPegasus Open
  7             #// Source License; you may not use this file except in compliance with the
  8             #// License.
  9 martin 1.67 #//
 10 martin 1.66 #// Permission is hereby granted, free of charge, to any person obtaining a
 11             #// copy of this software and associated documentation files (the "Software"),
 12             #// to deal in the Software without restriction, including without limitation
 13             #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
 14             #// and/or sell copies of the Software, and to permit persons to whom the
 15             #// Software is furnished to do so, subject to the following conditions:
 16 martin 1.67 #//
 17 martin 1.66 #// The above copyright notice and this permission notice shall be included
 18             #// in all copies or substantial portions of the Software.
 19 martin 1.67 #//
 20 martin 1.66 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21 martin 1.67 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 22 martin 1.66 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 23             #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 24             #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 25             #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 26             #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27 martin 1.67 #//
 28 martin 1.66 #//////////////////////////////////////////////////////////////////////////
 29 mike   1.1  ROOT = ../..
 30             DIR = Server
 31             include $(ROOT)/mak/config.mak
 32             
 33             LIBRARIES = \
 34 carson.hovey 1.54     pegservice \
 35 gs.keenan    1.31     pegclient \
 36 mike         1.10     pegserver \
 37 gs.keenan    1.31     peguser \
 38                       pegprm \
 39                       NamespaceProvider \
 40                       pegindicationservice \
 41                       peghandlerservice \
 42                       ConfigSettingProvider \
 43                       DefaultProviderManager \
 44                       ProviderRegistrationProvider \
 45                       pegauthentication \
 46                       UserAuthProvider \
 47 kumpf        1.68     pegqueryexpression
 48 denise.eckstein 1.45 
 49 karl            1.61 ifeq ($(PEGASUS_ENABLE_CQL),true)
 50 denise.eckstein 1.45     LIBRARIES += \
 51                             pegcql
 52                      endif
 53                      
 54                      LIBRARIES += \
 55 carson.hovey    1.60     pegwql \
 56 kumpf           1.68     pegquerycommon
 57 denise.eckstein 1.45 
 58 karl            1.61 ifeq ($(PEGASUS_ENABLE_CQL),true)
 59 denise.eckstein 1.45     LIBRARIES += \
 60                             CIMQueryCapabilitiesProvider
 61                      endif
 62                      
 63                      LIBRARIES += \
 64 mike            1.50     DefaultProviderManager \
 65                          pegprovidermanager
 66                      
 67 gs.keenan       1.34 ifndef PEGASUS_DISABLE_PERFINST
 68 carson.hovey    1.40     LIBRARIES += \
 69                             CIMOMStatDataProvider \
 70 kumpf           1.68        InteropProvider
 71 carson.hovey    1.40 else
 72 jim.wunderlich  1.48     ifeq ($(PEGASUS_ENABLE_SLP),true)
 73 carson.hovey    1.40         LIBRARIES += \
 74 kumpf           1.68             InteropProvider
 75 carson.hovey    1.40     endif
 76 gs.keenan       1.34 endif
 77                      
 78 a.arora         1.33 ifdef PEGASUS_HAS_SSL
 79                      LIBRARIES += \
 80 gs.keenan       1.34     CertificateProvider
 81 a.arora         1.33 endif
 82                      
 83 kumpf           1.57 ifeq ($(PEGASUS_ENABLE_SLP),true)
 84                          LIBRARIES += pegslp
 85 mike            1.8  endif
 86 kumpf           1.7  
 87 kumpf           1.62 ifeq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),true)
 88                          LIBRARIES += pegwsmserver
 89                      endif
 90                      
 91 gs.keenan       1.52 LIBRARIES += \
 92                          pegprovidermanager \
 93                          pegpmservice \
 94 marek           1.70     pegpmrouter \
 95 gs.keenan       1.52     pegprovider \
 96                          pegexportserver \
 97                          pegrepository \
 98                          pegconfig \
 99 thilo.boehm     1.69     peggeneral \
100 kumpf           1.68     pegcommon
101 gs.keenan       1.52 
102 ouyang.jian     1.58 ifeq ($(PEGASUS_PLATFORM),PASE_ISERIES_IBMCXX)
103                        LIBRARIES += ILEWrapperUtils
104                      endif
105                      
106 mike            1.1  EXTRA_INCLUDES = $(SYS_INCLUDES)
107                      
108 dave.sudlik     1.56 EXTRA_LINK_FLAGS += $(JVM_LINK_FLAGS)
109                      
110 kumpf           1.16 LOCAL_DEFINES = -DPEGASUS_INTERNALONLY
111                      
112 kumpf           1.55 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
113                        PROGRAM = cimservermain
114                      else
115                        PROGRAM = cimserver
116                      endif
117 mike            1.1  
118                      SOURCES = cimserver.cpp
119                      
120 ouyang.jian     1.58 #Large Program Support
121                      #make program able to use maximum of 2GB memory
122                      ifeq ($(PEGASUS_PLATFORM),PASE_ISERIES_IBMCXX)
123                        EXTRA_LINK_FLAGS += -bmaxdata:0x80000000
124                      endif
125                      
126 mike            1.1  include $(ROOT)/mak/program.mak
127 mike            1.2  
128 a.dunfey        1.53 ifeq ($(OS_TYPE),windows)
129 mday            1.4    SYS_LIBS = ws2_32.lib advapi32.lib	
130                      endif
131                      
132 mike            1.2  tests:
133                      
134 kumpf           1.12 poststarttests:
135                      
136 denise.eckstein 1.42 include $(ROOT)/mak/commands.mak
137                      
138 denise.eckstein 1.41 PEGASUS_CREATE_SSLCNF_OPTIONS = \
139                         PEGASUS_SSLCNF_COUNTRY_CODE="UK" \
140                         PEGASUS_SSLCNF_STATE="Berkshire" \
141                         PEGASUS_SSLCNF_LOCALITY="Reading" \
142                         PEGASUS_SSLCNF_ORGANIZATION="The Open Group" \
143                         PEGASUS_SSLCNF_ORGANIZATION_UNIT="The OpenPegasus Project"
144                      
145                      ifdef PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN
146                      PEGASUS_CREATE_SSLCNF_OPTIONS+= \
147                         PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN=$(PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN)
148                      endif
149                      
150                      ifndef PEGASUS_SSLCERT_CNFFILE
151                         PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_HOME)/ssl.cnf
152                      endif
153                      
154                      ifndef PEGASUS_SSLCERT_KEYFILE
155                         PEGASUS_SSLCERT_KEYFILE=$(PEGASUS_HOME)/file.pem
156                      endif
157                      
158                      ifndef PEGASUS_SSLCERT_CERTFILE
159 denise.eckstein 1.41    PEGASUS_SSLCERT_CERTFILE=$(PEGASUS_HOME)/cert.pem
160                      endif
161                      
162                      PEGASUS_CREATE_SSLCERT_OPTIONS = \
163                         PEGASUS_SSLCERT_DAYS=3650 \
164                         PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE) \
165                         PEGASUS_SSLCERT_KEYFILE=$(PEGASUS_SSLCERT_KEYFILE)\
166                         PEGASUS_SSLCERT_CERTFILE=$(PEGASUS_SSLCERT_CERTFILE)
167                      
168                      ifdef PEGASUS_SSL_RANDOMFILE
169                      PEGASUS_CREATE_SSL_CERT_OPTIONS += \
170                         PEGASUS_SSLCERT_RANDOMFILE=$(PEGASUS_HOME)/cimserver.rnd
171                      endif
172                      
173                      _createSSLFiles:
174                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLCnfFile \
175                                  $(PEGASUS_CREATE_SSLCNF_OPTIONS) \
176                                  PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE)
177                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLCertificate \
178                                  $(PEGASUS_CREATE_SSLCERT_OPTIONS)
179                      
180 denise.eckstein 1.41 createSSLFilesforCVS-SystemSpecific:
181                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile _createSSLFiles \
182                                  PEGASUS_CREATE_PEGASUS_INTERNAL_CERT=yes \
183                                  PEGASUS_SSLCERT_CNFFILE=$(ROOT)/src/Server/ssl.cnf \
184                                  PEGASUS_SSLCERT_KEYFILE=$(ROOT)/src/Server/file.pem \
185                                  PEGASUS_SSLCERT_CERTFILE=$(ROOT)/src/Server/cert.pem \
186                                  PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN="\"PEGASUS TEST CERTIFICATE-DO NOT USE\""
187 kumpf           1.68 
188 denise.eckstein 1.41 displayCERTFILE:
189                      	@$(ECHO) "*** $(PEGASUS_SSLCERT_CERTFILE) ***"
190                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile displayCertificate \
191                                  PEGASUS_SSLCERT_FILE=$(PEGASUS_SSLCERT_CERTFILE)
192                      
193 jim.wunderlich  1.46 clean: cleanupSSLFiles
194                      
195 kumpf           1.68 install_run_clean: cleanupSSLFiles
196 jim.wunderlich  1.46 
197 denise.eckstein 1.41 cleanupSSLFiles:
198                      	@$(RM) $(PEGASUS_HOME)/cert.pem
199                      	@$(RM) $(PEGASUS_HOME)/file.pem
200                      	@$(RM) $(PEGASUS_HOME)/server.pem
201                      	@$(RM) $(PEGASUS_HOME)/client.pem
202                      	@$(RM) $(PEGASUS_HOME)/cimserver.rnd
203                      	@$(RM) $(PEGASUS_HOME)/ssl.rnd
204                      	@$(RM) $(PEGASUS_HOME)/ssl.cnf
205                      	@$(RM) $(PEGASUS_HOME)/client_cert.pem
206                      	@$(RM) $(PEGASUS_HOME)/client_file.pem
207                      	@$(RMDIRHIER) $(PEGASUS_HOME)/cimserver_trust
208                      	@$(RMDIRHIER) $(PEGASUS_HOME)/indication_trust
209                      	@$(RMDIRHIER) $(PEGASUS_HOME)/crl
210 jim.wunderlich  1.46 	@$(RM) $(PEGASUS_HOME)/setupserverdev
211 denise.eckstein 1.41 
212                      createSSLTrustDirectories:
213                      	@$(MKDIRHIER) $(PEGASUS_HOME)/cimserver_trust
214                      	@$(MKDIRHIER) $(PEGASUS_HOME)/indication_trust
215                      	@$(MKDIRHIER) $(PEGASUS_HOME)/crl
216                      
217 denise.eckstein 1.47 removeSSLTrustDirectories:
218                      	@$(RMDIRHIER) $(PEGASUS_HOME)/cimserver_trust
219                      	@$(RMDIRHIER) $(PEGASUS_HOME)/indication_trust
220                      	@$(RMDIRHIER) $(PEGASUS_HOME)/crl
221                      
222 denise.eckstein 1.41 stageServerSSLFiles-SystemSpecific:
223                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile cleanupSSLFiles
224                      	@$(COPY) ssl.rnd $(PEGASUS_HOME)
225                      	@$(COPY) cimserver.rnd $(PEGASUS_HOME)
226                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile _createSSLFiles \
227                                  $(PEGASUS_CREATE_SSLCNF_OPTIONS) \
228                                  PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE)
229                      	@$(COPY) $(PEGASUS_SSLCERT_CERTFILE) $(PEGASUS_HOME)/server.pem
230                      	@$(COPY) $(PEGASUS_SSLCERT_CERTFILE) $(PEGASUS_HOME)/client.pem
231                      
232                      stageServerSSLFiles-SystemIndependent:
233                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile cleanupSSLFiles
234                      	@$(COPY) cert.pem $(PEGASUS_HOME)
235                      	@$(COPY) file.pem $(PEGASUS_HOME)
236                      	@$(COPY) cert.pem $(PEGASUS_HOME)/server.pem
237                      	@$(COPY) cert.pem $(PEGASUS_HOME)/client.pem
238                      	@$(COPY) cimserver.rnd $(PEGASUS_HOME)
239                      	@$(COPY) ssl.rnd $(PEGASUS_HOME)
240                      	@$(COPY) ssl.cnf $(PEGASUS_HOME)
241                      
242                      stageClientSSLFiles-SystemIndependent:
243 denise.eckstein 1.41 	@$(COPY) cert.pem $(PEGASUS_HOME)/client_cert.pem
244                      	@$(COPY) file.pem $(PEGASUS_HOME)/client_file.pem
245                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLTrustDirectories
246                      
247                      stageCIMServerConfigurationFiles:
248                      	@$(RM) $(PEGASUS_HOME)/cimserver_planned.conf
249                      	@$(COPY) cimserver_planned.conf $(PEGASUS_HOME)
250 jim.wunderlich  1.46 
251                      install_run: $(PEGASUS_HOME)/setupserverdev
252                      
253 kumpf           1.55 ##
254                      ## Note: the $(PEGASUS_HOME)/trace dir must be writable by all users for
255                      ## the tracing facility to work.
256                      
257 jim.wunderlich  1.46 $(PEGASUS_HOME)/setupserverdev: cert.pem file.pem cimserver.rnd ssl.rnd ssl.cnf
258 denise.eckstein 1.41 	@$(MAKE) -f $(ROOT)/src/Server/Makefile stageServerSSLFiles-SystemIndependent
259                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile stageClientSSLFiles-SystemIndependent
260                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile stageCIMServerConfigurationFiles
261 kumpf           1.55 	$(MKDIRHIER) $(PEGASUS_HOME)/trace
262                      ifeq ($(OS_TYPE),unix)
263                      # Allow the repository to be created as the cimserver user
264                      	$(CHMOD) 777 $(PEGASUS_HOME)
265                      # Allow trace files to be created by cimserver and cimprovagt process owners
266                      	$(CHMOD) 777 $(PEGASUS_HOME)/trace
267                      endif
268 a.dunfey        1.53 ifeq ($(OS_TYPE),windows)
269 jim.wunderlich  1.46 	-@$(PEGASUS_HOME)/bin/cimserver -install
270 tony            1.24 endif
271 jim.wunderlich  1.46 	@$(TOUCH) $(PEGASUS_HOME)/setupserverdev
272 sushma.fernandes 1.59 ifeq ($(PEGASUS_TEST_ENABLE_DEBUG_TRACE),true)
273 kumpf            1.68         # Enable trace to capture Discarded data trace information to help
274 john.eisenbraun  1.65         # troubleshoot and detect test failures.
275 sushma.fernandes 1.59 	cimconfig -s traceComponents=DiscardedData -p
276                       	cimconfig -s traceLevel=4 -p
277                       endif
278 tony             1.24 
279                       uninstall:
280 a.dunfey         1.53 ifeq ($(OS_TYPE),windows)
281 tony             1.24 	$(PEGASUS_HOME)/bin/cimserver -remove
282                       endif
283 mike             1.8  
284 konrad.r         1.29 run: install_run
285 a.dunfey         1.53 ifeq ($(OS_TYPE),windows)
286 tony             1.24 	cimserver -start
287 mike             1.8  else
288                       	cimserver
289                       endif
290                       

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2