fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# or http://www.opensolaris.org/os/licensing.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
9444c26f4faabda140242c3986089704c4073cedTom Whitten# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLIBRARY= fp.a
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteVERS= .1
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOBJECTS = cfga_fp.o cfga_rcm.o cfga_cs.o cfga_utils.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOBJECTS += cfga_cvt.o cfga_list.o cfga_rep.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# include library definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../../../Makefile.lib
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSRCDIR = ../common
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteROOTLIBDIR= $(ROOT)/usr/lib/cfgadm
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteROOTLIBDIR64= $(ROOTLIBDIR)/$(MACH64)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLIBS= $(DYNLIB)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -DDEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS64 += -DDEBUG
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCFLAGS += $(CCVERBOSE)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCFLAGS64 += $(CCVERBOSE)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-char-subscripts
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-switch
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-address
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS += -erroff=E_SEC_CREAT_WITHOUT_MODE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTFLAGS64 += $(LINTFLAGS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLDLIBS += -lc -ldevice -ldevinfo -lrcm
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLDLIBS += -lHBAAPI -lgen
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMANIFEST= devices-fc-fabric.xml
9444c26f4faabda140242c3986089704c4073cedTom WhittenROOTMANIFESTDIR= $(ROOT)/lib/svc/manifest/system/device
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteROOTMANIFEST= $(MANIFEST:%=$(ROOTMANIFESTDIR)/%)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(ROOTMANIFEST) := FILEMODE= 444
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSVCMETHOD= fc-fabric
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteROOTSVCMETHODDIR= $(ROOT)/lib/svc/method
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteROOTSVCMETHOD= $(SVCMETHOD:%=$(ROOTSVCMETHODDIR)/%)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(ROOTSVCMETHOD):= FILEMODE= 555
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte.KEEP_STATE:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteall: $(LIBS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelint: lintcheck
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Install rules
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(ROOTLIBDIR)/%: % $(ROOTLIBDIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(INS.file)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(ROOTLIBDIR64)/%: % $(ROOTLIBDIR64)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(INS.file)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(ROOTLIBDIR) $(ROOTLIBDIR64):
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(INS.dir)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(ROOTMANIFESTDIR)/%: ../common/% $(ROOTMANIFESTDIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(INS.file)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(ROOTSVCMETHODDIR)/%: ../common/% $(ROOTSVCMETHODDIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(INS.file)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(ROOTSVCMETHODDIR) $(ROOTMANIFESTDIR):
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(INS.dir)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# include library targets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../../../Makefile.targ
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteobjs/%.o pics/%.o: ../common/%.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS_O)