xref: /illumos-gate/usr/src/lib/pysolaris/py3/Makefile (revision e8921a52)
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
19PYTHON = $(PYTHON3)
20PYTHON_VERSION = $(PYTHON3_VERSION)
21PYTHON_SUFFIX = $(PYTHON3_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	$(PYTHON) -mpy_compile $@
37
38