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