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. 23e8921a52SAndy Fiddaman# Copyright 2018 OmniOS Community Edition (OmniOSce) Association. 243a972b22SJohn Levon# Copyright (c) 2018, Joyent, Inc. 2514843421SMatthew Ahrens# 2614843421SMatthew Ahrens 2714843421SMatthew AhrensLIBRARY = ioctl.a 2814843421SMatthew AhrensVERS = 2914843421SMatthew AhrensOBJECTS = ioctl.o 3014843421SMatthew Ahrens 3114843421SMatthew AhrensPYSRCS= __init__.py util.py dataset.py \ 32e8921a52SAndy Fiddaman allow.py unallow.py \ 33e8921a52SAndy Fiddaman userspace.py groupspace.py holds.py table.py 3414843421SMatthew Ahrens 3514843421SMatthew Ahrensinclude ../../Makefile.lib 3614843421SMatthew Ahrens 37e8921a52SAndy FiddamanLIBLINKS = 3814843421SMatthew AhrensSRCDIR = ../common 39d8154717SAndy FiddamanROOTLIBDIR= $(ROOT)/usr/lib/python$(PYVER)/vendor-packages/zfs 40e8921a52SAndy FiddamanROOTLIBDIR64= $(ROOTLIBDIR)/64 4114843421SMatthew AhrensPYOBJS= $(PYSRCS:%.py=$(SRCDIR)/%.pyc) 4214843421SMatthew AhrensPYFILES= $(PYSRCS) $(PYSRCS:%.py=%.pyc) 4314843421SMatthew AhrensROOTPYZFSFILES= $(PYFILES:%=$(ROOTLIBDIR)/%) 4414843421SMatthew Ahrens 45bd0ce624SYuri PankovCSTD= $(CSTD_GNU99) 4614843421SMatthew Ahrens 4714843421SMatthew AhrensLIBS = $(DYNLIB) 48d8154717SAndy FiddamanLDLIBS += -lc -lnvpair -lpython$(PYVER)$(PYSUFFIX) -lzfs 49*5801b0f0SToomas SoomeNATIVE_LIBS += libpython$(PYVER)$(PYSUFFIX).so 5014843421SMatthew AhrensCFLAGS += $(CCVERBOSE) 517014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 52e8921a52SAndy FiddamanCPPFLAGS += \ 53d8154717SAndy Fiddaman -I$(ADJUNCT_PROTO)/usr/include/python$(PYVER)$(PYSUFFIX) 5414843421SMatthew AhrensCPPFLAGS += -I../../../uts/common/fs/zfs 5514843421SMatthew AhrensCPPFLAGS += -I../../../common/zfs 5614843421SMatthew Ahrens 573a972b22SJohn Levon# needs work 583a972b22SJohn LevonSMOFF += all_func_returns 593a972b22SJohn Levon 6014843421SMatthew Ahrens.KEEP_STATE: 6114843421SMatthew Ahrens 62e8921a52SAndy Fiddamanall: 6314843421SMatthew Ahrens 6414843421SMatthew Ahrens$(ROOTLIBDIR)/%: % 6514843421SMatthew Ahrens $(INS.pyfile) 6614843421SMatthew Ahrens 679f923083SAlexander Pyhalov$(ROOTLIBDIR)/%: ../common/% 689f923083SAlexander Pyhalov $(INS.pyfile) 699f923083SAlexander Pyhalov 70e8921a52SAndy Fiddaman$(ROOTLIBDIR64)/%: % 71e8921a52SAndy Fiddaman $(INS.pyfile) 72e8921a52SAndy Fiddaman 73e8921a52SAndy Fiddaman$(ROOTLIBDIR64)/%: ../common/% 74e8921a52SAndy Fiddaman $(INS.pyfile) 75e8921a52SAndy Fiddaman 7614843421SMatthew Ahrensinclude ../../Makefile.targ 77