xref: /titanic_50/usr/src/lib/pylibbe/Makefile.com (revision c78151337e72d64f64eb86808afc3b68f16c91c7)
1f169c0eaSGlenn Lagasse#
2f169c0eaSGlenn Lagasse# CDDL HEADER START
3f169c0eaSGlenn Lagasse#
4f169c0eaSGlenn Lagasse# The contents of this file are subject to the terms of the
5f169c0eaSGlenn Lagasse# Common Development and Distribution License (the "License").
6f169c0eaSGlenn Lagasse# You may not use this file except in compliance with the License.
7f169c0eaSGlenn Lagasse#
8f169c0eaSGlenn Lagasse# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9f169c0eaSGlenn Lagasse# or http://www.opensolaris.org/os/licensing.
10f169c0eaSGlenn Lagasse# See the License for the specific language governing permissions
11f169c0eaSGlenn Lagasse# and limitations under the License.
12f169c0eaSGlenn Lagasse#
13f169c0eaSGlenn Lagasse# When distributing Covered Code, include this CDDL HEADER in each
14f169c0eaSGlenn Lagasse# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15f169c0eaSGlenn Lagasse# If applicable, add the following below this CDDL HEADER, with the
16f169c0eaSGlenn Lagasse# fields enclosed by brackets "[]" replaced with your own identifying
17f169c0eaSGlenn Lagasse# information: Portions Copyright [yyyy] [name of copyright owner]
18f169c0eaSGlenn Lagasse#
19f169c0eaSGlenn Lagasse# CDDL HEADER END
20f169c0eaSGlenn Lagasse#
21f169c0eaSGlenn Lagasse
22f169c0eaSGlenn Lagasse#
23f169c0eaSGlenn Lagasse# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
24f5c2e7eaSTheo Schlossnagle# Copyright 2012 OmniTI Computer Consulting, Inc.  All rights reserved.
258cfa78e6SAndy Fiddaman# Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
26f169c0eaSGlenn Lagasse#
27f169c0eaSGlenn Lagasse
28f169c0eaSGlenn LagasseLIBRARY =	libbe_py.a
29f169c0eaSGlenn LagasseVERS =
30f169c0eaSGlenn LagasseOBJECTS =	libbe_py.o
31f169c0eaSGlenn Lagasse
32f169c0eaSGlenn Lagasseinclude ../../Makefile.lib
33f169c0eaSGlenn Lagasse
34f169c0eaSGlenn LagasseLIBLINKS =
35f169c0eaSGlenn LagasseSRCDIR =	../common
36*c7815133SAndy FiddamanROOTLIBDIR=	$(ROOT)/usr/lib/python$(PYVER)/vendor-packages
37*c7815133SAndy FiddamanROOTLIBDIR64=	$(ROOT)/usr/lib/python$(PYVER)/vendor-packages/64
388cfa78e6SAndy FiddamanPYFILES=	$(PYSRCS)
39f169c0eaSGlenn LagasseROOTPYBEFILES=  $(PYFILES:%=$(ROOTLIBDIR)/%)
40f169c0eaSGlenn Lagasse
41f169c0eaSGlenn LagasseC99MODE=        $(C99_ENABLE)
42f169c0eaSGlenn Lagasse
43f169c0eaSGlenn LagasseLIBS =		$(DYNLIB)
44f169c0eaSGlenn LagasseLDLIBS +=	-lbe -lnvpair -lc
45f169c0eaSGlenn LagasseCFLAGS +=	$(CCVERBOSE)
468cfa78e6SAndy FiddamanCPPFLAGS +=	-D_FILE_OFFSET_BITS=64 -I../../libbe/common \
47*c7815133SAndy Fiddaman	-I$(ADJUNCT_PROTO)/usr/include/python$(PYVER)$(PYSUFFIX)
48f169c0eaSGlenn Lagasse
49f169c0eaSGlenn Lagasse.KEEP_STATE:
50f169c0eaSGlenn Lagasse
51*c7815133SAndy Fiddamanall install := LDLIBS += -lpython$(PYVER)$(PYSUFFIX)
52f169c0eaSGlenn Lagasse
53f169c0eaSGlenn Lagasseall: $(PYOBJS) $(LIBS)
54f169c0eaSGlenn Lagasse
55f169c0eaSGlenn Lagasseinstall: all $(ROOTPYBEFILES)
56f169c0eaSGlenn Lagasse
57f169c0eaSGlenn Lagasselint: lintcheck
58f169c0eaSGlenn Lagasse
59f169c0eaSGlenn Lagasseinclude ../../Makefile.targ
60