Makefile revision fbfd10ff571cfd0139aa5127460f1b8a53dac971
2d0611ffc9f91c5fc2ddccb93f9a3d17791ae650takashi#
2d0611ffc9f91c5fc2ddccb93f9a3d17791ae650takashi# CDDL HEADER START
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd#
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd# The contents of this file are subject to the terms of the
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd# Common Development and Distribution License, Version 1.0 only
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd# (the "License"). You may not use this file except in compliance
01f88322d6dd11ab1924b078099e161f2543d76cgryzor# with the License.
01f88322d6dd11ab1924b078099e161f2543d76cgryzor#
01f88322d6dd11ab1924b078099e161f2543d76cgryzor# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
01f88322d6dd11ab1924b078099e161f2543d76cgryzor# or http://www.opensolaris.org/os/licensing.
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd# See the License for the specific language governing permissions
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd# and limitations under the License.
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
#
PROG= availdevs
include ../Makefile.cmd
ROOTCMDDIR= $(ROOTLIB)/zfs
INCS += -I/usr/include/libxml2
#
# There is no lint library for libxml2, so we need to avoid linking against
# it during lint, as well as turning off the warnings lint would generate.
#
LDLIBS += -lzfs_jni -lnvpair -lzfs
all install := LDLIBS += -lxml2
LINTFLAGS += -xerroff=E_NAME_USED_NOT_DEF2
CPPFLAGS += $(INCS) -D_LARGEFILE64_SOURCE=1 -D_REENTRANT
$(NOT_RELEASE_BUILD) CPPFLAGS += -DDEBUG
.KEEP_STATE:
all: $(PROG)
install: all $(ROOTCMD)
clean:
lint: lint_PROG
include ../Makefile.targ