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.
24 # cmd/fwflash/plugins/transport
26 include $(SRC)/lib/Makefile.lib
33 PLUGINS= $(SES_LIB) $(TAVOR_LIB) $(HERMON_LIB) $(SD_LIB)
35 OBJECTS= $(PLUGINS:%.so=%.o)
36 DYNLIB= $(PLUGINS:%=%)
37 POFILES= $(PLUGINS:%.so=%.po)
40 POFILE= fwflash_transport_identify_ses.po
43 include $(SRC)/cmd/fwflash/Makefile.com
45 CLEANFILES= $(PLUGINS) $(POFILES) $(POFILE) $(SLINKS)
48 CFLAGS += $(C_PICFLAGS)
49 ROOTLIBDIR= $(ROOTUSRLIBFWFLASHIDF)
50 LDLIBS += -ldevinfo -lc
51 MAPFILES= ../common/mapfile-vers
54 $(SES_LIB):= PICS= pics/$(SES_LIB:%.so=%.o)
55 $(TAVOR_LIB):= PICS= pics/$(TAVOR_LIB:%.so=%.o)
56 $(HERMON_LIB):= PICS= pics/$(HERMON_LIB:%.so=%.o)
57 $(SD_LIB):= PICS= pics/$(SD_LIB:%.so=%.o)
59 $(SES_LIB):= SONAME = $(SES_LIB)
60 $(TAVOR_LIB):= SONAME = $(TAVOR_LIB)
61 $(HERMON_LIB):= SONAME = $(HERMON_LIB)
62 $(SD_LIB):= SONAME = $(SD_LIB)
64 $(HERMON_LIB):= MAPFILES += ../common/mapfile-vers-hermon
65 $(SD_LIB):= MAPFILES += ../common/mapfile-vers-plus
67 $(SES_LIB):= LDLIBS += -L$(ROOT)/usr/lib/scsi/$(MACH32) -lscsi -lses -lnvpair
68 $(SD_LIB):= LDLIBS += -L$(ROOT)/usr/lib/scsi/$(MACH32) -lscsi -lumem
70 $(SES_LIB):= DYNFLAGS += -R/usr/lib/scsi/$(MACH32)
71 $(SD_LIB):= DYNFLAGS += -R/usr/lib/scsi/$(MACH32)
75 $(ROOTUSRLIBFWFLASHIDF)/$(SLINKS) : $(ROOTUSRLIBFWFLASHIDF)/$(SES_LIB)
77 $(SYMLINK) $(SES_LIB) $@
81 install: all $(ROOTLIBS) \
82 $(ROOTUSRLIBFWFLASHIDF)/$(SLINKS)
87 include $(SRC)/lib/Makefile.targ