xref: /illumos-gate/usr/src/lib/pysolaris/Makefile.com (revision 241c90a06e8d1708235651863df515a2d522a03a)
1e4d060fbSSam Falkner#
2e4d060fbSSam Falkner# CDDL HEADER START
3e4d060fbSSam Falkner#
4e4d060fbSSam Falkner# The contents of this file are subject to the terms of the
5e4d060fbSSam Falkner# Common Development and Distribution License (the "License").
6e4d060fbSSam Falkner# You may not use this file except in compliance with the License.
7e4d060fbSSam Falkner#
8e4d060fbSSam Falkner# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e4d060fbSSam Falkner# or http://www.opensolaris.org/os/licensing.
10e4d060fbSSam Falkner# See the License for the specific language governing permissions
11e4d060fbSSam Falkner# and limitations under the License.
12e4d060fbSSam Falkner#
13e4d060fbSSam Falkner# When distributing Covered Code, include this CDDL HEADER in each
14e4d060fbSSam Falkner# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15e4d060fbSSam Falkner# If applicable, add the following below this CDDL HEADER, with the
16e4d060fbSSam Falkner# fields enclosed by brackets "[]" replaced with your own identifying
17e4d060fbSSam Falkner# information: Portions Copyright [yyyy] [name of copyright owner]
18e4d060fbSSam Falkner#
19e4d060fbSSam Falkner# CDDL HEADER END
20e4d060fbSSam Falkner#
21e4d060fbSSam Falkner#
226d52f363SLori Alt# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
23e8921a52SAndy Fiddaman# Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
24e4d060fbSSam Falkner#
25e4d060fbSSam Falkner
26e4d060fbSSam FalknerLIBRARY =	misc.a
27e4d060fbSSam FalknerVERS =
28e4d060fbSSam FalknerOBJECTS =	misc.o
29e4d060fbSSam Falkner
30e4d060fbSSam FalknerPYSRCS=		__init__.py
31e4d060fbSSam Falkner
32e4d060fbSSam Falknerinclude ../../Makefile.lib
33e4d060fbSSam Falkner
34e4d060fbSSam FalknerLIBLINKS =
35e4d060fbSSam FalknerSRCDIR =	../common
36d8154717SAndy FiddamanROOTLIBDIR=	$(ROOT)/usr/lib/python$(PYVER)/vendor-packages/solaris
37e8921a52SAndy FiddamanROOTLIBDIR64=	$(ROOTLIBDIR)/64
38e4d060fbSSam FalknerPYOBJS=		$(PYSRCS:%.py=$(SRCDIR)/%.pyc)
39e4d060fbSSam FalknerPYFILES=	$(PYSRCS) $(PYSRCS:%.py=%.pyc)
40e4d060fbSSam FalknerROOTPYSOLFILES=	$(PYFILES:%=$(ROOTLIBDIR)/%)
41e4d060fbSSam Falkner
42bd0ce624SYuri PankovCSTD=		$(CSTD_GNU99)
43e4d060fbSSam Falkner
44e4d060fbSSam FalknerLIBS =		$(DYNLIB)
45d8154717SAndy FiddamanLDLIBS +=	-lc -lsec -lidmap -lpython$(PYVER)$(PYSUFFIX)
46*5801b0f0SToomas SoomeNATIVE_LIBS +=	libpython$(PYVER)$(PYSUFFIX).so
47e4d060fbSSam FalknerCFLAGS +=	$(CCVERBOSE)
487014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
49e8921a52SAndy FiddamanCPPFLAGS +=	\
50d8154717SAndy Fiddaman	-I$(ADJUNCT_PROTO)/usr/include/python$(PYVER)$(PYSUFFIX)
51e8921a52SAndy Fiddaman
52e8921a52SAndy Fiddamanall:
53e4d060fbSSam Falkner
54e4d060fbSSam Falkner.KEEP_STATE:
55e4d060fbSSam Falkner
56e4d060fbSSam Falkner$(ROOTLIBDIR)/%: %
57e4d060fbSSam Falkner	$(INS.pyfile)
58e4d060fbSSam Falkner
599f923083SAlexander Pyhalov$(ROOTLIBDIR)/%: ../common/%
609f923083SAlexander Pyhalov	$(INS.pyfile)
619f923083SAlexander Pyhalov
62e4d060fbSSam Falknerinclude ../../Makefile.targ
63