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

  1 martin 1.43 #//%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.43 #// 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  ROOT = ../..
 30             DIR = Server
 31             include $(ROOT)/mak/config.mak
 32             
 33             LIBRARIES = \
 34 gs.keenan 1.31     pegclient \
 35 mike      1.10     pegserver \
 36 gs.keenan 1.31     peguser \
 37                    pegprm \
 38                    NamespaceProvider \
 39                    pegindicationservice \
 40                    peghandlerservice \
 41                    ConfigSettingProvider \
 42                    DefaultProviderManager \
 43                    ProviderRegistrationProvider \
 44                    pegauthentication \
 45                    UserAuthProvider \
 46 denise.eckstein 1.45     pegqueryexpression 
 47                      
 48                      ifndef PEGASUS_DISABLE_CQL
 49                          LIBRARIES += \
 50                             pegcql
 51                      endif
 52                      
 53                      LIBRARIES += \
 54 gs.keenan       1.31     pegquerycommon \
 55 denise.eckstein 1.45     pegwql
 56                      
 57                      ifndef PEGASUS_DISABLE_CQL
 58                          LIBRARIES += \
 59                             CIMQueryCapabilitiesProvider
 60                      endif
 61                      
 62                      LIBRARIES += \
 63 gs.keenan       1.31     pegprovidermanager \
 64 mike            1.10     pegprovider \
 65 gs.keenan       1.31     pegexportserver \
 66                          pegrepository \
 67                          pegconfig \
 68 h.sterling      1.37     pegcommon \
 69                          pegservice
 70 mike            1.1  
 71 gs.keenan       1.34 ifndef PEGASUS_DISABLE_PERFINST
 72 carson.hovey    1.40     LIBRARIES += \
 73                             CIMOMStatDataProvider \
 74                             InteropProvider 
 75                      else
 76                          ifdef PEGASUS_ENABLE_SLP
 77                              LIBRARIES += \
 78                                  InteropProvider 
 79                          endif
 80 gs.keenan       1.34 endif
 81                      
 82 a.arora         1.33 ifdef PEGASUS_HAS_SSL
 83                      LIBRARIES += \
 84 gs.keenan       1.34     CertificateProvider
 85 a.arora         1.33 endif
 86                      
 87 mike            1.8  ifneq ($(PEGASUS_PLATFORM),ZOS_ZSERIES_IBM)
 88 kumpf           1.21   ifneq ($(OS),HPUX)
 89 chuck           1.26     ifdef PEGASUS_ENABLE_SLP
 90 tony            1.28       LIBRARIES += pegslp
 91 kumpf           1.22     endif
 92 kumpf           1.21   endif
 93 mike            1.8  endif
 94 kumpf           1.7  
 95 mike            1.1  EXTRA_INCLUDES = $(SYS_INCLUDES)
 96                      
 97 kumpf           1.16 LOCAL_DEFINES = -DPEGASUS_INTERNALONLY
 98                      
 99 mike            1.1  PROGRAM = cimserver
100                      
101                      SOURCES = cimserver.cpp
102                      
103                      include $(ROOT)/mak/program.mak
104 mike            1.2  
105 mday            1.4  ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
106                        SYS_LIBS = ws2_32.lib advapi32.lib	
107                      endif
108                      
109 mike            1.2  tests:
110                      
111 kumpf           1.12 poststarttests:
112                      
113 denise.eckstein 1.42 include $(ROOT)/mak/commands.mak
114                      
115 denise.eckstein 1.41 PEGASUS_CREATE_SSLCNF_OPTIONS = \
116                         PEGASUS_SSLCNF_COUNTRY_CODE="UK" \
117                         PEGASUS_SSLCNF_STATE="Berkshire" \
118                         PEGASUS_SSLCNF_LOCALITY="Reading" \
119                         PEGASUS_SSLCNF_ORGANIZATION="The Open Group" \
120                         PEGASUS_SSLCNF_ORGANIZATION_UNIT="The OpenPegasus Project"
121                      
122                      ifdef PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN
123                      PEGASUS_CREATE_SSLCNF_OPTIONS+= \
124                         PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN=$(PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN)
125                      endif
126                      
127                      ifndef PEGASUS_SSLCERT_CNFFILE
128                         PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_HOME)/ssl.cnf
129                      endif
130                      
131                      ifndef PEGASUS_SSLCERT_KEYFILE
132                         PEGASUS_SSLCERT_KEYFILE=$(PEGASUS_HOME)/file.pem
133                      endif
134                      
135                      ifndef PEGASUS_SSLCERT_CERTFILE
136 denise.eckstein 1.41    PEGASUS_SSLCERT_CERTFILE=$(PEGASUS_HOME)/cert.pem
137                      endif
138                      
139                      PEGASUS_CREATE_SSLCERT_OPTIONS = \
140                         PEGASUS_SSLCERT_DAYS=3650 \
141                         PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE) \
142                         PEGASUS_SSLCERT_KEYFILE=$(PEGASUS_SSLCERT_KEYFILE)\
143                         PEGASUS_SSLCERT_CERTFILE=$(PEGASUS_SSLCERT_CERTFILE)
144                      
145                      ifdef PEGASUS_SSL_RANDOMFILE
146                      PEGASUS_CREATE_SSL_CERT_OPTIONS += \
147                         PEGASUS_SSLCERT_RANDOMFILE=$(PEGASUS_HOME)/cimserver.rnd
148                      endif
149                      
150                      _createSSLFiles:
151                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLCnfFile \
152                                  $(PEGASUS_CREATE_SSLCNF_OPTIONS) \
153                                  PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE)
154                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLCertificate \
155                                  $(PEGASUS_CREATE_SSLCERT_OPTIONS)
156                      
157 denise.eckstein 1.41 createSSLFilesforCVS-SystemSpecific:
158                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile _createSSLFiles \
159                                  PEGASUS_CREATE_PEGASUS_INTERNAL_CERT=yes \
160                                  PEGASUS_SSLCERT_CNFFILE=$(ROOT)/src/Server/ssl.cnf \
161                                  PEGASUS_SSLCERT_KEYFILE=$(ROOT)/src/Server/file.pem \
162                                  PEGASUS_SSLCERT_CERTFILE=$(ROOT)/src/Server/cert.pem \
163                                  PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN="\"PEGASUS TEST CERTIFICATE-DO NOT USE\""
164                                  
165                      displayCERTFILE:
166                      	@$(ECHO) "*** $(PEGASUS_SSLCERT_CERTFILE) ***"
167                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile displayCertificate \
168                                  PEGASUS_SSLCERT_FILE=$(PEGASUS_SSLCERT_CERTFILE)
169                      
170                      cleanupSSLFiles:
171                      	@$(RM) $(PEGASUS_HOME)/cert.pem
172                      	@$(RM) $(PEGASUS_HOME)/file.pem
173                      	@$(RM) $(PEGASUS_HOME)/server.pem
174                      	@$(RM) $(PEGASUS_HOME)/client.pem
175                      	@$(RM) $(PEGASUS_HOME)/cimserver.rnd
176                      	@$(RM) $(PEGASUS_HOME)/ssl.rnd
177                      	@$(RM) $(PEGASUS_HOME)/ssl.cnf
178 denise.eckstein 1.41 	@$(RM) $(PEGASUS_HOME)/client_cert.pem
179                      	@$(RM) $(PEGASUS_HOME)/client_file.pem
180                      	@$(RMDIRHIER) $(PEGASUS_HOME)/cimserver_trust
181                      	@$(RMDIRHIER) $(PEGASUS_HOME)/indication_trust
182                      	@$(RMDIRHIER) $(PEGASUS_HOME)/crl
183                      
184                      createSSLTrustDirectories:
185                      	@$(MKDIRHIER) $(PEGASUS_HOME)/cimserver_trust
186                      	@$(MKDIRHIER) $(PEGASUS_HOME)/indication_trust
187                      	@$(MKDIRHIER) $(PEGASUS_HOME)/crl
188                      
189                      stageServerSSLFiles-SystemSpecific:
190                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile cleanupSSLFiles
191                      	@$(COPY) ssl.rnd $(PEGASUS_HOME)
192                      	@$(COPY) cimserver.rnd $(PEGASUS_HOME)
193                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile _createSSLFiles \
194                                  $(PEGASUS_CREATE_SSLCNF_OPTIONS) \
195                                  PEGASUS_SSLCERT_CNFFILE=$(PEGASUS_SSLCERT_CNFFILE)
196                      	@$(COPY) $(PEGASUS_SSLCERT_CERTFILE) $(PEGASUS_HOME)/server.pem
197                      	@$(COPY) $(PEGASUS_SSLCERT_CERTFILE) $(PEGASUS_HOME)/client.pem
198                      
199 denise.eckstein 1.41 stageServerSSLFiles-SystemIndependent:
200                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile cleanupSSLFiles
201                      	@$(COPY) cert.pem $(PEGASUS_HOME)
202                      	@$(COPY) file.pem $(PEGASUS_HOME)
203                      	@$(COPY) cert.pem $(PEGASUS_HOME)/server.pem
204                      	@$(COPY) cert.pem $(PEGASUS_HOME)/client.pem
205                      	@$(COPY) cimserver.rnd $(PEGASUS_HOME)
206                      	@$(COPY) ssl.rnd $(PEGASUS_HOME)
207                      	@$(COPY) ssl.cnf $(PEGASUS_HOME)
208                      
209                      stageClientSSLFiles-SystemIndependent:
210                      	@$(COPY) cert.pem $(PEGASUS_HOME)/client_cert.pem
211                      	@$(COPY) file.pem $(PEGASUS_HOME)/client_file.pem
212                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile createSSLTrustDirectories
213                      
214                      stageCIMServerConfigurationFiles:
215                      	@$(RM) $(PEGASUS_HOME)/cimserver_planned.conf
216                      	@$(COPY) cimserver_planned.conf $(PEGASUS_HOME)
217                      	
218 konrad.r        1.29 install_run:
219 denise.eckstein 1.41 	@$(MAKE) -f $(ROOT)/src/Server/Makefile stageServerSSLFiles-SystemIndependent
220                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile stageClientSSLFiles-SystemIndependent
221                      	@$(MAKE) -f $(ROOT)/src/Server/Makefile stageCIMServerConfigurationFiles
222 tony            1.24 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
223 denise.eckstein 1.41 	@$(PEGASUS_HOME)/bin/cimserver -install
224 tony            1.24 endif
225                      
226                      uninstall:
227                      ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
228                      	$(PEGASUS_HOME)/bin/cimserver -remove
229                      endif
230 mike            1.8  
231 konrad.r        1.29 run: install_run
232 mike            1.8  ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
233 tony            1.24 	cimserver -start
234 mike            1.8  else
235                      	cimserver
236                      endif
237                      

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2