1*a799b1e7Speihong huang# 2*a799b1e7Speihong huang# CDDL HEADER START 3*a799b1e7Speihong huang# 4*a799b1e7Speihong huang# The contents of this file are subject to the terms of the 5*a799b1e7Speihong huang# Common Development and Distribution License (the "License"). 6*a799b1e7Speihong huang# You may not use this file except in compliance with the License. 7*a799b1e7Speihong huang# 8*a799b1e7Speihong huang# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*a799b1e7Speihong huang# or http://www.opensolaris.org/os/licensing. 10*a799b1e7Speihong huang# See the License for the specific language governing permissions 11*a799b1e7Speihong huang# and limitations under the License. 12*a799b1e7Speihong huang# 13*a799b1e7Speihong huang# When distributing Covered Code, include this CDDL HEADER in each 14*a799b1e7Speihong huang# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*a799b1e7Speihong huang# If applicable, add the following below this CDDL HEADER, with the 16*a799b1e7Speihong huang# fields enclosed by brackets "[]" replaced with your own identifying 17*a799b1e7Speihong huang# information: Portions Copyright [yyyy] [name of copyright owner] 18*a799b1e7Speihong huang# 19*a799b1e7Speihong huang# CDDL HEADER END 20*a799b1e7Speihong huang# 21*a799b1e7Speihong huang# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 22*a799b1e7Speihong huang# Use is subject to license terms. 23*a799b1e7Speihong huang# 24*a799b1e7Speihong huang# cmd/fwflash/plugins/transport 25*a799b1e7Speihong huang# 26*a799b1e7Speihong huanginclude $(SRC)/lib/Makefile.lib 27*a799b1e7Speihong huang 28*a799b1e7Speihong huangSES_LIB= ses.so 29*a799b1e7Speihong huangTAVOR_LIB= tavor.so 30*a799b1e7Speihong huangHERMON_LIB= hermon.so 31*a799b1e7Speihong huangSD_LIB= sd.so 32*a799b1e7Speihong huang 33*a799b1e7Speihong huangPLUGINS= $(SES_LIB) $(TAVOR_LIB) $(HERMON_LIB) $(SD_LIB) 34*a799b1e7Speihong huang 35*a799b1e7Speihong huangOBJECTS= $(PLUGINS:%.so=%.o) 36*a799b1e7Speihong huangDYNLIB= $(PLUGINS:%=%) 37*a799b1e7Speihong huangPOFILES= $(PLUGINS:%.so=%.po) 38*a799b1e7Speihong huangLINTFILE= $(PLUGINS:%.so=%.ln) 39*a799b1e7Speihong huang 40*a799b1e7Speihong huangSLINKS= sgen.so 41*a799b1e7Speihong huangPOFILE= fwflash_transport_identify_ses.po 42*a799b1e7Speihong huangSRCDIR= ../common 43*a799b1e7Speihong huang 44*a799b1e7Speihong huanginclude $(SRC)/cmd/fwflash/Makefile.com 45*a799b1e7Speihong huang 46*a799b1e7Speihong huangCLEANFILES= $(PLUGINS) $(POFILES) $(POFILE) $(LINTFILE) $(SLINKS) 47*a799b1e7Speihong huang 48*a799b1e7Speihong huangLIBS= $(DYNLIB) 49*a799b1e7Speihong huangCFLAGS += $(C_PICFLAGS) 50*a799b1e7Speihong huangROOTLIBDIR= $(ROOTUSRLIBFWFLASHIDF) 51*a799b1e7Speihong huangLDLIBS += -ldevinfo -lc 52*a799b1e7Speihong huangMAPFILES= ../common/mapfile-vers 53*a799b1e7Speihong huangFILEMODE= 0755 54*a799b1e7Speihong huang 55*a799b1e7Speihong huang$(SES_LIB):= PICS= pics/$(SES_LIB:%.so=%.o) 56*a799b1e7Speihong huang$(TAVOR_LIB):= PICS= pics/$(TAVOR_LIB:%.so=%.o) 57*a799b1e7Speihong huang$(HERMON_LIB):= PICS= pics/$(HERMON_LIB:%.so=%.o) 58*a799b1e7Speihong huang$(SD_LIB):= PICS= pics/$(SD_LIB:%.so=%.o) 59*a799b1e7Speihong huang 60*a799b1e7Speihong huang$(SES_LIB):= SONAME = $(SES_LIB) 61*a799b1e7Speihong huang$(TAVOR_LIB):= SONAME = $(TAVOR_LIB) 62*a799b1e7Speihong huang$(HERMON_LIB):= SONAME = $(HERMON_LIB) 63*a799b1e7Speihong huang$(SD_LIB):= SONAME = $(SD_LIB) 64*a799b1e7Speihong huang 65*a799b1e7Speihong huang$(HERMON_LIB):= MAPFILES += ../common/mapfile-vers-hermon 66*a799b1e7Speihong huang$(SD_LIB):= MAPFILES += ../common/mapfile-vers-plus 67*a799b1e7Speihong huang 68*a799b1e7Speihong huang$(SES_LIB):= LDLIBS += -L$(ROOT)/usr/lib/scsi -lscsi -lses -lnvpair 69*a799b1e7Speihong huang$(SD_LIB):= LDLIBS += -L$(ROOT)/usr/lib/scsi -lscsi -lumem 70*a799b1e7Speihong huang 71*a799b1e7Speihong huang$(SES_LIB):= DYNFLAGS += -R/usr/lib/scsi 72*a799b1e7Speihong huang$(SD_LIB):= DYNFLAGS += -R/usr/lib/scsi 73*a799b1e7Speihong huang 74*a799b1e7Speihong huang.KEEP STATE: 75*a799b1e7Speihong huang 76*a799b1e7Speihong huang$(ROOTUSRLIBFWFLASHIDF)/$(SLINKS) : $(ROOTUSRLIBFWFLASHIDF)/$(SES_LIB) 77*a799b1e7Speihong huang @$(RM) $@ 78*a799b1e7Speihong huang $(SYMLINK) $(SES_LIB) $@ 79*a799b1e7Speihong huang 80*a799b1e7Speihong huangall: $(LIBS) 81*a799b1e7Speihong huang 82*a799b1e7Speihong huanginstall: all $(ROOTLIBS) \ 83*a799b1e7Speihong huang $(ROOTUSRLIBFWFLASHIDF)/$(SLINKS) 84*a799b1e7Speihong huang 85*a799b1e7Speihong huanglint: $(LINTFILE) 86*a799b1e7Speihong huang 87*a799b1e7Speihong huang_msg msg: $(POFILE) 88*a799b1e7Speihong huang 89*a799b1e7Speihong huanginclude $(SRC)/lib/Makefile.targ 90*a799b1e7Speihong huang 91*a799b1e7Speihong huang 92