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.
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.
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]
21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
26 include $(SRC)/lib/Makefile.lib
28 HERMON-MELLANOX_LIB= hermon-MELLANOX.so
29 TAVOR-MELLANOX_LIB= tavor-MELLANOX.so
30 SD-GENERIC_LIB= sd-GENERIC.so
32 PLUGINS= $(HERMON-MELLANOX_LIB) $(TAVOR-MELLANOX_LIB) $(SD-GENERIC_LIB)
34 OBJECTS= $(PLUGINS:%.so=%.o)
35 DYNLIB= $(PLUGINS:%=%)
36 POFILES= $(PLUGINS:%.so=%.po)
38 POFILE= fwflash_verify_msg.po
41 include $(SRC)/cmd/fwflash/Makefile.com
43 CLEANFILES= $(PLUGINS) $(POFILE) $(POFILES)
46 CFLAGS += $(C_PICFLAGS)
47 ROOTLIBDIR= $(ROOTUSRLIBFWFLASHVRF)
48 MAPFILES= ../vendor/mapfile-vers
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)
56 $(HERMON-MELLANOX_LIB):= SONAME = $(HERMON-MELLANOX_LIB)
57 $(TAVOR-MELLANOX_LIB):= SONAME = $(TAVOR-MELLANOX_LIB)
58 $(SD-GENERIC_LIB):= SONAME = $(SD-GENERIC_LIB)
60 $(HERMON-MELLANOX_LIB):= DYNFLAGS += -R/usr/lib/fwflash/identify
61 $(HERMON-MELLANOX_LIB):= LDLIBS += -L. $(ROOT)/usr/lib/fwflash/identify/hermon.so
68 install: all $(ROOTLIBS)
73 include $(SRC)/lib/Makefile.targ