1ea394cb0Sjohansen#
2ea394cb0Sjohansen# CDDL HEADER START
3ea394cb0Sjohansen#
4ea394cb0Sjohansen# The contents of this file are subject to the terms of the
5ea394cb0Sjohansen# Common Development and Distribution License (the "License").
6ea394cb0Sjohansen# You may not use this file except in compliance with the License.
7ea394cb0Sjohansen#
8ea394cb0Sjohansen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9ea394cb0Sjohansen# or http://www.opensolaris.org/os/licensing.
10ea394cb0Sjohansen# See the License for the specific language governing permissions
11ea394cb0Sjohansen# and limitations under the License.
12ea394cb0Sjohansen#
13ea394cb0Sjohansen# When distributing Covered Code, include this CDDL HEADER in each
14ea394cb0Sjohansen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15ea394cb0Sjohansen# If applicable, add the following below this CDDL HEADER, with the
16ea394cb0Sjohansen# fields enclosed by brackets "[]" replaced with your own identifying
17ea394cb0Sjohansen# information: Portions Copyright [yyyy] [name of copyright owner]
18ea394cb0Sjohansen#
19ea394cb0Sjohansen# CDDL HEADER END
20ea394cb0Sjohansen#
21ea394cb0Sjohansen#
22ea394cb0Sjohansen# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23ea394cb0Sjohansen# Use is subject to license terms.
24ea394cb0Sjohansen#
25ea394cb0Sjohansen
269f923083SAlexander Pyhalovinclude $(SRC)/Makefile.master
279f923083SAlexander Pyhalov
28*70143b9fSRichard LoweMODULE = libpython$(PYTHON3_VERSION).so
29ea394cb0SjohansenMDBTGT = proc
309f923083SAlexander PyhalovMODULE_NAME = libpython
31ea394cb0Sjohansen
329f923083SAlexander PyhalovMODSRCS_DIR = ../../../common/modules/libpython
33ea394cb0Sjohansen
349f923083SAlexander PyhalovMODSRCS = libpython.c
35ea394cb0Sjohansen
36ea394cb0Sjohanseninclude ../../../../Makefile.cmd
37ea394cb0Sjohanseninclude ../../../../Makefile.cmd.64
38ea394cb0Sjohanseninclude ../../Makefile.amd64
39ea394cb0Sjohanseninclude ../../../Makefile.module
40ea394cb0Sjohansen
41259e5438SRobert Mustacchi%.o := CPPFLAGS += $(PYCPPFLAGS)
42259e5438SRobert Mustacchi
43ea394cb0Sjohansendmod/$(MODULE) := LDLIBS += -lproc
44ea394cb0Sjohansen
45ea394cb0Sjohansen%.o: $(MODSRCS_DIR)/%.c
46ea394cb0Sjohansen	$(COMPILE.c) $<
47ea394cb0Sjohansen	$(CTFCONVERT_O)
48