xref: /titanic_41/usr/src/lib/cfgadm_plugins/sata/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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
4066f9d5cbSmlfLINTFLAGS +=	-DDEBUG
4166f9d5cbSmlfLINTFLAGS64 +=	-DDEBUG
4266f9d5cbSmlf
4366f9d5cbSmlfCFLAGS +=	$(CCVERBOSE)
4466f9d5cbSmlfCFLAGS64 +=	$(CCVERBOSE)
4566f9d5cbSmlf
46*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
47*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-char-subscripts
48*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
49*7014882cSRichard Lowe
5066f9d5cbSmlfLDLIBS +=	-lc -ldevice -ldevinfo -lrcm -lnvpair
5166f9d5cbSmlf
5266f9d5cbSmlf.KEEP_STATE:
5366f9d5cbSmlf
5466f9d5cbSmlfall:	$(LIBS)
5566f9d5cbSmlf
5666f9d5cbSmlflint:	lintcheck
5766f9d5cbSmlf
5866f9d5cbSmlf# Install rules
5966f9d5cbSmlf
6066f9d5cbSmlf$(ROOTLIBDIR)/%: % $(ROOTLIBDIR)
6166f9d5cbSmlf	$(INS.file)
6266f9d5cbSmlf
6366f9d5cbSmlf$(ROOTLIBDIR64)/%: % $(ROOTLIBDIR64)
6466f9d5cbSmlf	$(INS.file)
6566f9d5cbSmlf
6666f9d5cbSmlf$(ROOTLIBDIR) $(ROOTLIBDIR64):
6766f9d5cbSmlf	$(INS.dir)
6866f9d5cbSmlf
6966f9d5cbSmlf# include library targets
7066f9d5cbSmlfinclude ../../../Makefile.targ
7166f9d5cbSmlf
7266f9d5cbSmlfobjs/%.o pics/%.o: ../common/%.c
7366f9d5cbSmlf	$(COMPILE.c) -o $@ $<
7466f9d5cbSmlf	$(POST_PROCESS_O)
75