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