xref: /titanic_51/usr/src/lib/sun_fc/Makefile.com (revision bbaa8b60dd95d714741fc474adad3cf710ef4efd)
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#
22# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25#
26
27LIBRARYCCC =	libsun_fc.a
28VERS =		.1
29
30OBJECTS	=	Lockable.o \
31		HBA.o \
32		HBAPort.o \
33		Handle.o \
34		HandlePort.o \
35		IOError.o \
36		InternalError.o \
37		Listener.o \
38		EventBridgeFactory.o \
39		HBAList.o \
40		FCHBA.o \
41		FCHBAPort.o \
42		TgtFCHBA.o \
43		TgtFCHBAPort.o \
44		FCSyseventBridge.o \
45		AdapterAddEventListener.o \
46		AdapterEventListener.o \
47		AdapterPortEventListener.o \
48		AdapterPortStatEventListener.o \
49		LinkEventListener.o \
50		TargetEventListener.o \
51		HBA_RegisterLibrary.o \
52		HBA_RegisterLibraryV2.o \
53		Sun_fcCloseAdapter.o \
54		Sun_fcFreeLibrary.o \
55		Sun_fcGetAdapterAttributes.o \
56		Sun_fcGetAdapterName.o \
57		Sun_fcGetAdapterPortAttributes.o \
58		Sun_fcGetBindingCapability.o \
59		Sun_fcGetBindingSupport.o \
60		Sun_fcGetDiscPortAttrs.o \
61		Sun_fcGetEventBuffer.o \
62		Sun_fcGetFC4Statistics.o \
63		Sun_fcGetFCPStatistics.o \
64		Sun_fcGetFcpPersistentBinding.o \
65		Sun_fcGetFcpTargetMapping.o \
66		Sun_fcGetFcpTargetMappingV2.o \
67		Sun_fcGetNumberOfAdapters.o \
68		Sun_fcGetPersistentBindingV2.o \
69		Sun_fcGetPortAttributesByWWN.o \
70		Sun_fcGetPortStatistics.o \
71		Sun_fcGetRNIDMgmtInfo.o \
72		Sun_fcGetVendorLibraryAttributes.o \
73		Sun_fcGetVersion.o \
74		Sun_fcLoadLibrary.o \
75		Sun_fcOpenAdapter.o \
76		Sun_fcOpenAdapterByWWN.o \
77		Sun_fcRefreshAdapterConfiguration.o \
78		Sun_fcRefreshInformation.o \
79		Sun_fcRegisterForAdapterAddEvents.o \
80		Sun_fcRegisterForAdapterEvents.o \
81		Sun_fcRegisterForAdapterPortEvents.o \
82		Sun_fcRegisterForAdapterPortStatEvents.o \
83		Sun_fcRegisterForLinkEvents.o \
84		Sun_fcRegisterForTargetEvents.o \
85		Sun_fcRemoveAllPersistentBindings.o \
86		Sun_fcRemoveCallback.o \
87		Sun_fcRemovePersistentBinding.o \
88		Sun_fcResetStatistics.o \
89		Sun_fcScsiInquiryV2.o \
90		Sun_fcScsiReadCapacityV2.o \
91		Sun_fcScsiReportLUNsV2.o \
92		Sun_fcSendCTPassThru.o \
93		Sun_fcSendCTPassThruV2.o \
94		Sun_fcSendLIRR.o \
95		Sun_fcSendRLS.o \
96		Sun_fcSendRNID.o \
97		Sun_fcSendRNIDV2.o \
98		Sun_fcSendRPL.o \
99		Sun_fcSendRPS.o \
100		Sun_fcSendReadCapacity.o \
101		Sun_fcSendReportLUNs.o \
102		Sun_fcSendSRL.o \
103		Sun_fcSendScsiInquiry.o \
104		Sun_fcSetBindingSupport.o \
105		Sun_fcSetPersistentBindingV2.o \
106		Sun_fcSetRNIDMgmtInfo.o \
107		Sun_fcGetNumberOfTgtAdapters.o \
108		Sun_fcGetTgtAdapterName.o \
109		Sun_fcOpenTgtAdapter.o \
110		Sun_fcOpenTgtAdapterByWWN.o \
111		Trace.o \
112		Sun_fcNPIVGetAdapterAttributes.o \
113		Sun_fcGetPortNPIVAttributes.o \
114		Sun_fcCreateNPIVPort.o \
115		Sun_fcGetNPIVPortInfo.o \
116		Sun_fcDeleteNPIVPort.o \
117		HBANPIVPort.o \
118		FCHBANPIVPort.o \
119		HandleNPIVPort.o \
120		AdapterDeviceEventListener.o \
121		Sun_fcRegisterForAdapterDeviceEvents.o \
122		Sun_fcDoForceLip.o \
123		Sun_fcAdapterCreateWWN.o \
124		Sun_fcAdapterReturnWWN.o
125
126include ../../Makefile.lib
127
128LIBS =		$(DYNLIBCCC)
129SRCDIR=		../common
130
131INCS +=		-I$(SRCDIR)
132INCS +=		-I$(SRC)/lib/hbaapi/common
133
134CCFLAGS +=	-D_POSIX_PTHREAD_SEMANTICS
135CCFLAGS +=	-compat=5
136CCFLAGS64 +=	-D_POSIX_PTHREAD_SEMANTICS
137CCFLAGS64 +=	-compat=5
138CPPFLAGS +=	$(INCS) -DBUILD_TIME='"Wed Sep 24 12:00:00 2008"'
139
140LDLIBS			+= -ldevinfo
141LDLIBS			+= -lsysevent
142LDLIBS			+= -lnvpair
143$(__SUNC)CCNEEDED	= $(CCEXTNEEDED)
144LDLIBS			+= $(CCNEEDED)
145LDLIBS			+= -lc
146
147$(LINTLIB) := SRCS=	$(SRCDIR)/$(LINTSRC)
148
149.KEEP_STATE:
150
151all: $(LIBS)
152
153lint:
154	@echo "This section is not required to be lint clean"
155	@echo "C++"
156
157include ../../Makefile.targ
158