xref: /titanic_44/usr/src/lib/libdiskmgt/Makefile.com (revision 22ca5eba2a84a9612aa439c234327fda99608f01)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5f808c858Sraf# Common Development and Distribution License (the "License").
6f808c858Sraf# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
21*22ca5ebaSYuri Pankov
227c478bd9Sstevel@tonic-gate#
232174cb7bSVirginia Wray# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate# Use is subject to license terms.
25*22ca5ebaSYuri Pankov# Copyright 2016 Nexenta Systems, Inc.
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gateLIBRARY =	libdiskmgt.a
297c478bd9Sstevel@tonic-gateVERS =		.1
30*22ca5ebaSYuri PankovOBJECTS =	alias.o \
31*22ca5ebaSYuri Pankov		assoc_types.o \
32*22ca5ebaSYuri Pankov		bus.o \
33*22ca5ebaSYuri Pankov		cache.o \
34*22ca5ebaSYuri Pankov		controller.o \
35*22ca5ebaSYuri Pankov		drive.o \
36*22ca5ebaSYuri Pankov		entry.o \
37*22ca5ebaSYuri Pankov		events.o \
38*22ca5ebaSYuri Pankov		findevs.o \
39*22ca5ebaSYuri Pankov		inuse_dump.o \
40*22ca5ebaSYuri Pankov		inuse_fs.o \
41*22ca5ebaSYuri Pankov		inuse_lu.o \
42*22ca5ebaSYuri Pankov		inuse_mnt.o \
43*22ca5ebaSYuri Pankov		inuse_vxvm.o \
44*22ca5ebaSYuri Pankov		inuse_zpool.o \
45*22ca5ebaSYuri Pankov		media.o \
46*22ca5ebaSYuri Pankov		partition.o \
47*22ca5ebaSYuri Pankov		path.o \
48*22ca5ebaSYuri Pankov		slice.o
497c478bd9Sstevel@tonic-gate
507c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gateLIBS =		$(DYNLIB) $(LINTLIB)
532174cb7bSVirginia Wrayi386_LDLIBS =   -lfdisk
542174cb7bSVirginia Wraysparc_LDLIBS =
557c478bd9Sstevel@tonic-gateLDLIBS +=       -ldevinfo -ladm -ldevid -lkstat -lsysevent \
562174cb7bSVirginia Wray		-lnvpair -lefi -lc $($(MACH)_LDLIBS)
57eb4a63c6SJiri CervenkaDYNFLAGS +=	-R/opt/VRTSvxvm/lib
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gateSRCDIR =	../common
60f808c858Sraf$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
617c478bd9Sstevel@tonic-gate
627c478bd9Sstevel@tonic-gateCFLAGS +=	$(CCVERBOSE)
637014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-switch
647014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
657014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
667c478bd9Sstevel@tonic-gateCPPFLAGS +=	-D_REENTRANT -I$(SRC)/lib/libdiskmgt/common
677c478bd9Sstevel@tonic-gate
687c478bd9Sstevel@tonic-gate.KEEP_STATE:
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gateall: $(LIBS)
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gatelint: lintcheck
737c478bd9Sstevel@tonic-gate
747c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ
75