9894 Deliver python3 modules
[unleashed.git] / usr / src / lib / pysolaris / py3 / Makefile
blob700cc16ca5d85cd84b507fe1931e4f69bc551a8f
1 # CDDL HEADER START
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.
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.
12 # CDDL HEADER END
14 # Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
16 include ../Makefile.com
17 include ../../Makefile.lib.64
19 PYTHON = $(PYTHON3)
20 PYTHON_VERSION = $(PYTHON3_VERSION)
21 PYTHON_SUFFIX = $(PYTHON3_SUFFIX)
23 LDLIBS64 += -L$(ADJUNCT_PROTO)/usr/lib/$(MACH64)
24 MAPFILES= $(SRCDIR)/mapfile-py3
25 ROOTPYSOLFILES= $(PYSRCS:%=$(ROOTLIBDIR)/%)
26 $(ROOTLIBDIR)/$(DYNLIB) := FILEMODE= 755
28 all: $(LIBS)
29 install: all $(ROOTLIBS) $(ROOTPYSOLFILES)
31 $(ROOTLIBDIR)/%.so: %.so
32 $(INS.file)
34 $(ROOTLIBDIR)/%: ../common/%
35 $(INS.pyfile)
36 $(PYTHON) -mpy_compile $@