8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / lib / cfgadm_plugins / fp / Makefile.com
blobc18d3323d33da2a5bdbf2b2705c7519fa5719f28
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.
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)
42 LINTFLAGS +=    -DDEBUG
43 LINTFLAGS64 +=  -DDEBUG
45 CFLAGS +=       $(CCVERBOSE)
46 CFLAGS64 +=     $(CCVERBOSE)
48 CERRWARN +=     -_gcc=-Wno-parentheses
49 CERRWARN +=     -_gcc=-Wno-char-subscripts
50 CERRWARN +=     -_gcc=-Wno-uninitialized
51 CERRWARN +=     -_gcc=-Wno-switch
52 CERRWARN +=     -_gcc=-Wno-address
54 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
56 LINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
57 LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
58 LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
59 LINTFLAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
60 LINTFLAGS += -erroff=E_SEC_CREAT_WITHOUT_MODE
61 LINTFLAGS64 += $(LINTFLAGS)
63 LDLIBS +=       -lc -ldevice -ldevinfo -lrcm
64 LDLIBS +=       -lHBAAPI -lgen
66 MANIFEST=       devices-fc-fabric.xml
67 ROOTMANIFESTDIR=        $(ROOT)/lib/svc/manifest/system/device
68 ROOTMANIFEST=   $(MANIFEST:%=$(ROOTMANIFESTDIR)/%)
69 $(ROOTMANIFEST) := FILEMODE= 444
71 SVCMETHOD=      fc-fabric
72 ROOTSVCMETHODDIR=       $(ROOT)/lib/svc/method
73 ROOTSVCMETHOD=  $(SVCMETHOD:%=$(ROOTSVCMETHODDIR)/%)
74 $(ROOTSVCMETHOD):= FILEMODE= 555
76 .KEEP_STATE:
78 all:    $(LIBS)
80 lint:   lintcheck
82 # Install rules
84 $(ROOTLIBDIR)/%: % $(ROOTLIBDIR)
85         $(INS.file)
87 $(ROOTLIBDIR64)/%: % $(ROOTLIBDIR64)
88         $(INS.file)
90 $(ROOTLIBDIR) $(ROOTLIBDIR64):
91         $(INS.dir)
93 $(ROOTMANIFESTDIR)/%: ../common/% $(ROOTMANIFESTDIR)
94         $(INS.file)
96 $(ROOTSVCMETHODDIR)/%: ../common/% $(ROOTSVCMETHODDIR)
97         $(INS.file)
99 $(ROOTSVCMETHODDIR) $(ROOTMANIFESTDIR):
100         $(INS.dir)
102 # include library targets
103 include ../../../Makefile.targ
105 objs/%.o pics/%.o: ../common/%.c
106         $(COMPILE.c) -o $@ $<
107         $(POST_PROCESS_O)