Makefile revision 2
140N/A# The contents of this file are subject to the terms of the 140N/A# Common Development and Distribution License (the "License"). 140N/A# You may not use this file except in compliance with the License. 140N/A# See the License for the specific language governing permissions 140N/A# and limitations under the License. 140N/A# When distributing Covered Code, include this CDDL HEADER in each 140N/A# If applicable, add the following below this CDDL HEADER, with the 140N/A# fields enclosed by brackets "[]" replaced with your own identifying 140N/A# information: Portions Copyright [yyyy] [name of copyright owner] 140N/A# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. 618N/A# The perl5 installation for Solaris differs from that generated by the 140N/A# Perl Configure procedure. The configuration appropriate for the current 140N/A# build is automatically generated from pre-existing configuration files 844N/A# for the build platform. 140N/A# DynaLoader is a special extension as it has to be built statically. 140N/A# Uuencoded files that need to have SCCS keyword expansion prevented, see below. 140N/A# Because autosplit generates a lot of files, we create a dummy timestamp file 140N/A# so that dependency checking can be performed. 140N/A# Add in the perl-specific flags (including largefile flags). 3996N/A# Add in the libraries perl needs to be linked against. 3996N/A# Compiler replacement rules # Some of the files in the perl distribution are uuencoded, or contain uuencoded # data. Some of the sequences of uuencoded data look like SCCS keywords, i.e. # "%<letter>%", so it is necessary to prevent the keywords from being expanded. # The SCCS 'y' flag can be added to the SCCS files to prevent keyword expansion # when the file is retrieved. However due to bugs in SCCS and wx we can't # always be sure that these flags are propagated correctly. # Expand template files that depend on config.sh. # which uses the correct library build environment. # Build miniperl, the bootstrap perl executable, and check it executes OK. # opmini.o is a version of op.o compiled with -DPERL_EXTERNAL_GLOB. Perl has # an internal implementation of glob, but it isn't available at this point. # Prepare for building perl modules by: # * Autosplitting any ./lib modules that require it. # * Creating a fake cflags file. ExtUtils::MM_Unix (used to build extensions) # checks to see if there is a non-zero sized file called 'cflags' in this # directory, so we fool it by creating one. # Note: cflags needs to be non-zero sized, so $(TOUCH) won't do. # Because autosplit generates a lot of files, we create a dummy timestamp file # Make DynaLoader. DynaLoader is statically linked into the perl executable # because it is used to load in all the other dynamically loaded modules. # Note: VERSION is used by ON as a environment variable and by perl module # makefiles as a make macro, so we need to unset it before building any modules. # Create the perl executable. # Build all the extensions. The rules for this are in the generated # Build utilities and pod pages. # Install targets. The bin, lib and pod symlinks are created here. The man # link is created by the SUNWpl5m package. In order to prevent a symlink cycle # we need to remove libperl.so before we start, so it will always be reinstalled # on each 'make install'. We also overwrite the Config.pm we used to build our # modules with one sanitized of the /ws/on*-tools dependency. As a result, # Config.pm will also be overwritten on each 'make install'. Note also that # perl, pstruct and psed are all hard links, so they too are reinstalled on each # Perl test suite target. # Note: the perl test suite breaks under parallel make. Bah. # @ (PERL_MM_ENV); $(PERL_LD_ENV);