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