xref: /titanic_53/usr/src/lib/pyzfs/Makefile.com (revision 2fb4439d628ad2df0775287be1abd1ed95e7d267)
114843421SMatthew Ahrens#
214843421SMatthew Ahrens# CDDL HEADER START
314843421SMatthew Ahrens#
414843421SMatthew Ahrens# The contents of this file are subject to the terms of the
514843421SMatthew Ahrens# Common Development and Distribution License (the "License").
614843421SMatthew Ahrens# You may not use this file except in compliance with the License.
714843421SMatthew Ahrens#
814843421SMatthew Ahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
914843421SMatthew Ahrens# or http://www.opensolaris.org/os/licensing.
1014843421SMatthew Ahrens# See the License for the specific language governing permissions
1114843421SMatthew Ahrens# and limitations under the License.
1214843421SMatthew Ahrens#
1314843421SMatthew Ahrens# When distributing Covered Code, include this CDDL HEADER in each
1414843421SMatthew Ahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1514843421SMatthew Ahrens# If applicable, add the following below this CDDL HEADER, with the
1614843421SMatthew Ahrens# fields enclosed by brackets "[]" replaced with your own identifying
1714843421SMatthew Ahrens# information: Portions Copyright [yyyy] [name of copyright owner]
1814843421SMatthew Ahrens#
1914843421SMatthew Ahrens# CDDL HEADER END
2014843421SMatthew Ahrens#
2114843421SMatthew Ahrens#
226d52f363SLori Alt# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
2314843421SMatthew Ahrens#
2414843421SMatthew Ahrens
2514843421SMatthew AhrensLIBRARY =	ioctl.a
2614843421SMatthew AhrensVERS =
2714843421SMatthew AhrensOBJECTS =	ioctl.o
2814843421SMatthew Ahrens
2914843421SMatthew AhrensPYSRCS=		__init__.py util.py dataset.py \
3014843421SMatthew Ahrens	allow.py unallow.py \
31842727c2SChris Kirby	userspace.py groupspace.py holds.py table.py
3214843421SMatthew Ahrens
3314843421SMatthew Ahrens
3414843421SMatthew Ahrensinclude ../../Makefile.lib
3514843421SMatthew Ahrens
3614843421SMatthew AhrensLIBLINKS =
3714843421SMatthew AhrensSRCDIR =	../common
38*2fb4439dSAlexander PyhalovROOTLIBDIR=	$(ROOT)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/zfs
3914843421SMatthew AhrensPYOBJS=		$(PYSRCS:%.py=$(SRCDIR)/%.pyc)
4014843421SMatthew AhrensPYFILES=	$(PYSRCS) $(PYSRCS:%.py=%.pyc)
4114843421SMatthew AhrensROOTPYZFSFILES= $(PYFILES:%=$(ROOTLIBDIR)/%)
4214843421SMatthew Ahrens
4314843421SMatthew AhrensC99MODE=        -xc99=%all
4414843421SMatthew AhrensC99LMODE=       -Xc99=%all
4514843421SMatthew Ahrens
4614843421SMatthew AhrensLIBS =		$(DYNLIB)
47*2fb4439dSAlexander PyhalovLDLIBS +=	-lc -lnvpair -lpython$(PYTHON_VERSION) -lzfs
4814843421SMatthew AhrensCFLAGS +=	$(CCVERBOSE)
497014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
50*2fb4439dSAlexander PyhalovCPPFLAGS +=	-I$(ADJUNCT_PROTO)/usr/include/python$(PYTHON_VERSION)
5114843421SMatthew AhrensCPPFLAGS +=	-I../../../uts/common/fs/zfs
5214843421SMatthew AhrensCPPFLAGS +=	-I../../../common/zfs
5314843421SMatthew Ahrens
5414843421SMatthew Ahrens.KEEP_STATE:
5514843421SMatthew Ahrens
5614843421SMatthew Ahrensall: $(PYOBJS) $(LIBS)
5714843421SMatthew Ahrens
5814843421SMatthew Ahrensinstall: all $(ROOTPYZFSFILES)
5914843421SMatthew Ahrens
6014843421SMatthew Ahrens$(ROOTLIBDIR)/%: %
6114843421SMatthew Ahrens	$(INS.pyfile)
6214843421SMatthew Ahrens
63*2fb4439dSAlexander Pyhalov$(ROOTLIBDIR)/%: ../common/%
64*2fb4439dSAlexander Pyhalov	$(INS.pyfile)
65*2fb4439dSAlexander Pyhalov
6614843421SMatthew Ahrenslint: lintcheck
6714843421SMatthew Ahrens
6814843421SMatthew Ahrensinclude ../../Makefile.targ
69