xref: /illumos-gate/usr/src/lib/pysolaris/py3b/Makefile (revision 45ede40b)
1*45ede40bSAndy Fiddaman# CDDL HEADER START
2*45ede40bSAndy Fiddaman#
3*45ede40bSAndy Fiddaman# This file and its contents are supplied under the terms of the
4*45ede40bSAndy Fiddaman# Common Development and Distribution License ("CDDL"), version 1.0.
5*45ede40bSAndy Fiddaman# You may only use this file in accordance with the terms of version
6*45ede40bSAndy Fiddaman# 1.0 of the CDDL.
7*45ede40bSAndy Fiddaman#
8*45ede40bSAndy Fiddaman# A full copy of the text of the CDDL should have accompanied this
9*45ede40bSAndy Fiddaman# source. A copy of the CDDL is also available via the Internet at
10*45ede40bSAndy Fiddaman# http://www.illumos.org/license/CDDL.
11*45ede40bSAndy Fiddaman#
12*45ede40bSAndy Fiddaman# CDDL HEADER END
13*45ede40bSAndy Fiddaman
14*45ede40bSAndy Fiddaman# Copyright 2021 OmniOS Community Edition (OmniOSce) Association.
15*45ede40bSAndy Fiddaman
16*45ede40bSAndy Fiddamaninclude ../Makefile.com
17*45ede40bSAndy Fiddamaninclude ../../Makefile.lib.64
18*45ede40bSAndy Fiddaman
19*45ede40bSAndy FiddamanPYSHEBANG = $(PYTHON3b)
20*45ede40bSAndy FiddamanPYVER = $(PYTHON3b_VERSION)
21*45ede40bSAndy FiddamanPYSUFFIX = $(PYTHON3b_SUFFIX)
22*45ede40bSAndy Fiddaman
23*45ede40bSAndy FiddamanLDLIBS64 += -L$(ADJUNCT_PROTO)/usr/lib/$(MACH64)
24*45ede40bSAndy FiddamanMAPFILES= $(SRCDIR)/mapfile-py3
25*45ede40bSAndy FiddamanROOTPYSOLFILES=	$(PYSRCS:%=$(ROOTLIBDIR)/%)
26*45ede40bSAndy Fiddaman$(ROOTLIBDIR)/$(DYNLIB) := FILEMODE= 755
27*45ede40bSAndy Fiddaman
28*45ede40bSAndy Fiddamanall: $(LIBS)
29*45ede40bSAndy Fiddamaninstall: all $(ROOTLIBS) $(ROOTPYSOLFILES)
30*45ede40bSAndy Fiddaman
31*45ede40bSAndy Fiddaman$(ROOTLIBDIR)/%.so: %.so
32*45ede40bSAndy Fiddaman	$(INS.file)
33*45ede40bSAndy Fiddaman
34*45ede40bSAndy Fiddaman$(ROOTLIBDIR)/%: ../common/%
35*45ede40bSAndy Fiddaman	$(INS.pyfile)
36*45ede40bSAndy Fiddaman	$(PYTHON3b) -mpy_compile $@
37*45ede40bSAndy Fiddaman
38