xref: /illumos-gate/usr/src/lib/pyzfs/py3b/Makefile (revision dd72704bd9e794056c558153663c739e2012d721)
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 2021 OmniOS Community Edition (OmniOSce) Association.
16#
17
18include ../Makefile.com
19include ../../Makefile.lib.64
20
21PYSHEBANG = $(PYTHON3b)
22PYVER = $(PYTHON3b_VERSION)
23PYSUFFIX = $(PYTHON3b_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	$(PYTHON3b) -mpy_compile $@
39
40