148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens#
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# CDDL HEADER START
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens#
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# The contents of this file are subject to the terms of the
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# Common Development and Distribution License (the "License").
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# You may not use this file except in compliance with the License.
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens#
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# or http://www.opensolaris.org/os/licensing.
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# See the License for the specific language governing permissions
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# and limitations under the License.
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens#
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# When distributing Covered Code, include this CDDL HEADER in each
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# If applicable, add the following below this CDDL HEADER, with the
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# fields enclosed by brackets "[]" replaced with your own identifying
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# information: Portions Copyright [yyyy] [name of copyright owner]
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens#
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# CDDL HEADER END
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens#
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens#
6d52f363e3b2c0c5da672c5b8c8adec99d345f38Lori Alt# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens#
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensLIBRARY = ioctl.a
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensVERS =
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensOBJECTS = ioctl.o
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensPYSRCS= __init__.py util.py dataset.py \
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens allow.py unallow.py \
842727c2f41f01b380de4f5e787d905702870f23Chris Kirby userspace.py groupspace.py holds.py table.py
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrensinclude ../../Makefile.lib
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensLIBLINKS =
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensSRCDIR = ../common
9f9230833b50b8271840dc2c12bd1e94d9df7d12Alexander PyhalovROOTLIBDIR= $(ROOT)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/zfs
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensPYOBJS= $(PYSRCS:%.py=$(SRCDIR)/%.pyc)
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensPYFILES= $(PYSRCS) $(PYSRCS:%.py=%.pyc)
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensROOTPYZFSFILES= $(PYFILES:%=$(ROOTLIBDIR)/%)
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensC99MODE= -xc99=%all
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensC99LMODE= -Xc99=%all
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensLIBS = $(DYNLIB)
9f9230833b50b8271840dc2c12bd1e94d9df7d12Alexander PyhalovLDLIBS += -lc -lnvpair -lpython$(PYTHON_VERSION) -lzfs
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCFLAGS += $(CCVERBOSE)
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-variable
9f9230833b50b8271840dc2c12bd1e94d9df7d12Alexander PyhalovCPPFLAGS += -I$(ADJUNCT_PROTO)/usr/include/python$(PYTHON_VERSION)
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCPPFLAGS += -I../../../uts/common/fs/zfs
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCPPFLAGS += -I../../../common/zfs
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens.KEEP_STATE:
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrensall: $(PYOBJS) $(LIBS)
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrensinstall: all $(ROOTPYZFSFILES)
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens$(ROOTLIBDIR)/%: %
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens $(INS.pyfile)
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
9f9230833b50b8271840dc2c12bd1e94d9df7d12Alexander Pyhalov$(ROOTLIBDIR)/%: ../common/%
9f9230833b50b8271840dc2c12bd1e94d9df7d12Alexander Pyhalov $(INS.pyfile)
9f9230833b50b8271840dc2c12bd1e94d9df7d12Alexander Pyhalov
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrenslint: lintcheck
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrensinclude ../../Makefile.targ