1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A#
2N/A# Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/A
1N/A# When building libperl.so, hidden command and dependency checking is OK.
1N/A.KEEP_STATE:
1N/A
1N/A# Library and version.
1N/ALIBRARY = libperl.a
1N/AVERS = .1
1N/A
1N/A# Objects comprising libperl.
1N/AOBJECTS = \
1N/A av.o \
1N/A deb.o \
1N/A doio.o \
1N/A doop.o \
1N/A dump.o \
1N/A globals.o \
1N/A gv.o \
1N/A hv.o \
1N/A locale.o \
1N/A mg.o \
1N/A numeric.o \
1N/A op.o \
1N/A pad.o \
1N/A perl.o \
1N/A perlio.o \
1N/A perly.o \
1N/A pp.o \
1N/A pp_ctl.o \
1N/A pp_hot.o \
1N/A pp_pack.o \
1N/A pp_sort.o \
1N/A pp_sys.o \
1N/A reentr.o \
1N/A regcomp.o \
1N/A regexec.o \
1N/A run.o \
1N/A scope.o \
1N/A sv.o \
1N/A taint.o \
1N/A toke.o \
1N/A universal.o \
1N/A utf8.o \
1N/A util.o \
1N/A xsutils.o
1N/A
1N/A#
1N/A# Some of the Makefile.master and Makefile.lib flags are overridden by
1N/A# ../Makefile.perlcfg which is in turn generated from config.sh by
1N/A# ../extract_config.sh - check there first before overriding anything in this
1N/A# Makefile.
1N/A#
1N/Ainclude ../../../../lib/Makefile.lib
1N/Ainclude ../Makefile.perlcfg
1N/A
1N/A# There should be a mapfile here
1N/AMAPFILES =
1N/A
1N/A# Disable perl from directly binding to itself, but allow perl to directly bind
1N/A# to its dependencies (ie. map -Bdirect -> -zdirect). Ensure lazy loading is
1N/A# established (which is enabled automatically with -Bdirect).
1N/ABDIRECT = $(ZDIRECT)
1N/ALDFLAGS += $(ZLAZYLOAD)
1N/A
1N/A# Exclude lazy loading guidance messages
1N/AZGUIDANCE = $(ZGUIDANCE_NOLAZYLOAD)
1N/A
1N/A# Add in the perl-specific flags (including largefile flags).
1N/ACPPFLAGS += $(PERL_COREFLAGS) $(PERL_LFFLAGS)
1N/A
1N/A# A static version of libperl isn't needed.
1N/ALIBS = $(DYNLIB)
1N/A
1N/A# libperl.so lives under the perl install tree, not /usr/lib.
2N/AINSTALL_LIBDIR= $(PERL_CORE_DIR:$(ROOT)/%=%)
1N/A
1N/A# Add in the libraries perl needs to be linked against.
1N/ALDLIBS += $(PERL_LDLIBS)
1N/A
2N/A# The following objects are unused. Refer to comments in Makefile.master.
2N/AUNUSEDOBJS = perlapi.o
2N/AUNUSEDFILES = $(UNUSEDOBJS:%.o=./%.c)
2N/APOST_PROCESS_SO += $(ACCESS_UNUSEDFILES)
2N/A
2N/A
1N/Aall: $(LIBS) $(LIBLINKS)
1N/A
1N/A#
1N/A# libperl is installed by the installperl script, which is in turn called by
1N/A# distrib/Makefile, so this target does nothing. However, installperl doesn't
1N/A# get the links to libperl.so quite right, so this is fixed up by the
1N/A# install_lib target, which is run by distrib/Makefile (see below).
1N/A#
1N/Ainstall: all
1N/A
1N/A#
1N/A# By default perl only installs libperl.so, wheras ON would install
1N/A# libperl.so.1 and then create libperl.so as a symlink to libperl.so.1.
1N/A# The following two rules fix up things so they follow the ON conventions.
1N/A#
1N/Ainstall_lib:
1N/A $(RM) -f $(PERL_CORE_DIR)/$(DYNLIB)
1N/A $(MV) $(PERL_CORE_DIR)/$(LIBLINKS) $(PERL_CORE_DIR)/$(DYNLIB)
1N/A $(LN) -s ./$(DYNLIB) $(PERL_CORE_DIR)/$(LIBLINKS)
1N/A
1N/A$(LIBLINKS):
1N/A $(RM) -f $@
1N/A $(LN) -s ./$(DYNLIB) $@
1N/A
1N/Ainclude ../../../../lib/Makefile.targ