1*4a6ec905Sysun# 2*4a6ec905Sysun# CDDL HEADER START 3*4a6ec905Sysun# 4*4a6ec905Sysun# The contents of this file are subject to the terms of the 5*4a6ec905Sysun# Common Development and Distribution License (the "License"). 6*4a6ec905Sysun# You may not use this file except in compliance with the License. 7*4a6ec905Sysun# 8*4a6ec905Sysun# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*4a6ec905Sysun# or http://www.opensolaris.org/os/licensing. 10*4a6ec905Sysun# See the License for the specific language governing permissions 11*4a6ec905Sysun# and limitations under the License. 12*4a6ec905Sysun# 13*4a6ec905Sysun# When distributing Covered Code, include this CDDL HEADER in each 14*4a6ec905Sysun# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*4a6ec905Sysun# If applicable, add the following below this CDDL HEADER, with the 16*4a6ec905Sysun# fields enclosed by brackets "[]" replaced with your own identifying 17*4a6ec905Sysun# information: Portions Copyright [yyyy] [name of copyright owner] 18*4a6ec905Sysun# 19*4a6ec905Sysun# CDDL HEADER END 20*4a6ec905Sysun# 21*4a6ec905Sysun# 22*4a6ec905Sysun# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23*4a6ec905Sysun# Use is subject to license terms. 24*4a6ec905Sysun# 25*4a6ec905Sysun#ident "%Z%%M% %I% %E% SMI" 26*4a6ec905Sysun 27*4a6ec905Sysun.KEEP_STATE: 28*4a6ec905Sysun.SUFFIXES: 29*4a6ec905Sysun 30*4a6ec905Sysuninclude ../../../../Makefile.cmd 31*4a6ec905Sysun 32*4a6ec905SysunMODULE = etm 33*4a6ec905SysunCLASS = plat 34*4a6ec905Sysun 35*4a6ec905SysunMODCLASS = plugins 36*4a6ec905Sysun 37*4a6ec905Sysun# 38*4a6ec905Sysun# 39*4a6ec905SysunCONF = $(MODULE:%=%.conf) 40*4a6ec905Sysun 41*4a6ec905Sysuncommon_ROOTCONF = $(ROOT)/usr/lib/fm/fmd/plugins/$(CONF) 42*4a6ec905Sysunarch_ROOTCONF = $(ROOT)/usr/platform/$(ARCH)/lib/fm/fmd/plugins/$(CONF) 43*4a6ec905Sysunplat_ROOTCONF = $(PLATFORMS:%=$(ROOT)/usr/platform/%/lib/fm/fmd/plugins/$(CONF)) 44*4a6ec905SysunROOTCONF = $($(CLASS)_ROOTCONF) 45*4a6ec905Sysun 46*4a6ec905Sysunsun4v_ROOTPROG = ../../../../../sun4v/lib/fm/fmd/plugins/$(MODULE).so 47*4a6ec905Sysunplat_ROOTPROG = $(ROOT)/usr/platform/$(PLATFORMS)/lib/fm/fmd/plugins/$(MODULE).so 48*4a6ec905Sysun 49*4a6ec905Sysunall: 50*4a6ec905Sysun 51*4a6ec905Sysun.NO_PARALLEL: 52*4a6ec905Sysun.PARALLEL: 53*4a6ec905Sysun 54*4a6ec905Sysunclean: 55*4a6ec905Sysun 56*4a6ec905Sysunclobber: clean 57*4a6ec905Sysun 58*4a6ec905Sysunlint: 59*4a6ec905Sysun 60*4a6ec905Sysuninstall_h: 61*4a6ec905Sysun 62*4a6ec905Sysun$(ROOTCONF): $$(@D) $(CONF) 63*4a6ec905Sysun $(RM) $@ 64*4a6ec905Sysun $(INS) -s -m 0644 -f $(@D) $(CONF) 65*4a6ec905Sysun $(RM) $(plat_ROOTPROG) 66*4a6ec905Sysun $(LN) -s $(sun4v_ROOTPROG) $(plat_ROOTPROG) 67*4a6ec905Sysun 68*4a6ec905Sysuninstall: $(ROOTCONF) 69*4a6ec905Sysun 70*4a6ec905Sysuninclude ../../Makefile.rootdirs 71