xref: /titanic_44/usr/src/lib/pyzfs/Makefile.com (revision 148434217c040ea38dc844384f6ba68d9b325906)
1*14843421SMatthew Ahrens#
2*14843421SMatthew Ahrens# CDDL HEADER START
3*14843421SMatthew Ahrens#
4*14843421SMatthew Ahrens# The contents of this file are subject to the terms of the
5*14843421SMatthew Ahrens# Common Development and Distribution License (the "License").
6*14843421SMatthew Ahrens# You may not use this file except in compliance with the License.
7*14843421SMatthew Ahrens#
8*14843421SMatthew Ahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*14843421SMatthew Ahrens# or http://www.opensolaris.org/os/licensing.
10*14843421SMatthew Ahrens# See the License for the specific language governing permissions
11*14843421SMatthew Ahrens# and limitations under the License.
12*14843421SMatthew Ahrens#
13*14843421SMatthew Ahrens# When distributing Covered Code, include this CDDL HEADER in each
14*14843421SMatthew Ahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*14843421SMatthew Ahrens# If applicable, add the following below this CDDL HEADER, with the
16*14843421SMatthew Ahrens# fields enclosed by brackets "[]" replaced with your own identifying
17*14843421SMatthew Ahrens# information: Portions Copyright [yyyy] [name of copyright owner]
18*14843421SMatthew Ahrens#
19*14843421SMatthew Ahrens# CDDL HEADER END
20*14843421SMatthew Ahrens#
21*14843421SMatthew Ahrens#
22*14843421SMatthew Ahrens# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*14843421SMatthew Ahrens# Use is subject to license terms.
24*14843421SMatthew Ahrens#
25*14843421SMatthew Ahrens
26*14843421SMatthew AhrensLIBRARY =	ioctl.a
27*14843421SMatthew AhrensVERS =
28*14843421SMatthew AhrensOBJECTS =	ioctl.o
29*14843421SMatthew Ahrens
30*14843421SMatthew AhrensPYSRCS=		__init__.py util.py dataset.py \
31*14843421SMatthew Ahrens	allow.py unallow.py \
32*14843421SMatthew Ahrens	userspace.py groupspace.py
33*14843421SMatthew Ahrens
34*14843421SMatthew Ahrens
35*14843421SMatthew Ahrensinclude ../../Makefile.lib
36*14843421SMatthew Ahrens
37*14843421SMatthew AhrensLIBLINKS =
38*14843421SMatthew AhrensSRCDIR =	../common
39*14843421SMatthew AhrensROOTLIBDIR=	$(ROOT)/usr/lib/python2.4/vendor-packages/zfs
40*14843421SMatthew AhrensPYOBJS=		$(PYSRCS:%.py=$(SRCDIR)/%.pyc)
41*14843421SMatthew AhrensPYFILES=	$(PYSRCS) $(PYSRCS:%.py=%.pyc)
42*14843421SMatthew AhrensROOTPYZFSFILES= $(PYFILES:%=$(ROOTLIBDIR)/%)
43*14843421SMatthew Ahrens
44*14843421SMatthew AhrensC99MODE=        -xc99=%all
45*14843421SMatthew AhrensC99LMODE=       -Xc99=%all
46*14843421SMatthew Ahrens
47*14843421SMatthew AhrensLIBS =		$(DYNLIB)
48*14843421SMatthew AhrensLDLIBS +=	-lc -lnvpair -lsec -lidmap -lpython2.4 -lzfs
49*14843421SMatthew AhrensCFLAGS +=	$(CCVERBOSE)
50*14843421SMatthew AhrensCPPFLAGS +=	-I/usr/include/python2.4
51*14843421SMatthew AhrensCPPFLAGS +=	-I../../../uts/common/fs/zfs
52*14843421SMatthew AhrensCPPFLAGS +=	-I../../../common/zfs
53*14843421SMatthew Ahrens
54*14843421SMatthew Ahrens.KEEP_STATE:
55*14843421SMatthew Ahrens
56*14843421SMatthew Ahrensall: $(PYOBJS) $(LIBS)
57*14843421SMatthew Ahrens
58*14843421SMatthew Ahrensinstall: all $(ROOTPYZFSFILES)
59*14843421SMatthew Ahrens
60*14843421SMatthew Ahrens$(ROOTLIBDIR)/%: %
61*14843421SMatthew Ahrens	$(INS.pyfile)
62*14843421SMatthew Ahrens
63*14843421SMatthew Ahrenslint: lintcheck
64*14843421SMatthew Ahrens
65*14843421SMatthew Ahrensinclude ../../Makefile.targ
66