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