124bb1048SAlexander Pyhalov# 224bb1048SAlexander Pyhalov# CDDL HEADER START 324bb1048SAlexander Pyhalov# 424bb1048SAlexander Pyhalov# The contents of this file are subject to the terms of the 524bb1048SAlexander Pyhalov# Common Development and Distribution License (the "License"). 624bb1048SAlexander Pyhalov# You may not use this file except in compliance with the License. 724bb1048SAlexander Pyhalov# 824bb1048SAlexander Pyhalov# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 924bb1048SAlexander Pyhalov# or http://www.opensolaris.org/os/licensing. 1024bb1048SAlexander Pyhalov# See the License for the specific language governing permissions 1124bb1048SAlexander Pyhalov# and limitations under the License. 1224bb1048SAlexander Pyhalov# 1324bb1048SAlexander Pyhalov# When distributing Covered Code, include this CDDL HEADER in each 1424bb1048SAlexander Pyhalov# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1524bb1048SAlexander Pyhalov# If applicable, add the following below this CDDL HEADER, with the 1624bb1048SAlexander Pyhalov# fields enclosed by brackets "[]" replaced with your own identifying 1724bb1048SAlexander Pyhalov# information: Portions Copyright [yyyy] [name of copyright owner] 1824bb1048SAlexander Pyhalov# 1924bb1048SAlexander Pyhalov# CDDL HEADER END 2024bb1048SAlexander Pyhalov# 2124bb1048SAlexander Pyhalov# 2224bb1048SAlexander Pyhalov# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 2324bb1048SAlexander Pyhalov# Use is subject to license terms. 2424bb1048SAlexander Pyhalov# 2524bb1048SAlexander Pyhalov 2624bb1048SAlexander Pyhalovinclude $(SRC)/Makefile.master 2724bb1048SAlexander Pyhalov 2824bb1048SAlexander PyhalovMODULE = libpython$(PYTHON_VERSION).so 2924bb1048SAlexander PyhalovMDBTGT = proc 3024bb1048SAlexander PyhalovMODULE_NAME = libpython 3124bb1048SAlexander Pyhalov 3224bb1048SAlexander PyhalovMODSRCS_DIR = ../../../common/modules/libpython 3324bb1048SAlexander Pyhalov 3424bb1048SAlexander PyhalovMODSRCS = libpython.c 3524bb1048SAlexander Pyhalov 3624bb1048SAlexander Pyhalovinclude ../../../../Makefile.cmd 3724bb1048SAlexander Pyhalovinclude ../../Makefile.ia32 3824bb1048SAlexander Pyhalovinclude ../../../Makefile.module 3924bb1048SAlexander Pyhalov 40*a43c88f4SRobert Mustacchi%.o := CPPFLAGS += $(PYCPPFLAGS) 41*a43c88f4SRobert Mustacchi%.ln := CPPFLAGS += $(PYLNFLAGS) 42*a43c88f4SRobert MustacchiLINTFLAGS += -erroff=E_MACRO_REDEFINED 4324bb1048SAlexander Pyhalov 4424bb1048SAlexander Pyhalovdmod/$(MODULE) := LDLIBS += -lproc 4524bb1048SAlexander Pyhalov 4624bb1048SAlexander Pyhalov%.o: $(MODSRCS_DIR)/%.c 4724bb1048SAlexander Pyhalov $(COMPILE.c) $< 4824bb1048SAlexander Pyhalov $(CTFCONVERT_O) 4924bb1048SAlexander Pyhalov 5024bb1048SAlexander Pyhalov%.ln: $(MODSRCS_DIR)/%.c 5124bb1048SAlexander Pyhalov $(LINT.c) -c $< 52