1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# cmd/wbem/provider/com/sun/wbem/solarisprovider/srm/Makefile 22# 23# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26 27include $(SRC)/cmd/wbem/Makefile.wbem 28 29JARFILE= perfprovider.jar 30PACKAGEPATH= com/sun/wbem/solarisprovider/srm 31RESOURCE_PACKAGEPATH= $(PACKAGEPATH)/resources 32DOCDIR= doc 33 34DIRMODE= 755 35FILEMODE= 644 36 37ROOTCOM= $(ROOTWBEM)/com 38ROOTCOMSUN= $(ROOTCOM)/sun 39ROOTCOMSUNWBEM= $(ROOTCOMSUN)/wbem 40ROOTCOMSUNWBEMSOLARISPROVIDER= $(ROOTCOMSUNWBEM)/solarisprovider 41ROOTCOMSUNWBEMSOLARISPROVIDERSRM= $(ROOTCOMSUNWBEMSOLARISPROVIDER)/srm 42ROOTCOMSUNWBEMSOLARISPROVIDERSRMRESOURCES= $(ROOTCOMSUNWBEMSOLARISPROVIDERSRM)/resources 43 44PROVIDERDIRS= $(ROOTCOM) \ 45 $(ROOTCOMSUN) \ 46 $(ROOTCOMSUNWBEM) \ 47 $(ROOTCOMSUNWBEMSOLARISPROVIDER) \ 48 $(ROOTCOMSUNWBEMSOLARISPROVIDERSRM) \ 49 $(ROOTCOMSUNWBEMSOLARISPROVIDERSRMRESOURCES) 50 51ROOTPROVIDERFILE= $(FILE:%=$(ROOTCOMSUNWBEMSOLARISPROVIDERSRM)/%) 52ROOTRESOURCEFILE= $(FILE:%=$(ROOTCOMSUNWBEMSOLARISPROVIDERSRMRESOURCES)/%) 53 54$(PROVIDERDIRS): $(ROOTWBEMDIRS) 55 $(INS.dir) 56 57$(ROOTCOMSUNWBEMSOLARISPROVIDERSRM)/%: % 58 $(INS.file) 59 60$(ROOTCOMSUNWBEMSOLARISPROVIDERSRMRESOURCES)/%: % 61 $(INS.file) 62 63SOURCE:sh = ls *.java 64 65CLASSES:sh = ls *.class 2> /dev/null | sed 's/\$/\$\$/' 66 67 68all: $(PROVIDERDIRS) jar 69 70install: all resources mof $(PROG) 71 72resources: $(ROOTCOMSUNWBEMSOLARISPROVIDERSRMRESOURCES)/LogMessages.properties \ 73 $(ROOTCOMSUNWBEMSOLARISPROVIDERSRMRESOURCES)/Exceptions.properties \ 74 $(ROOTCOMSUNWBEMSOLARISPROVIDERSRM)/perfprovider.properties 75 76 77mof: $(ROOTMOF)/Solaris_Performance1.0.mof 78 79jar: jarfile $(ROOTWBEM)/$(JARFILE) 80 81jarfile: $(SOURCE:java=class) 82 cd $(PROVIDERSRC);\ 83 $(JAR) -cvf0M $(JARFILE) $(PACKAGEPATH)/*class; \ 84 cd $(PROVIDERSRC);\ 85 $(JAR) -uvf0M $(JARFILE) $(RESOURCE_PACKAGEPATH:%=%/*.properties); 86 $(MV) $(PROVIDERSRC)/$(JARFILE) . 87 88doc: .FORCE 89 $(JAVADOC) -d $(DOCDIR) -classpath $(CLASSPATH) $(SOURCE) 90 91clobber: clean 92 93clean: 94 $(RM) *.class 95 96check: 97 $(JSTYLE) $(JSTYLE_TAIL) $(SOURCE) 98 99.WAIT: 100 101.FORCE: 102 103