xref: /illumos-gate/usr/src/lib/pyzfs/py3/Makefile (revision d8154717)
1# CDDL HEADER START
2#
3# This file and its contents are supplied under the terms of the
4# Common Development and Distribution License ("CDDL"), version 1.0.
5# You may only use this file in accordance with the terms of version
6# 1.0 of the CDDL.
7#
8# A full copy of the text of the CDDL should have accompanied this
9# source. A copy of the CDDL is also available via the Internet at
10# http://www.illumos.org/license/CDDL.
11#
12# CDDL HEADER END
13
14#
15# Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
16#
17
18include ../Makefile.com
19include ../../Makefile.lib.64
20
21PYSHEBANG = $(PYTHON3)
22PYVER = $(PYTHON3_VERSION)
23PYSUFFIX = $(PYTHON3_SUFFIX)
24
25LDLIBS64 += -L$(ADJUNCT_PROTO)/usr/lib/$(MACH64)
26MAPFILES= $(SRCDIR)/mapfile-py3
27ROOTPYZFSFILES=	$(PYSRCS:%=$(ROOTLIBDIR)/%)
28$(ROOTLIBDIR)/$(DYNLIB) := FILEMODE= 755
29
30all: $(LIBS)
31install: all $(ROOTLIBS) $(ROOTPYZFSFILES)
32
33$(ROOTLIBDIR)/%.so: %.so
34	$(INS.file)
35
36$(ROOTLIBDIR)/%: ../common/%
37	$(INS.pyfile)
38	$(PYTHON3) -mpy_compile $@
39
40