xref: /onnv-gate/usr/src/lib/cfgadm_plugins/sata/Makefile.com (revision 2522:79989c8fe091)
11258Smlf#
21258Smlf# CDDL HEADER START
31258Smlf#
41258Smlf# The contents of this file are subject to the terms of the
51258Smlf# Common Development and Distribution License (the "License").
61258Smlf# You may not use this file except in compliance with the License.
71258Smlf#
81258Smlf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91258Smlf# or http://www.opensolaris.org/os/licensing.
101258Smlf# See the License for the specific language governing permissions
111258Smlf# and limitations under the License.
121258Smlf#
131258Smlf# When distributing Covered Code, include this CDDL HEADER in each
141258Smlf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151258Smlf# If applicable, add the following below this CDDL HEADER, with the
161258Smlf# fields enclosed by brackets "[]" replaced with your own identifying
171258Smlf# information: Portions Copyright [yyyy] [name of copyright owner]
181258Smlf#
191258Smlf# CDDL HEADER END
201258Smlf#
211258Smlf#
22*2522Sraf# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
231258Smlf# Use is subject to license terms.
241258Smlf#
251258Smlf# ident	"%Z%%M%	%I%	%E% SMI"
261258Smlf#
271258Smlf
281258SmlfLIBRARY= sata.a
291258SmlfVERS= .1
301258Smlf
311258SmlfOBJECTS= cfga_sata.o cfga_rcm.o
321258Smlf
331258Smlf# include library definitions
341258Smlfinclude ../../../Makefile.lib
351258Smlf
36*2522SrafSRCDIR =	../common
371258SmlfROOTLIBDIR=	$(ROOT)/usr/lib/cfgadm
381258SmlfROOTLIBDIR64=	$(ROOTLIBDIR)/$(MACH64)
391258Smlf
401258SmlfLIBS=	$(DYNLIB)
411258Smlf
421258SmlfLINTFLAGS +=	-DDEBUG
431258SmlfLINTFLAGS64 +=	-DDEBUG
441258Smlf
451258SmlfCFLAGS +=	$(CCVERBOSE)
461258SmlfCFLAGS64 +=	$(CCVERBOSE)
471258Smlf
481258SmlfLDLIBS +=	-lc -ldevice -ldevinfo -lrcm -lnvpair
491258Smlf
501258Smlf.KEEP_STATE:
511258Smlf
521258Smlfall:	$(LIBS)
531258Smlf
541258Smlflint:	lintcheck
551258Smlf
561258Smlf# Install rules
571258Smlf
581258Smlf$(ROOTLIBDIR)/%: % $(ROOTLIBDIR)
591258Smlf	$(INS.file)
601258Smlf
611258Smlf$(ROOTLIBDIR64)/%: % $(ROOTLIBDIR64)
621258Smlf	$(INS.file)
631258Smlf
641258Smlf$(ROOTLIBDIR) $(ROOTLIBDIR64):
651258Smlf	$(INS.dir)
661258Smlf
671258Smlf# include library targets
681258Smlfinclude ../../../Makefile.targ
691258Smlf
701258Smlfobjs/%.o pics/%.o: ../common/%.c
711258Smlf	$(COMPILE.c) -o $@ $<
721258Smlf	$(POST_PROCESS_O)
73