dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / lib / cfgadm_plugins / fp / Makefile.com
blobfa2bd75e16ab7ecdfa8ce6c2eaa1206fe92f9b0c
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)
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
62 SVCMETHOD=      fc-fabric
63 ROOTSVCMETHODDIR=       $(ROOT)/lib/svc/method
64 ROOTSVCMETHOD=  $(SVCMETHOD:%=$(ROOTSVCMETHODDIR)/%)
65 $(ROOTSVCMETHOD):= FILEMODE= 555
67 .KEEP_STATE:
69 all:    $(LIBS)
72 # Install rules
74 $(ROOTLIBDIR)/%: % $(ROOTLIBDIR)
75         $(INS.file)
77 $(ROOTLIBDIR64)/%: % $(ROOTLIBDIR64)
78         $(INS.file)
80 $(ROOTLIBDIR) $(ROOTLIBDIR64):
81         $(INS.dir)
83 $(ROOTMANIFESTDIR)/%: ../common/% $(ROOTMANIFESTDIR)
84         $(INS.file)
86 $(ROOTSVCMETHODDIR)/%: ../common/% $(ROOTSVCMETHODDIR)
87         $(INS.file)
89 $(ROOTSVCMETHODDIR) $(ROOTMANIFESTDIR):
90         $(INS.dir)
92 # include library targets
93 include ../../../Makefile.targ
95 objs/%.o pics/%.o: ../common/%.c
96         $(COMPILE.c) -o $@ $<
97         $(POST_PROCESS_O)