a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang#
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# CDDL HEADER START
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang#
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# The contents of this file are subject to the terms of the
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# Common Development and Distribution License (the "License").
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# You may not use this file except in compliance with the License.
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang#
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# or http://www.opensolaris.org/os/licensing.
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# See the License for the specific language governing permissions
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# and limitations under the License.
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang#
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# When distributing Covered Code, include this CDDL HEADER in each
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# If applicable, add the following below this CDDL HEADER, with the
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# fields enclosed by brackets "[]" replaced with your own identifying
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# information: Portions Copyright [yyyy] [name of copyright owner]
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang#
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# CDDL HEADER END
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang#
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# Use is subject to license terms.
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang#
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang# cmd/fwflash/plugins/transport
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang#
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huanginclude $(SRC)/lib/Makefile.lib
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangSES_LIB= ses.so
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangTAVOR_LIB= tavor.so
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangHERMON_LIB= hermon.so
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangSD_LIB= sd.so
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangPLUGINS= $(SES_LIB) $(TAVOR_LIB) $(HERMON_LIB) $(SD_LIB)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangOBJECTS= $(PLUGINS:%.so=%.o)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangDYNLIB= $(PLUGINS:%=%)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangPOFILES= $(PLUGINS:%.so=%.po)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangLINTFILE= $(PLUGINS:%.so=%.ln)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangSLINKS= sgen.so
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangPOFILE= fwflash_transport_identify_ses.po
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangSRCDIR= ../common
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huanginclude $(SRC)/cmd/fwflash/Makefile.com
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangCLEANFILES= $(PLUGINS) $(POFILES) $(POFILE) $(LINTFILE) $(SLINKS)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangLIBS= $(DYNLIB)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangCFLAGS += $(C_PICFLAGS)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangROOTLIBDIR= $(ROOTUSRLIBFWFLASHIDF)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangLDLIBS += -ldevinfo -lc
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangMAPFILES= ../common/mapfile-vers
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangFILEMODE= 0755
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(SES_LIB):= PICS= pics/$(SES_LIB:%.so=%.o)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(TAVOR_LIB):= PICS= pics/$(TAVOR_LIB:%.so=%.o)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(HERMON_LIB):= PICS= pics/$(HERMON_LIB:%.so=%.o)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(SD_LIB):= PICS= pics/$(SD_LIB:%.so=%.o)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(SES_LIB):= SONAME = $(SES_LIB)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(TAVOR_LIB):= SONAME = $(TAVOR_LIB)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(HERMON_LIB):= SONAME = $(HERMON_LIB)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(SD_LIB):= SONAME = $(SD_LIB)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(HERMON_LIB):= MAPFILES += ../common/mapfile-vers-hermon
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(SD_LIB):= MAPFILES += ../common/mapfile-vers-plus
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(SES_LIB):= LDLIBS += -L$(ROOT)/usr/lib/scsi -lscsi -lses -lnvpair
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(SD_LIB):= LDLIBS += -L$(ROOT)/usr/lib/scsi -lscsi -lumem
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(SES_LIB):= DYNFLAGS += -R/usr/lib/scsi
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(SD_LIB):= DYNFLAGS += -R/usr/lib/scsi
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang.KEEP STATE:
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang$(ROOTUSRLIBFWFLASHIDF)/$(SLINKS) : $(ROOTUSRLIBFWFLASHIDF)/$(SES_LIB)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang @$(RM) $@
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang $(SYMLINK) $(SES_LIB) $@
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huangall: $(LIBS)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huanginstall: all $(ROOTLIBS) \
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang $(ROOTUSRLIBFWFLASHIDF)/$(SLINKS)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huanglint: $(LINTFILE)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang_msg msg: $(POFILE)
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huanginclude $(SRC)/lib/Makefile.targ
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang
a799b1e741b6f59012a469e6b57c40cb8061127bpeihong huang