xref: /illumos-gate/usr/src/cmd/mdb/intel/amd64/libpython/Makefile (revision d17be682a2c70b4505d43c830bbd2603da11918d)
19f923083SAlexander Pyhalov#
29f923083SAlexander Pyhalov# CDDL HEADER START
39f923083SAlexander Pyhalov#
49f923083SAlexander Pyhalov# The contents of this file are subject to the terms of the
59f923083SAlexander Pyhalov# Common Development and Distribution License (the "License").
69f923083SAlexander Pyhalov# You may not use this file except in compliance with the License.
79f923083SAlexander Pyhalov#
89f923083SAlexander Pyhalov# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99f923083SAlexander Pyhalov# or http://www.opensolaris.org/os/licensing.
109f923083SAlexander Pyhalov# See the License for the specific language governing permissions
119f923083SAlexander Pyhalov# and limitations under the License.
129f923083SAlexander Pyhalov#
139f923083SAlexander Pyhalov# When distributing Covered Code, include this CDDL HEADER in each
149f923083SAlexander Pyhalov# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159f923083SAlexander Pyhalov# If applicable, add the following below this CDDL HEADER, with the
169f923083SAlexander Pyhalov# fields enclosed by brackets "[]" replaced with your own identifying
179f923083SAlexander Pyhalov# information: Portions Copyright [yyyy] [name of copyright owner]
189f923083SAlexander Pyhalov#
199f923083SAlexander Pyhalov# CDDL HEADER END
209f923083SAlexander Pyhalov#
219f923083SAlexander Pyhalov#
229f923083SAlexander Pyhalov# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
239f923083SAlexander Pyhalov# Use is subject to license terms.
249f923083SAlexander Pyhalov#
259f923083SAlexander Pyhalov
269f923083SAlexander Pyhalovinclude $(SRC)/Makefile.master
279f923083SAlexander Pyhalov
28*70143b9fSRichard LoweMODULE = libpython$(PYTHON3_VERSION).so
299f923083SAlexander PyhalovMDBTGT = proc
309f923083SAlexander PyhalovMODULE_NAME = libpython
319f923083SAlexander Pyhalov
329f923083SAlexander PyhalovMODSRCS_DIR = ../../../common/modules/libpython
339f923083SAlexander Pyhalov
349f923083SAlexander PyhalovMODSRCS = libpython.c
359f923083SAlexander Pyhalov
369f923083SAlexander Pyhalovinclude ../../../../Makefile.cmd
379f923083SAlexander Pyhalovinclude ../../../../Makefile.cmd.64
389f923083SAlexander Pyhalovinclude ../../Makefile.amd64
399f923083SAlexander Pyhalovinclude ../../../Makefile.module
409f923083SAlexander Pyhalov
41259e5438SRobert Mustacchi%.o := CPPFLAGS += $(PYCPPFLAGS)
42259e5438SRobert Mustacchi
439f923083SAlexander Pyhalovdmod/$(MODULE) := LDLIBS += -lproc
449f923083SAlexander Pyhalov
459f923083SAlexander Pyhalov%.o: $(MODSRCS_DIR)/%.c
469f923083SAlexander Pyhalov	$(COMPILE.c) $<
479f923083SAlexander Pyhalov	$(CTFCONVERT_O)
48