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