xref: /onnv-gate/usr/src/cmd/availdevs/Makefile (revision 1206:84469f0f684d)
1789Sahrens#
2789Sahrens# CDDL HEADER START
3789Sahrens#
4789Sahrens# The contents of this file are subject to the terms of the
5789Sahrens# Common Development and Distribution License, Version 1.0 only
6789Sahrens# (the "License").  You may not use this file except in compliance
7789Sahrens# with the License.
8789Sahrens#
9789Sahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10789Sahrens# or http://www.opensolaris.org/os/licensing.
11789Sahrens# See the License for the specific language governing permissions
12789Sahrens# and limitations under the License.
13789Sahrens#
14789Sahrens# When distributing Covered Code, include this CDDL HEADER in each
15789Sahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16789Sahrens# If applicable, add the following below this CDDL HEADER, with the
17789Sahrens# fields enclosed by brackets "[]" replaced with your own identifying
18789Sahrens# information: Portions Copyright [yyyy] [name of copyright owner]
19789Sahrens#
20789Sahrens# CDDL HEADER END
21789Sahrens#
22789Sahrens#
23*1206Stalley# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24789Sahrens# Use is subject to license terms.
25789Sahrens#
26789Sahrens# ident	"%Z%%M%	%I%	%E% SMI"
27789Sahrens#
28789Sahrens
29789SahrensPROG=		availdevs
30789Sahrens
31789Sahrensinclude ../Makefile.cmd
32789Sahrens
33789SahrensROOTCMDDIR=	$(ROOTLIB)/zfs
34789Sahrens
35952SeschrockINCS += -I/usr/include/libxml2
36789Sahrens
37952Seschrock#
38952Seschrock# There is no lint library for libxml2, so we need to avoid linking against
39952Seschrock# it during lint, as well as turning off the warnings lint would generate.
40952Seschrock#
41*1206StalleyLDLIBS += -lzfs_jni -lnvpair -lzfs
42952Seschrockall install := LDLIBS += -lxml2
43952SeschrockLINTFLAGS += -xerroff=E_NAME_USED_NOT_DEF2
44952Seschrock
45789SahrensCPPFLAGS += $(INCS) -D_LARGEFILE64_SOURCE=1 -D_REENTRANT
461066Stalley$(NOT_RELEASE_BUILD) CPPFLAGS += -DDEBUG
47789Sahrens
48789Sahrens.KEEP_STATE:
49789Sahrens
50789Sahrensall: $(PROG)
51789Sahrens
52789Sahrensinstall: all $(ROOTCMD)
53789Sahrens
54789Sahrensclean:
55789Sahrens
56952Seschrocklint: lint_PROG
57789Sahrens
58789Sahrensinclude ../Makefile.targ
59