xref: /illumos-gate/usr/src/lib/sun_fc/Makefile.com (revision d17be682)
1fcf3ce44SJohn Forte#
2fcf3ce44SJohn Forte# CDDL HEADER START
3fcf3ce44SJohn Forte#
4fcf3ce44SJohn Forte# The contents of this file are subject to the terms of the
5fcf3ce44SJohn Forte# Common Development and Distribution License (the "License").
6fcf3ce44SJohn Forte# You may not use this file except in compliance with the License.
7fcf3ce44SJohn Forte#
8fcf3ce44SJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9fcf3ce44SJohn Forte# or http://www.opensolaris.org/os/licensing.
10fcf3ce44SJohn Forte# See the License for the specific language governing permissions
11fcf3ce44SJohn Forte# and limitations under the License.
12fcf3ce44SJohn Forte#
13fcf3ce44SJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
14fcf3ce44SJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15fcf3ce44SJohn Forte# If applicable, add the following below this CDDL HEADER, with the
16fcf3ce44SJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
17fcf3ce44SJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
18fcf3ce44SJohn Forte#
19fcf3ce44SJohn Forte# CDDL HEADER END
20fcf3ce44SJohn Forte#
21fcf3ce44SJohn Forte#
22a7949318SReed# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23fcf3ce44SJohn Forte# Use is subject to license terms.
24fcf3ce44SJohn Forte#
258e0c8248SAndrew Stormont# Copyright 2019 RackTop Systems.
26fcf3ce44SJohn Forte#
27fcf3ce44SJohn Forte
28fcf3ce44SJohn ForteLIBRARYCCC =	libsun_fc.a
29fcf3ce44SJohn ForteVERS =		.1
30fcf3ce44SJohn Forte
31fcf3ce44SJohn ForteOBJECTS	=	Lockable.o \
32fcf3ce44SJohn Forte		HBA.o \
33fcf3ce44SJohn Forte		HBAPort.o \
34fcf3ce44SJohn Forte		Handle.o \
35fcf3ce44SJohn Forte		HandlePort.o \
36fcf3ce44SJohn Forte		IOError.o \
37fcf3ce44SJohn Forte		InternalError.o \
38fcf3ce44SJohn Forte		Listener.o \
39fcf3ce44SJohn Forte		EventBridgeFactory.o \
40fcf3ce44SJohn Forte		HBAList.o \
41fcf3ce44SJohn Forte		FCHBA.o \
42fcf3ce44SJohn Forte		FCHBAPort.o \
43fcf3ce44SJohn Forte		TgtFCHBA.o \
44fcf3ce44SJohn Forte		TgtFCHBAPort.o \
45fcf3ce44SJohn Forte		FCSyseventBridge.o \
46fcf3ce44SJohn Forte		AdapterAddEventListener.o \
47fcf3ce44SJohn Forte		AdapterEventListener.o \
48fcf3ce44SJohn Forte		AdapterPortEventListener.o \
49fcf3ce44SJohn Forte		AdapterPortStatEventListener.o \
50fcf3ce44SJohn Forte		LinkEventListener.o \
51fcf3ce44SJohn Forte		TargetEventListener.o \
52fcf3ce44SJohn Forte		HBA_RegisterLibrary.o \
53fcf3ce44SJohn Forte		HBA_RegisterLibraryV2.o \
54fcf3ce44SJohn Forte		Sun_fcCloseAdapter.o \
55fcf3ce44SJohn Forte		Sun_fcFreeLibrary.o \
56fcf3ce44SJohn Forte		Sun_fcGetAdapterAttributes.o \
57fcf3ce44SJohn Forte		Sun_fcGetAdapterName.o \
58fcf3ce44SJohn Forte		Sun_fcGetAdapterPortAttributes.o \
59fcf3ce44SJohn Forte		Sun_fcGetBindingCapability.o \
60fcf3ce44SJohn Forte		Sun_fcGetBindingSupport.o \
61fcf3ce44SJohn Forte		Sun_fcGetDiscPortAttrs.o \
62fcf3ce44SJohn Forte		Sun_fcGetEventBuffer.o \
63fcf3ce44SJohn Forte		Sun_fcGetFC4Statistics.o \
64fcf3ce44SJohn Forte		Sun_fcGetFCPStatistics.o \
65fcf3ce44SJohn Forte		Sun_fcGetFcpPersistentBinding.o \
66fcf3ce44SJohn Forte		Sun_fcGetFcpTargetMapping.o \
67fcf3ce44SJohn Forte		Sun_fcGetFcpTargetMappingV2.o \
68fcf3ce44SJohn Forte		Sun_fcGetNumberOfAdapters.o \
69fcf3ce44SJohn Forte		Sun_fcGetPersistentBindingV2.o \
70fcf3ce44SJohn Forte		Sun_fcGetPortAttributesByWWN.o \
71fcf3ce44SJohn Forte		Sun_fcGetPortStatistics.o \
72fcf3ce44SJohn Forte		Sun_fcGetRNIDMgmtInfo.o \
73fcf3ce44SJohn Forte		Sun_fcGetVendorLibraryAttributes.o \
74fcf3ce44SJohn Forte		Sun_fcGetVersion.o \
75fcf3ce44SJohn Forte		Sun_fcLoadLibrary.o \
76fcf3ce44SJohn Forte		Sun_fcOpenAdapter.o \
77fcf3ce44SJohn Forte		Sun_fcOpenAdapterByWWN.o \
78fcf3ce44SJohn Forte		Sun_fcRefreshAdapterConfiguration.o \
79fcf3ce44SJohn Forte		Sun_fcRefreshInformation.o \
80fcf3ce44SJohn Forte		Sun_fcRegisterForAdapterAddEvents.o \
81fcf3ce44SJohn Forte		Sun_fcRegisterForAdapterEvents.o \
82fcf3ce44SJohn Forte		Sun_fcRegisterForAdapterPortEvents.o \
83fcf3ce44SJohn Forte		Sun_fcRegisterForAdapterPortStatEvents.o \
84fcf3ce44SJohn Forte		Sun_fcRegisterForLinkEvents.o \
85fcf3ce44SJohn Forte		Sun_fcRegisterForTargetEvents.o \
86fcf3ce44SJohn Forte		Sun_fcRemoveAllPersistentBindings.o \
87fcf3ce44SJohn Forte		Sun_fcRemoveCallback.o \
88fcf3ce44SJohn Forte		Sun_fcRemovePersistentBinding.o \
89fcf3ce44SJohn Forte		Sun_fcResetStatistics.o \
90fcf3ce44SJohn Forte		Sun_fcScsiInquiryV2.o \
91fcf3ce44SJohn Forte		Sun_fcScsiReadCapacityV2.o \
92fcf3ce44SJohn Forte		Sun_fcScsiReportLUNsV2.o \
93fcf3ce44SJohn Forte		Sun_fcSendCTPassThru.o \
94fcf3ce44SJohn Forte		Sun_fcSendCTPassThruV2.o \
95fcf3ce44SJohn Forte		Sun_fcSendLIRR.o \
96fcf3ce44SJohn Forte		Sun_fcSendRLS.o \
97fcf3ce44SJohn Forte		Sun_fcSendRNID.o \
98fcf3ce44SJohn Forte		Sun_fcSendRNIDV2.o \
99fcf3ce44SJohn Forte		Sun_fcSendRPL.o \
100fcf3ce44SJohn Forte		Sun_fcSendRPS.o \
101fcf3ce44SJohn Forte		Sun_fcSendReadCapacity.o \
102fcf3ce44SJohn Forte		Sun_fcSendReportLUNs.o \
103fcf3ce44SJohn Forte		Sun_fcSendSRL.o \
104fcf3ce44SJohn Forte		Sun_fcSendScsiInquiry.o \
105fcf3ce44SJohn Forte		Sun_fcSetBindingSupport.o \
106fcf3ce44SJohn Forte		Sun_fcSetPersistentBindingV2.o \
107fcf3ce44SJohn Forte		Sun_fcSetRNIDMgmtInfo.o \
108fcf3ce44SJohn Forte		Sun_fcGetNumberOfTgtAdapters.o \
109fcf3ce44SJohn Forte		Sun_fcGetTgtAdapterName.o \
110fcf3ce44SJohn Forte		Sun_fcOpenTgtAdapter.o \
111fcf3ce44SJohn Forte		Sun_fcOpenTgtAdapterByWWN.o \
112fcf3ce44SJohn Forte		Trace.o \
113fcf3ce44SJohn Forte		Sun_fcNPIVGetAdapterAttributes.o \
114fcf3ce44SJohn Forte		Sun_fcGetPortNPIVAttributes.o \
115fcf3ce44SJohn Forte		Sun_fcCreateNPIVPort.o \
116fcf3ce44SJohn Forte		Sun_fcGetNPIVPortInfo.o \
117fcf3ce44SJohn Forte		Sun_fcDeleteNPIVPort.o \
118fcf3ce44SJohn Forte		HBANPIVPort.o \
119fcf3ce44SJohn Forte		FCHBANPIVPort.o \
120fcf3ce44SJohn Forte		HandleNPIVPort.o \
121fcf3ce44SJohn Forte		AdapterDeviceEventListener.o \
122fcf3ce44SJohn Forte		Sun_fcRegisterForAdapterDeviceEvents.o \
123a7949318SReed		Sun_fcDoForceLip.o \
124fcf3ce44SJohn Forte		Sun_fcAdapterCreateWWN.o \
125fcf3ce44SJohn Forte		Sun_fcAdapterReturnWWN.o
126fcf3ce44SJohn Forte
127fcf3ce44SJohn Forteinclude ../../Makefile.lib
128fcf3ce44SJohn Forte
129fcf3ce44SJohn ForteLIBS =		$(DYNLIBCCC)
130fcf3ce44SJohn ForteSRCDIR=		../common
131fcf3ce44SJohn Forte
132fcf3ce44SJohn ForteINCS +=		-I$(SRCDIR)
133fcf3ce44SJohn ForteINCS +=		-I$(SRC)/lib/hbaapi/common
134fcf3ce44SJohn Forte
135fcf3ce44SJohn ForteCCFLAGS +=	-D_POSIX_PTHREAD_SEMANTICS
136*d17be682SRichard LoweCCFLAGS +=	-_g++=-std=c++98
137fcf3ce44SJohn ForteCCFLAGS64 +=	-D_POSIX_PTHREAD_SEMANTICS
138*d17be682SRichard LoweCCFLAGS64 +=	-_g++=-std=c++98
139fcf3ce44SJohn ForteCPPFLAGS +=	$(INCS) -DBUILD_TIME='"Wed Sep 24 12:00:00 2008"'
140fcf3ce44SJohn Forte
1418e0c8248SAndrew StormontCCERRWARN +=	-_gcc=-Wno-reorder
1428e0c8248SAndrew StormontCCERRWARN +=	-_gcc=-Wno-unused-variable
1438e0c8248SAndrew StormontCCERRWARN +=	-_gcc=-Wno-unused-value
1448e0c8248SAndrew StormontCCERRWARN +=	-_gcc=-Wno-unused-function
1458e0c8248SAndrew StormontCCERRWARN +=	-_gcc=-Wno-type-limits
1468e0c8248SAndrew StormontCCERRWARN +=	-_gcc=-Wno-return-type
1478e0c8248SAndrew Stormont
1486a3e8e86SRichard LoweLDLIBS			+= -ldevinfo
1496a3e8e86SRichard LoweLDLIBS			+= -lsysevent
1506a3e8e86SRichard LoweLDLIBS			+= -lnvpair
1516a3e8e86SRichard LoweLDLIBS			+= $(CCNEEDED)
1526a3e8e86SRichard LoweLDLIBS			+= -lc
153fcf3ce44SJohn Forte
154fcf3ce44SJohn Forte
155fcf3ce44SJohn Forte.KEEP_STATE:
156fcf3ce44SJohn Forte
157fcf3ce44SJohn Forteall: $(LIBS)
158fcf3ce44SJohn Forte
159fcf3ce44SJohn Forteinclude ../../Makefile.targ
160