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

  1 karl  1.49 #//%2006////////////////////////////////////////////////////////////////////////
  2 martin 1.43 #//
  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 karl   1.49 #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12             #// EMC Corporation; Symantec Corporation; The Open Group.
 13 martin 1.43 #//
 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             #// 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 mike   1.1  ROOT = ../..
 32             DIR = Server
 33             include $(ROOT)/mak/config.mak
 34             
 35             LIBRARIES = \
 36 carson.hovey 1.54     pegservice \
 37 gs.keenan    1.31     pegclient \
 38 mike         1.10     pegserver \
 39 gs.keenan    1.31     peguser \
 40                       pegprm \
 41                       NamespaceProvider \
 42                       pegindicationservice \
 43                       peghandlerservice \
 44                       ConfigSettingProvider \
 45                       DefaultProviderManager \
 46                       ProviderRegistrationProvider \
 47                       pegauthentication \
 48                       UserAuthProvider \
 49 denise.eckstein 1.45     pegqueryexpression 
 50                      
 51                      ifndef PEGASUS_DISABLE_CQL
 52                          LIBRARIES += \
 53                             pegcql
 54                      endif
 55                      
 56                      LIBRARIES += \
 57 gs.keenan       1.31     pegquerycommon \
 58 denise.eckstein 1.45     pegwql
 59                      
 60                      ifndef PEGASUS_DISABLE_CQL
 61                          LIBRARIES += \
 62                             CIMQueryCapabilitiesProvider
 63                      endif
 64                      
 65                      LIBRARIES += \
 66 mike            1.50     DefaultProviderManager \
 67                          pegprovidermanager
 68                      
 69 gs.keenan       1.34 ifndef PEGASUS_DISABLE_PERFINST
 70 carson.hovey    1.40     LIBRARIES += \
 71                             CIMOMStatDataProvider \
 72                             InteropProvider 
 73                      else
 74 jim.wunderlich  1.48     ifeq ($(PEGASUS_ENABLE_SLP),true)
 75 carson.hovey    1.40         LIBRARIES += \
 76                                  InteropProvider 
 77                          endif
 78 gs.keenan       1.34 endif
 79                      
 80 a.arora         1.33 ifdef PEGASUS_HAS_SSL
 81                      LIBRARIES += \
 82 gs.keenan       1.34     CertificateProvider
 83 a.arora         1.33 endif
 84                      
 85 mike            1.8  ifneq ($(PEGASUS_PLATFORM),ZOS_ZSERIES_IBM)
 86 kumpf           1.21   ifneq ($(OS),HPUX)
 87 jim.wunderlich  1.48     ifeq ($(PEGASUS_ENABLE_SLP),true)
 88 tony            1.28       LIBRARIES += pegslp
 89 kumpf           1.22     endif
 90 kumpf           1.21   endif
 91 mike            1.8  endif
 92 kumpf           1.7  
 93 gs.keenan       1.52 LIBRARIES += \
 94                          pegprovidermanager \
 95                          pegpmservice \
 96                          pegprovider \
 97                          pegexportserver \
 98                          pegrepository \
 99                          pegconfig \
100 carson.hovey    1.54     pegcommon 
101 gs.keenan       1.52 
102 mike            1.1  EXTRA_INCLUDES = $(SYS_INCLUDES)
103                      
104 dave.sudlik     1.56 EXTRA_LINK_FLAGS += $(JVM_LINK_FLAGS)
105                      
106 kumpf           1.16 LOCAL_DEFINES = -DPEGASUS_INTERNALONLY
107                      
108 kumpf           1.55 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
109                        PROGRAM = cimservermain
110                      else
111                        PROGRAM = cimserver
112                      endif
113 mike            1.1  
114                      SOURCES = cimserver.cpp
115                      
116                      include $(ROOT)/mak/program.mak
117 mike            1.2  
118 a.dunfey        1.53 ifeq ($(OS_TYPE),windows)
119 mday            1.4    SYS_LIBS = ws2_32.lib advapi32.lib	
120                      endif
121                      
122 mike            1.2  tests:
123                      
124 kumpf           1.12 poststarttests:
125                      
126 denise.eckstein 1.42 include $(ROOT)/mak/commands.mak
127                      
128 denise.eckstein 1.41 PEGASUS_CREATE_SSLCNF_OPTIONS = \
129                         PEGASUS_SSLCNF_COUNTRY_CODE="UK" \
130                         PEGASUS_SSLCNF_STATE="Berkshire" \
131                         PEGASUS_SSLCNF_LOCALITY="Reading" \
132                         PEGASUS_SSLCNF_ORGANIZATION="The Open Group" \
133                         PEGASUS_SSLCNF_ORGANIZATION_UNIT="The OpenPegasus Project"
134                      
135                      ifdef PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN
136                      PEGASUS_CREATE_SSLCNF_OPTIONS+= \
137                         PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN=$(PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN)
138                      endif
139                      
140                      ifndef PEGASUS_SSLCERT_CNFFILE
141                         PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_HOME)/ssl.cnf
142                      endif
143                      
144                      ifndef PEGASUS_SSLCERT_KEYFILE
145                         PEGASUS_SSLCERT_KEYFILE=$(PEGASUS_HOME)/file.pem
146                      endif
147                      
148                      ifndef PEGASUS_SSLCERT_CERTFILE
149 denise.eckstein 1.41    PEGASUS_SSLCERT_CERTFILE=$(PEGASUS_HOME)/cert.pem
150                      endif
151                      
152                      PEGASUS_CREATE_SSLCERT_OPTIONS = \
153                         PEGASUS_SSLCERT_DAYS=3650 \
154                         PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE) \
155                         PEGASUS_SSLCERT_KEYFILE=$(PEGASUS_SSLCERT_KEYFILE)\
156                         PEGASUS_SSLCERT_CERTFILE=$(PEGASUS_SSLCERT_CERTFILE)
157                      
158                      ifdef PEGASUS_SSL_RANDOMFILE
159                      PEGASUS_CREATE_SSL_CERT_OPTIONS += \
160                         PEGASUS_SSLCERT_RANDOMFILE=$(PEGASUS_HOME)/cimserver.rnd
161                      endif
162                      
163                      _createSSLFiles:
164                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLCnfFile \
165                                  $(PEGASUS_CREATE_SSLCNF_OPTIONS) \
166                                  PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE)
167                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLCertificate \
168                                  $(PEGASUS_CREATE_SSLCERT_OPTIONS)
169                      
170 denise.eckstein 1.41 createSSLFilesforCVS-SystemSpecific:
171                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile _createSSLFiles \
172                                  PEGASUS_CREATE_PEGASUS_INTERNAL_CERT=yes \
173                                  PEGASUS_SSLCERT_CNFFILE=$(ROOT)/src/Server/ssl.cnf \
174                                  PEGASUS_SSLCERT_KEYFILE=$(ROOT)/src/Server/file.pem \
175                                  PEGASUS_SSLCERT_CERTFILE=$(ROOT)/src/Server/cert.pem \
176                                  PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN="\"PEGASUS TEST CERTIFICATE-DO NOT USE\""
177                                  
178                      displayCERTFILE:
179                      	@$(ECHO) "*** $(PEGASUS_SSLCERT_CERTFILE) ***"
180                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile displayCertificate \
181                                  PEGASUS_SSLCERT_FILE=$(PEGASUS_SSLCERT_CERTFILE)
182                      
183 jim.wunderlich  1.46 clean: cleanupSSLFiles
184                      
185                      install_run_clean: cleanupSSLFiles 
186                      
187 denise.eckstein 1.41 cleanupSSLFiles:
188                      	@$(RM) $(PEGASUS_HOME)/cert.pem
189                      	@$(RM) $(PEGASUS_HOME)/file.pem
190                      	@$(RM) $(PEGASUS_HOME)/server.pem
191                      	@$(RM) $(PEGASUS_HOME)/client.pem
192                      	@$(RM) $(PEGASUS_HOME)/cimserver.rnd
193                      	@$(RM) $(PEGASUS_HOME)/ssl.rnd
194                      	@$(RM) $(PEGASUS_HOME)/ssl.cnf
195                      	@$(RM) $(PEGASUS_HOME)/client_cert.pem
196                      	@$(RM) $(PEGASUS_HOME)/client_file.pem
197                      	@$(RMDIRHIER) $(PEGASUS_HOME)/cimserver_trust
198                      	@$(RMDIRHIER) $(PEGASUS_HOME)/indication_trust
199                      	@$(RMDIRHIER) $(PEGASUS_HOME)/crl
200 jim.wunderlich  1.46 	@$(RM) $(PEGASUS_HOME)/setupserverdev
201 denise.eckstein 1.41 
202                      createSSLTrustDirectories:
203                      	@$(MKDIRHIER) $(PEGASUS_HOME)/cimserver_trust
204                      	@$(MKDIRHIER) $(PEGASUS_HOME)/indication_trust
205                      	@$(MKDIRHIER) $(PEGASUS_HOME)/crl
206                      
207 denise.eckstein 1.47 removeSSLTrustDirectories:
208                      	@$(RMDIRHIER) $(PEGASUS_HOME)/cimserver_trust
209                      	@$(RMDIRHIER) $(PEGASUS_HOME)/indication_trust
210                      	@$(RMDIRHIER) $(PEGASUS_HOME)/crl
211                      
212 denise.eckstein 1.41 stageServerSSLFiles-SystemSpecific:
213                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile cleanupSSLFiles
214                      	@$(COPY) ssl.rnd $(PEGASUS_HOME)
215                      	@$(COPY) cimserver.rnd $(PEGASUS_HOME)
216                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile _createSSLFiles \
217                                  $(PEGASUS_CREATE_SSLCNF_OPTIONS) \
218                                  PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE)
219                      	@$(COPY) $(PEGASUS_SSLCERT_CERTFILE) $(PEGASUS_HOME)/server.pem
220                      	@$(COPY) $(PEGASUS_SSLCERT_CERTFILE) $(PEGASUS_HOME)/client.pem
221                      
222                      stageServerSSLFiles-SystemIndependent:
223                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile cleanupSSLFiles
224                      	@$(COPY) cert.pem $(PEGASUS_HOME)
225                      	@$(COPY) file.pem $(PEGASUS_HOME)
226                      	@$(COPY) cert.pem $(PEGASUS_HOME)/server.pem
227                      	@$(COPY) cert.pem $(PEGASUS_HOME)/client.pem
228                      	@$(COPY) cimserver.rnd $(PEGASUS_HOME)
229                      	@$(COPY) ssl.rnd $(PEGASUS_HOME)
230                      	@$(COPY) ssl.cnf $(PEGASUS_HOME)
231                      
232                      stageClientSSLFiles-SystemIndependent:
233 denise.eckstein 1.41 	@$(COPY) cert.pem $(PEGASUS_HOME)/client_cert.pem
234                      	@$(COPY) file.pem $(PEGASUS_HOME)/client_file.pem
235                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLTrustDirectories
236                      
237                      stageCIMServerConfigurationFiles:
238                      	@$(RM) $(PEGASUS_HOME)/cimserver_planned.conf
239                      	@$(COPY) cimserver_planned.conf $(PEGASUS_HOME)
240 jim.wunderlich  1.46 
241                      install_run: $(PEGASUS_HOME)/setupserverdev
242                      
243 kumpf           1.55 ##
244                      ## Note: the $(PEGASUS_HOME)/trace dir must be writable by all users for
245                      ## the tracing facility to work.
246                      
247 jim.wunderlich  1.46 $(PEGASUS_HOME)/setupserverdev: cert.pem file.pem cimserver.rnd ssl.rnd ssl.cnf
248 denise.eckstein 1.41 	@$(MAKE) -f $(ROOT)/src/Server/Makefile stageServerSSLFiles-SystemIndependent
249                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile stageClientSSLFiles-SystemIndependent
250                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile stageCIMServerConfigurationFiles
251 kumpf           1.55 	$(MKDIRHIER) $(PEGASUS_HOME)/trace
252                      ifeq ($(OS_TYPE),unix)
253                      # Allow the repository to be created as the cimserver user
254                      	$(CHMOD) 777 $(PEGASUS_HOME)
255                      # Allow trace files to be created by cimserver and cimprovagt process owners
256                      	$(CHMOD) 777 $(PEGASUS_HOME)/trace
257                      endif
258 a.dunfey        1.53 ifeq ($(OS_TYPE),windows)
259 jim.wunderlich  1.46 	-@$(PEGASUS_HOME)/bin/cimserver -install
260 tony            1.24 endif
261 jim.wunderlich  1.46 	@$(TOUCH) $(PEGASUS_HOME)/setupserverdev
262 tony            1.24 
263                      uninstall:
264 a.dunfey        1.53 ifeq ($(OS_TYPE),windows)
265 tony            1.24 	$(PEGASUS_HOME)/bin/cimserver -remove
266                      endif
267 mike            1.8  
268 konrad.r        1.29 run: install_run
269 a.dunfey        1.53 ifeq ($(OS_TYPE),windows)
270 tony            1.24 	cimserver -start
271 mike            1.8  else
272                      	cimserver
273                      endif
274                      

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2