Merge remote-tracking branch 'origin/master'
[unleashed/lotheac.git] / usr / src / lib / cfgadm_plugins / fp / Makefile.com
blobe6c9cda35263521e0f1a5ca464cf14f7cb7f2744
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
22 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23 # Use is subject to license terms.
25 # Copyright (c) 2018, Joyent, Inc.
27 LIBRARY= fp.a
28 VERS= .1
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
36 SRCDIR =        ../common
37 ROOTLIBDIR=     $(ROOT)/usr/lib/cfgadm
38 ROOTLIBDIR64=   $(ROOTLIBDIR)/$(MACH64)
40 LIBS=   $(DYNLIB)
44 CERRWARN +=     -Wno-parentheses
45 CERRWARN +=     -Wno-char-subscripts
46 CERRWARN +=     -Wno-uninitialized
47 CERRWARN +=     -Wno-switch
48 CERRWARN +=     -Wno-address
50 # not linted
51 SMATCH=off
53 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
54 CPPFLAGS += -I$(SRCTOP)/include
57 LDLIBS +=       -lc -ldevice -ldevinfo -lrcm
58 LDLIBS +=       -lHBAAPI -lgen
60 MANIFEST=       devices-fc-fabric.xml
61 ROOTMANIFESTDIR=        $(ROOT)/lib/svc/manifest/system/device
62 ROOTMANIFEST=   $(MANIFEST:%=$(ROOTMANIFESTDIR)/%)
63 $(ROOTMANIFEST) := FILEMODE= 444
65 SVCMETHOD=      fc-fabric
66 ROOTSVCMETHODDIR=       $(ROOT)/lib/svc/method
67 ROOTSVCMETHOD=  $(SVCMETHOD:%=$(ROOTSVCMETHODDIR)/%)
68 $(ROOTSVCMETHOD):= FILEMODE= 555
70 .KEEP_STATE:
72 all:    $(LIBS)
75 # Install rules
77 $(ROOTLIBDIR)/%: % $(ROOTLIBDIR)
78         $(INS.file)
80 $(ROOTLIBDIR64)/%: % $(ROOTLIBDIR64)
81         $(INS.file)
83 $(ROOTLIBDIR) $(ROOTLIBDIR64):
84         $(INS.dir)
86 $(ROOTMANIFESTDIR)/%: ../common/% $(ROOTMANIFESTDIR)
87         $(INS.file)
89 $(ROOTSVCMETHODDIR)/%: ../common/% $(ROOTSVCMETHODDIR)
90         $(INS.file)
92 $(ROOTSVCMETHODDIR) $(ROOTMANIFESTDIR):
93         $(INS.dir)
95 # include library targets
96 include ../../../Makefile.targ
98 objs/%.o pics/%.o: ../common/%.c
99         $(COMPILE.c) -o $@ $<
100         $(POST_PROCESS_O)