12fb4439dSAlexander Pyhalov# 22fb4439dSAlexander Pyhalov# CDDL HEADER START 32fb4439dSAlexander Pyhalov# 42fb4439dSAlexander Pyhalov# The contents of this file are subject to the terms of the 52fb4439dSAlexander Pyhalov# Common Development and Distribution License (the "License"). 62fb4439dSAlexander Pyhalov# You may not use this file except in compliance with the License. 72fb4439dSAlexander Pyhalov# 82fb4439dSAlexander Pyhalov# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 92fb4439dSAlexander Pyhalov# or http://www.opensolaris.org/os/licensing. 102fb4439dSAlexander Pyhalov# See the License for the specific language governing permissions 112fb4439dSAlexander Pyhalov# and limitations under the License. 122fb4439dSAlexander Pyhalov# 132fb4439dSAlexander Pyhalov# When distributing Covered Code, include this CDDL HEADER in each 142fb4439dSAlexander Pyhalov# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 152fb4439dSAlexander Pyhalov# If applicable, add the following below this CDDL HEADER, with the 162fb4439dSAlexander Pyhalov# fields enclosed by brackets "[]" replaced with your own identifying 172fb4439dSAlexander Pyhalov# information: Portions Copyright [yyyy] [name of copyright owner] 182fb4439dSAlexander Pyhalov# 192fb4439dSAlexander Pyhalov# CDDL HEADER END 202fb4439dSAlexander Pyhalov# 212fb4439dSAlexander Pyhalov# 222fb4439dSAlexander Pyhalov# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 232fb4439dSAlexander Pyhalov# Use is subject to license terms. 242fb4439dSAlexander Pyhalov# 252fb4439dSAlexander Pyhalov 262fb4439dSAlexander Pyhalovinclude $(SRC)/Makefile.master 272fb4439dSAlexander Pyhalov 282fb4439dSAlexander PyhalovMODULE = libpython$(PYTHON_VERSION).so 292fb4439dSAlexander PyhalovMDBTGT = proc 302fb4439dSAlexander PyhalovMODULE_NAME = libpython 312fb4439dSAlexander Pyhalov 322fb4439dSAlexander PyhalovMODSRCS_DIR = ../../../common/modules/libpython 332fb4439dSAlexander Pyhalov 342fb4439dSAlexander PyhalovMODSRCS = libpython.c 352fb4439dSAlexander Pyhalov 362fb4439dSAlexander Pyhalovinclude ../../../../Makefile.cmd 372fb4439dSAlexander Pyhalovinclude ../../../../Makefile.cmd.64 382fb4439dSAlexander Pyhalovinclude ../../Makefile.amd64 392fb4439dSAlexander Pyhalovinclude ../../../Makefile.module 402fb4439dSAlexander Pyhalov 41*69b0e260SRobert Mustacchi%.o := CPPFLAGS += $(PYCPPFLAGS) 42*69b0e260SRobert Mustacchi%.ln := CPPFLAGS += $(PYLNFLAGS) 43*69b0e260SRobert MustacchiLINTFLAGS += -erroff=E_MACRO_REDEFINED 44*69b0e260SRobert Mustacchi 45*69b0e260SRobert Mustacchi 462fb4439dSAlexander Pyhalovdmod/$(MODULE) := LDLIBS += -lproc 472fb4439dSAlexander Pyhalov 482fb4439dSAlexander Pyhalov%.o: $(MODSRCS_DIR)/%.c 492fb4439dSAlexander Pyhalov $(COMPILE.c) $< 502fb4439dSAlexander Pyhalov $(CTFCONVERT_O) 512fb4439dSAlexander Pyhalov 522fb4439dSAlexander Pyhalov%.ln: $(MODSRCS_DIR)/%.c 532fb4439dSAlexander Pyhalov $(LINT.c) -c $< 54