xref: /titanic_50/usr/src/cmd/fwflash/plugins/Makefile.targ (revision 6e1ae2a33c618c4c2b14aec7d2f21743ddea5837)
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)
37LINTFILE= $(PLUGINS:%.so=%.ln)
38
39POFILE=	fwflash_verify_msg.po
40SRCDIR=	../vendor
41
42include $(SRC)/cmd/fwflash/Makefile.com
43
44CLEANFILES= $(PLUGINS) $(POFILE) $(POFILES) $(LINTFILE)
45
46LIBS= $(DYNLIB)
47CFLAGS += $(C_PICFLAGS)
48ROOTLIBDIR= $(ROOTUSRLIBFWFLASHVRF)
49MAPFILES= ../vendor/mapfile-vers
50LDLIBS += -lc
51FILEMODE = 0755
52
53$(HERMON-MELLANOX_LIB):= PICS= pics/$(HERMON-MELLANOX_LIB:%.so=%.o)
54$(TAVOR-MELLANOX_LIB):=	PICS = pics/$(TAVOR-MELLANOX_LIB:%.so=%.o)
55$(SD-GENERIC_LIB):= PICS= pics/$(SD-GENERIC_LIB:%.so=%.o)
56
57$(HERMON-MELLANOX_LIB):= SONAME = $(HERMON-MELLANOX_LIB)
58$(TAVOR-MELLANOX_LIB):=	SONAME = $(TAVOR-MELLANOX_LIB)
59$(SD-GENERIC_LIB):= SONAME = $(SD-GENERIC_LIB)
60
61$(HERMON-MELLANOX_LIB):= DYNFLAGS += -R/usr/lib/fwflash/identify
62$(HERMON-MELLANOX_LIB):= LDLIBS += -L. $(ROOT)/usr/lib/fwflash/identify/hermon.so
63
64
65.KEEP STATE:
66
67all: $(LIBS)
68
69install: all $(ROOTLIBS)
70
71lint: $(LINTFILE)
72
73_msg msg: $(POFILE)
74
75include $(SRC)/lib/Makefile.targ
76