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.
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.
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]
22 # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
30 OBJECTS = cfga_fp.o cfga_rcm.o cfga_cs.o cfga_utils.o
31 OBJECTS += cfga_cvt.o cfga_list.o cfga_rep.o
33 # include library definitions
34 include ../../../Makefile.lib
37 ROOTLIBDIR= $(ROOT)/usr/lib/cfgadm
38 ROOTLIBDIR64= $(ROOTLIBDIR)/$(MACH64)
44 CERRWARN += -Wno-parentheses
45 CERRWARN += -Wno-char-subscripts
46 CERRWARN += -Wno-uninitialized
47 CERRWARN += -Wno-switch
48 CERRWARN += -Wno-address
50 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
51 CPPFLAGS += -I$(SRCTOP)/include
54 LDLIBS += -lc -ldevice -ldevinfo -lrcm
55 LDLIBS += -lHBAAPI -lgen
57 MANIFEST= devices-fc-fabric.xml
58 ROOTMANIFESTDIR= $(ROOT)/lib/svc/manifest/system/device
59 ROOTMANIFEST= $(MANIFEST:%=$(ROOTMANIFESTDIR)/%)
60 $(ROOTMANIFEST) := FILEMODE= 444
63 ROOTSVCMETHODDIR= $(ROOT)/lib/svc/method
64 ROOTSVCMETHOD= $(SVCMETHOD:%=$(ROOTSVCMETHODDIR)/%)
65 $(ROOTSVCMETHOD):= FILEMODE= 555
74 $(ROOTLIBDIR)/%: % $(ROOTLIBDIR)
77 $(ROOTLIBDIR64)/%: % $(ROOTLIBDIR64)
80 $(ROOTLIBDIR) $(ROOTLIBDIR64):
83 $(ROOTMANIFESTDIR)/%: ../common/% $(ROOTMANIFESTDIR)
86 $(ROOTSVCMETHODDIR)/%: ../common/% $(ROOTSVCMETHODDIR)
89 $(ROOTSVCMETHODDIR) $(ROOTMANIFESTDIR):
92 # include library targets
93 include ../../../Makefile.targ
95 objs/%.o pics/%.o: ../common/%.c