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