usr/src/cmd/perl/5.8.4/Makefile
changeset 580 70dfd36fd02c
parent 0 68f95e015346
child 1717 ef845d4a1074
equal deleted inserted replaced
579:6139238196bb 580:70dfd36fd02c
     1 #
     1 #
     2 # CDDL HEADER START
     2 # CDDL HEADER START
     3 #
     3 #
     4 # The contents of this file are subject to the terms of the
     4 # The contents of this file are subject to the terms of the
     5 # Common Development and Distribution License, Version 1.0 only
     5 # Common Development and Distribution License (the "License").
     6 # (the "License").  You may not use this file except in compliance
     6 # You may not use this file except in compliance with the License.
     7 # with the License.
       
     8 #
     7 #
     9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
    10 # or http://www.opensolaris.org/os/licensing.
     9 # or http://www.opensolaris.org/os/licensing.
    11 # See the License for the specific language governing permissions
    10 # See the License for the specific language governing permissions
    12 # and limitations under the License.
    11 # and limitations under the License.
    17 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    18 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    19 #
    18 #
    20 # CDDL HEADER END
    19 # CDDL HEADER END
    21 #
    20 #
       
    21 
    22 #
    22 #
    23 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
    23 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
    24 # Use is subject to license terms.
    24 # Use is subject to license terms.
    25 #
    25 #
    26 #ident	"%Z%%M%	%I%	%E% SMI"
    26 # ident	"%Z%%M%	%I%	%E% SMI"
    27 #
    27 #
    28 
    28 
    29 #
    29 #
    30 # Note:  Hidden command and dependency checking plays havoc with perl module
    30 # Note:  Hidden command and dependency checking plays havoc with perl module
    31 # makefiles, so we make sure to always unset the KEEP_STATE and
    31 # makefiles, so we make sure to always unset the KEEP_STATE and
    52 install	:= TARGET = install
    52 install	:= TARGET = install
    53 clobber := TARGET = clobber
    53 clobber := TARGET = clobber
    54 clean	:= TARGET = clean
    54 clean	:= TARGET = clean
    55 test	:= TARGET = test
    55 test	:= TARGET = test
    56 
    56 
       
    57 # Compiler replacement rules
       
    58 SED_CC		= -e "s!'cc'!'$(CC)'!"
       
    59 SED_CC_E	= -e "s!'cc -E'!'$(REAL_CC) -E'!"
       
    60 
    57 # distrib holds the perl source, contrib holds the SMI modules.
    61 # distrib holds the perl source, contrib holds the SMI modules.
    58 all clean test: configure FRC
    62 all clean test: configure FRC
    59 	@ cd distrib; pwd; $(KEEP_STATE_OFF); $(MAKE) $(TARGET)
    63 	@ cd distrib; pwd; $(KEEP_STATE_OFF); $(MAKE) $(TARGET)
    60 	@ cd contrib; pwd; $(KEEP_STATE_OFF); $(MAKE) $(TARGET)
    64 	@ cd contrib; pwd; $(KEEP_STATE_OFF); $(MAKE) $(TARGET)
    61 
    65 
    65 
    69 
    66 configure: $(DISTRIB_CONFIG_FILES) $(GEN_MAKEFILES) get_no_keywords
    70 configure: $(DISTRIB_CONFIG_FILES) $(GEN_MAKEFILES) get_no_keywords
    67 
    71 
    68 # Modify config.sh to refer to the compiler used for the build.
    72 # Modify config.sh to refer to the compiler used for the build.
    69 distrib/config.sh: $(MACH)/config.sh
    73 distrib/config.sh: $(MACH)/config.sh
    70 	$(SED) -e "s!'cc!'$(SPRO_VROOT)/bin/cc!" $(MACH)/config.sh > $@
    74 	$(SED)	$(SED_CC) $(SED_CC_E) $(MACH)/config.sh > $@
    71 
    75 
    72 Makefile.perlcfg: extract_config $(MACH)/config.sh
    76 Makefile.perlcfg: extract_config $(MACH)/config.sh
    73 	./extract_config $(MACH)/config.sh > Makefile.perlcfg
    77 	./extract_config $(MACH)/config.sh > Makefile.perlcfg
    74 
    78 
    75 distrib/ext/Makefile: extract_makeext $(MACH)/config.sh
    79 distrib/ext/Makefile: extract_makeext $(MACH)/config.sh