1 martin 1.11 #//%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.12 #//
|
3 martin 1.11 #// 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.12 #//
|
10 martin 1.11 #// 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.12 #//
|
17 martin 1.11 #// The above copyright notice and this permission notice shall be included
18 #// in all copies or substantial portions of the Software.
|
19 martin 1.12 #//
|
20 martin 1.11 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.12 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.11 #// 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.12 #//
|
28 martin 1.11 #//////////////////////////////////////////////////////////////////////////
|
29 kumpf 1.1 ROOT = ../../..
|
30 kumpf 1.3
|
31 kumpf 1.1 DIR = WMIMapper/WMIServer
|
32 kumpf 1.3
|
33 kumpf 1.1 include $(ROOT)/mak/config.mak
34
35 LIBRARIES = \
36 pegcommon \
37 pegconfig \
38 pegwmiserver \
|
39 mateus.baur 1.6 pegclient \
40 pegservice
|
41 kumpf 1.3
|
42 kumpf 1.1 EXTRA_INCLUDES = $(SYS_INCLUDES)
43
|
44 mateus.baur 1.10 LOCAL_DEFINES += -DPEGASUS_WMIPROVIDER_INTERNAL -DPEGASUS_INTERNALONLY
|
45 kumpf 1.1
46 PROGRAM = WMIServer
47
48 SOURCES = cimserver.cpp
49
50 include $(ROOT)/mak/program.mak
51
|
52 a.dunfey 1.9 ifeq ($(OS_TYPE),windows)
|
53 kumpf 1.1 SYS_LIBS = ws2_32.lib advapi32.lib
54 endif
55
56 tests:
57
58 poststarttests:
59
60 install:
61 $(RM) $(PEGASUS_HOME)/cimserver_planned.conf
62 $(RM) $(PEGASUS_HOME)/cimserver_current.conf
63 $(RM) $(PEGASUS_HOME)/server.pem
64 $(RM) $(PEGASUS_HOME)/client.pem
65 $(RM) $(PEGASUS_HOME)/ssl.rnd
66 $(RM) $(PEGASUS_HOME)/ssl.cnf
67 $(COPY) cimserver_planned.conf $(PEGASUS_HOME)
68 $(COPY) cimserver_current.conf $(PEGASUS_HOME)
69 $(COPY) $(PEGASUS_ROOT)/server.pem $(PEGASUS_HOME)
70 $(COPY) $(PEGASUS_ROOT)/client.pem $(PEGASUS_HOME)
71 $(COPY) $(PEGASUS_ROOT)/ssl.rnd $(PEGASUS_HOME)
72 $(COPY) $(PEGASUS_ROOT)/ssl.cnf $(PEGASUS_HOME)
73
74 kumpf 1.1 run: install
|
75 a.dunfey 1.9 ifeq ($(OS_TYPE),windows)
|
76 kumpf 1.1 cimserver -l
77 else
78 cimserver
79 endif
|
80 kumpf 1.3
81 copy2:
|
82 mateus.baur 1.5 $(COPY) $(ROOT)/src/Service/Service.cpp ./Service.cpp
83 $(COPY) $(ROOT)/src/Service/Service.h ./Service.h
|
84 kumpf 1.3
85 clean2:
|
86 mateus.baur 1.5 $(RM) ./Service.cpp
87 $(RM) ./Service.h
|
88 kumpf 1.1
|