xref: /illumos-gate/usr/src/lib/pysolaris/py3b/Makefile (revision 689b9301078f0c35c7f198fcee8032a0d30eff3a)
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# Copyright 2021 OmniOS Community Edition (OmniOSce) Association.
15
16include ../Makefile.com
17include ../../Makefile.lib.64
18
19PYSHEBANG = $(PYTHON3b)
20PYVER = $(PYTHON3b_VERSION)
21PYSUFFIX = $(PYTHON3b_SUFFIX)
22
23LDLIBS64 += -L$(ADJUNCT_PROTO)/usr/lib/$(MACH64)
24MAPFILES= $(SRCDIR)/mapfile-py3
25ROOTPYSOLFILES=	$(PYSRCS:%=$(ROOTLIBDIR)/%)
26$(ROOTLIBDIR)/$(DYNLIB) := FILEMODE= 755
27
28all: $(LIBS)
29install: all $(ROOTLIBS) $(ROOTPYSOLFILES)
30
31$(ROOTLIBDIR)/%.so: %.so
32	$(INS.file)
33
34$(ROOTLIBDIR)/%: ../common/%
35	$(INS.pyfile)
36	$(PYTHON3b) -mpy_compile $@
37
38