Makefile.com revision 842727c2f41f01b380de4f5e787d905702870f23
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow#
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow# CDDL HEADER START
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow#
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow# The contents of this file are subject to the terms of the
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow# Common Development and Distribution License (the "License").
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow# You may not use this file except in compliance with the License.
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow#
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow# or http://www.opensolaris.org/os/licensing.
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow# See the License for the specific language governing permissions
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow# and limitations under the License.
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow#
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow# When distributing Covered Code, include this CDDL HEADER in each
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow# If applicable, add the following below this CDDL HEADER, with the
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow# fields enclosed by brackets "[]" replaced with your own identifying
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow# information: Portions Copyright [yyyy] [name of copyright owner]
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow#
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow# CDDL HEADER END
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow#
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow#
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow# Use is subject to license terms.
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow#
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowLIBRARY = ioctl.a
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowVERS =
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowOBJECTS = ioctl.o
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowPYSRCS= __init__.py util.py dataset.py \
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow allow.py unallow.py \
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow userspace.py groupspace.py holds.py table.py
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlowinclude ../../Makefile.lib
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowLIBLINKS =
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowSRCDIR = ../common
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowROOTLIBDIR= $(ROOT)/usr/lib/python2.4/vendor-packages/zfs
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowPYOBJS= $(PYSRCS:%.py=$(SRCDIR)/%.pyc)
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowPYFILES= $(PYSRCS) $(PYSRCS:%.py=%.pyc)
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowROOTPYZFSFILES= $(PYFILES:%=$(ROOTLIBDIR)/%)
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowC99MODE= -xc99=%all
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowC99LMODE= -Xc99=%all
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowLIBS = $(DYNLIB)
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowLDLIBS += -lc -lnvpair -lsec -lidmap -lpython2.4 -lzfs
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowCFLAGS += $(CCVERBOSE)
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowCPPFLAGS += -I/usr/include/python2.4
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowCPPFLAGS += -I../../../uts/common/fs/zfs
2f172c55ef76964744bc62b4500ece87f3089b4dRobert ThurlowCPPFLAGS += -I../../../common/zfs
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow.KEEP_STATE:
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlowall: $(PYOBJS) $(LIBS)
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlowinstall: all $(ROOTPYZFSFILES)
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow$(ROOTLIBDIR)/%: %
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow $(INS.pyfile)
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlowlint: lintcheck
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlowinclude ../../Makefile.targ
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow