10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*2522Sraf# Common Development and Distribution License (the "License"). 6*2522Sraf# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 22*2522Sraf# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate# Use is subject to license terms. 240Sstevel@tonic-gate# 25*2522Sraf# ident "%Z%%M% %I% %E% SMI" 260Sstevel@tonic-gate# 270Sstevel@tonic-gate 280Sstevel@tonic-gateLIBS = $(DYNLIB) 290Sstevel@tonic-gate 300Sstevel@tonic-gateCPPFLAGS += -I../inc -I$(SRC)/cmd/smserverd/ 310Sstevel@tonic-gateLDLIBS += -lc $(PLUGIN_SPECIFIC_LIB) 320Sstevel@tonic-gate 330Sstevel@tonic-gateLINTPLUGIN = llib-$(LIBNAME).ln 340Sstevel@tonic-gatePLUGINDIR = $(ROOTLIBDIR)/smedia 350Sstevel@tonic-gatePLUGINDIR64 = $(ROOTLIBDIR)/smedia/$(MACH64) 360Sstevel@tonic-gateFILEMODE = 555 370Sstevel@tonic-gate 380Sstevel@tonic-gateSOFILES = $(LIBRARY:%.a=%.so) 390Sstevel@tonic-gatePLUGINS = $(LIBS:%=$(PLUGINDIR)/%) 400Sstevel@tonic-gatePLUGINS64 = $(LIBS:%=$(PLUGINDIR64)/%) 410Sstevel@tonic-gate 420Sstevel@tonic-gateCLEANFILES= $(LINTOUT) $(LINTPLUGIN) 430Sstevel@tonic-gate 44*2522SrafSRCDIR = ../common 45*2522Sraf 460Sstevel@tonic-gateLINTFLAGS += -xu 470Sstevel@tonic-gateLINTFLAGS64 += -xu 480Sstevel@tonic-gate$(LINTPLUGIN) := SRCS=$(OBJECTS:%.o=../common/%.c) 490Sstevel@tonic-gate$(LINTPLUGIN) := LINTFLAGS=-nvx 500Sstevel@tonic-gate$(LINTPLUGIN) := TARGET_ARCH= 510Sstevel@tonic-gate 520Sstevel@tonic-gateLINTSRC= $(LINTPLUGIN:%.ln=%) 530Sstevel@tonic-gateROOTLINTDIR= $(ROOTLIBDIR) 540Sstevel@tonic-gateROOTLINT= $(LINTSRC:%=$(ROOTLINTDIR)/%) 550Sstevel@tonic-gate 560Sstevel@tonic-gate.KEEP_STATE: 570Sstevel@tonic-gate 580Sstevel@tonic-gatelint: lintcheck 590Sstevel@tonic-gate 600Sstevel@tonic-gateobjs/%.o pics/%.o: ../common/%.c 610Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 620Sstevel@tonic-gate $(POST_PROCESS_O) 630Sstevel@tonic-gate 640Sstevel@tonic-gate$(PLUGINDIR) : 650Sstevel@tonic-gate ${INS.dir} 660Sstevel@tonic-gate 670Sstevel@tonic-gate$(PLUGINDIR64) : 680Sstevel@tonic-gate ${INS.dir} 690Sstevel@tonic-gate 700Sstevel@tonic-gate$(PLUGINDIR)/% : % 710Sstevel@tonic-gate ${INS.file} 720Sstevel@tonic-gate 730Sstevel@tonic-gate$(PLUGINDIR64)/% : % 740Sstevel@tonic-gate ${INS.file} 750Sstevel@tonic-gate 76