17836SJohn.Forte@Sun.COM# 27836SJohn.Forte@Sun.COM# CDDL HEADER START 37836SJohn.Forte@Sun.COM# 47836SJohn.Forte@Sun.COM# The contents of this file are subject to the terms of the 57836SJohn.Forte@Sun.COM# Common Development and Distribution License (the "License"). 67836SJohn.Forte@Sun.COM# You may not use this file except in compliance with the License. 77836SJohn.Forte@Sun.COM# 87836SJohn.Forte@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97836SJohn.Forte@Sun.COM# or http://www.opensolaris.org/os/licensing. 107836SJohn.Forte@Sun.COM# See the License for the specific language governing permissions 117836SJohn.Forte@Sun.COM# and limitations under the License. 127836SJohn.Forte@Sun.COM# 137836SJohn.Forte@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each 147836SJohn.Forte@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157836SJohn.Forte@Sun.COM# If applicable, add the following below this CDDL HEADER, with the 167836SJohn.Forte@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying 177836SJohn.Forte@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner] 187836SJohn.Forte@Sun.COM# 197836SJohn.Forte@Sun.COM# CDDL HEADER END 207836SJohn.Forte@Sun.COM# 217836SJohn.Forte@Sun.COM# 22*11996SThomas.Whitten@Sun.COM# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 237836SJohn.Forte@Sun.COM# Use is subject to license terms. 247836SJohn.Forte@Sun.COM# 257836SJohn.Forte@Sun.COM# 267836SJohn.Forte@Sun.COM 277836SJohn.Forte@Sun.COMLIBRARY= fp.a 287836SJohn.Forte@Sun.COMVERS= .1 297836SJohn.Forte@Sun.COM 307836SJohn.Forte@Sun.COMOBJECTS = cfga_fp.o cfga_rcm.o cfga_cs.o cfga_utils.o 317836SJohn.Forte@Sun.COMOBJECTS += cfga_cvt.o cfga_list.o cfga_rep.o 327836SJohn.Forte@Sun.COM 337836SJohn.Forte@Sun.COM# include library definitions 347836SJohn.Forte@Sun.COMinclude ../../../Makefile.lib 357836SJohn.Forte@Sun.COM 367836SJohn.Forte@Sun.COMSRCDIR = ../common 377836SJohn.Forte@Sun.COMROOTLIBDIR= $(ROOT)/usr/lib/cfgadm 387836SJohn.Forte@Sun.COMROOTLIBDIR64= $(ROOTLIBDIR)/$(MACH64) 397836SJohn.Forte@Sun.COM 407836SJohn.Forte@Sun.COMLIBS= $(DYNLIB) 417836SJohn.Forte@Sun.COM 427836SJohn.Forte@Sun.COMLINTFLAGS += -DDEBUG 437836SJohn.Forte@Sun.COMLINTFLAGS64 += -DDEBUG 447836SJohn.Forte@Sun.COM 457836SJohn.Forte@Sun.COMCFLAGS += $(CCVERBOSE) 467836SJohn.Forte@Sun.COMCFLAGS64 += $(CCVERBOSE) 477836SJohn.Forte@Sun.COM 487836SJohn.Forte@Sun.COMCPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS 497836SJohn.Forte@Sun.COM 507836SJohn.Forte@Sun.COMLINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY 517836SJohn.Forte@Sun.COMLINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2 527836SJohn.Forte@Sun.COMLINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2 537836SJohn.Forte@Sun.COMLINTFLAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2 547836SJohn.Forte@Sun.COMLINTFLAGS += -erroff=E_SEC_CREAT_WITHOUT_MODE 557836SJohn.Forte@Sun.COMLINTFLAGS64 += $(LINTFLAGS) 567836SJohn.Forte@Sun.COM 577836SJohn.Forte@Sun.COMLDLIBS += -lc -ldevice -ldevinfo -lrcm 587836SJohn.Forte@Sun.COMLDLIBS += -lHBAAPI -lgen 597836SJohn.Forte@Sun.COM 607836SJohn.Forte@Sun.COMMANIFEST= devices-fc-fabric.xml 61*11996SThomas.Whitten@Sun.COMROOTMANIFESTDIR= $(ROOT)/lib/svc/manifest/system/device 627836SJohn.Forte@Sun.COMROOTMANIFEST= $(MANIFEST:%=$(ROOTMANIFESTDIR)/%) 637836SJohn.Forte@Sun.COM$(ROOTMANIFEST) := FILEMODE= 444 647836SJohn.Forte@Sun.COM 657836SJohn.Forte@Sun.COMSVCMETHOD= fc-fabric 667836SJohn.Forte@Sun.COMROOTSVCMETHODDIR= $(ROOT)/lib/svc/method 677836SJohn.Forte@Sun.COMROOTSVCMETHOD= $(SVCMETHOD:%=$(ROOTSVCMETHODDIR)/%) 687836SJohn.Forte@Sun.COM$(ROOTSVCMETHOD):= FILEMODE= 555 697836SJohn.Forte@Sun.COM 707836SJohn.Forte@Sun.COM.KEEP_STATE: 717836SJohn.Forte@Sun.COM 727836SJohn.Forte@Sun.COMall: $(LIBS) 737836SJohn.Forte@Sun.COM 747836SJohn.Forte@Sun.COMlint: lintcheck 757836SJohn.Forte@Sun.COM 767836SJohn.Forte@Sun.COM# Install rules 777836SJohn.Forte@Sun.COM 787836SJohn.Forte@Sun.COM$(ROOTLIBDIR)/%: % $(ROOTLIBDIR) 797836SJohn.Forte@Sun.COM $(INS.file) 807836SJohn.Forte@Sun.COM 817836SJohn.Forte@Sun.COM$(ROOTLIBDIR64)/%: % $(ROOTLIBDIR64) 827836SJohn.Forte@Sun.COM $(INS.file) 837836SJohn.Forte@Sun.COM 847836SJohn.Forte@Sun.COM$(ROOTLIBDIR) $(ROOTLIBDIR64): 857836SJohn.Forte@Sun.COM $(INS.dir) 867836SJohn.Forte@Sun.COM 877836SJohn.Forte@Sun.COM$(ROOTMANIFESTDIR)/%: ../common/% $(ROOTMANIFESTDIR) 887836SJohn.Forte@Sun.COM $(INS.file) 897836SJohn.Forte@Sun.COM 907836SJohn.Forte@Sun.COM$(ROOTSVCMETHODDIR)/%: ../common/% $(ROOTSVCMETHODDIR) 917836SJohn.Forte@Sun.COM $(INS.file) 927836SJohn.Forte@Sun.COM 937836SJohn.Forte@Sun.COM$(ROOTSVCMETHODDIR) $(ROOTMANIFESTDIR): 947836SJohn.Forte@Sun.COM $(INS.dir) 957836SJohn.Forte@Sun.COM 967836SJohn.Forte@Sun.COM# include library targets 977836SJohn.Forte@Sun.COMinclude ../../../Makefile.targ 987836SJohn.Forte@Sun.COM 997836SJohn.Forte@Sun.COMobjs/%.o pics/%.o: ../common/%.c 1007836SJohn.Forte@Sun.COM $(COMPILE.c) -o $@ $< 1017836SJohn.Forte@Sun.COM $(POST_PROCESS_O) 102