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