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