166f9d5cbSmlf#
266f9d5cbSmlf# CDDL HEADER START
366f9d5cbSmlf#
466f9d5cbSmlf# The contents of this file are subject to the terms of the
566f9d5cbSmlf# Common Development and Distribution License (the "License").
666f9d5cbSmlf# You may not use this file except in compliance with the License.
766f9d5cbSmlf#
866f9d5cbSmlf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
966f9d5cbSmlf# or http://www.opensolaris.org/os/licensing.
1066f9d5cbSmlf# See the License for the specific language governing permissions
1166f9d5cbSmlf# and limitations under the License.
1266f9d5cbSmlf#
1366f9d5cbSmlf# When distributing Covered Code, include this CDDL HEADER in each
1466f9d5cbSmlf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1566f9d5cbSmlf# If applicable, add the following below this CDDL HEADER, with the
1666f9d5cbSmlf# fields enclosed by brackets "[]" replaced with your own identifying
1766f9d5cbSmlf# information: Portions Copyright [yyyy] [name of copyright owner]
1866f9d5cbSmlf#
1966f9d5cbSmlf# CDDL HEADER END
2066f9d5cbSmlf#
2166f9d5cbSmlf#
22f808c858Sraf# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2366f9d5cbSmlf# Use is subject to license terms.
2466f9d5cbSmlf#
2566f9d5cbSmlf
2666f9d5cbSmlfLIBRARY= sata.a
2766f9d5cbSmlfVERS= .1
2866f9d5cbSmlf
2966f9d5cbSmlfOBJECTS= cfga_sata.o cfga_rcm.o
3066f9d5cbSmlf
3166f9d5cbSmlf# include library definitions
3266f9d5cbSmlfinclude ../../../Makefile.lib
3366f9d5cbSmlf
34f808c858SrafSRCDIR =	../common
3566f9d5cbSmlfROOTLIBDIR=	$(ROOT)/usr/lib/cfgadm
3666f9d5cbSmlfROOTLIBDIR64=	$(ROOTLIBDIR)/$(MACH64)
3766f9d5cbSmlf
3866f9d5cbSmlfLIBS=	$(DYNLIB)
3966f9d5cbSmlf
4066f9d5cbSmlf
4166f9d5cbSmlfCFLAGS +=	$(CCVERBOSE)
4266f9d5cbSmlfCFLAGS64 +=	$(CCVERBOSE)
4366f9d5cbSmlf
447014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
457014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-char-subscripts
46*d3b5f563SJohn LevonCERRWARN +=	$(CNOWARN_UNINIT)
477014882cSRichard Lowe
4866f9d5cbSmlfLDLIBS +=	-lc -ldevice -ldevinfo -lrcm -lnvpair
4966f9d5cbSmlf
5066f9d5cbSmlf.KEEP_STATE:
5166f9d5cbSmlf
5266f9d5cbSmlfall:	$(LIBS)
5366f9d5cbSmlf
5466f9d5cbSmlf
5566f9d5cbSmlf# Install rules
5666f9d5cbSmlf
5766f9d5cbSmlf$(ROOTLIBDIR)/%: % $(ROOTLIBDIR)
5866f9d5cbSmlf	$(INS.file)
5966f9d5cbSmlf
6066f9d5cbSmlf$(ROOTLIBDIR64)/%: % $(ROOTLIBDIR64)
6166f9d5cbSmlf	$(INS.file)
6266f9d5cbSmlf
6366f9d5cbSmlf$(ROOTLIBDIR) $(ROOTLIBDIR64):
6466f9d5cbSmlf	$(INS.dir)
6566f9d5cbSmlf
6666f9d5cbSmlf# include library targets
6766f9d5cbSmlfinclude ../../../Makefile.targ
6866f9d5cbSmlf
6966f9d5cbSmlfobjs/%.o pics/%.o: ../common/%.c
7066f9d5cbSmlf	$(COMPILE.c) -o $@ $<
7166f9d5cbSmlf	$(POST_PROCESS_O)
72