'porting' AMD compiler suite

William A. Mahaffey III wam at hiwaay.net
Sun Apr 10 22:03:43 UTC 2016



I downloaded the AMD Open64 compiler suite & am attempting to build it 
to compile some in-house code under FreeBSD. I unpacked the tarball & 
began following directions in the INSTALL file, which I attach. The 
configure process completed OK, but created a Makefile w/ what seems to 
be a bunch of linuxisms in conditionals to allow compilation for 
different architectures, see attached orig-Makefile. I read the man page 
for make & attempted to convert these to FreeBSD legal text & tried my 
'make all' again. It failed w/ different & somewhat obscure error 
message, so I tried again w/ 'make -vvv -d all' & got the attached 
output in 'LIST', see attached. The compiler is not necessarily known to 
compile under FreeBSD, so I may be whiffing here, but I think this may 
just be a bit of pilot error using the GNU utilities. I am stumped for 
now, any clues appreciated. I also attach my 'fixed' Makefile. The LIST 
file has info on make version & other stuff.


[root at devbox, obj, 5:02:37pm] 937 % uname -a
FreeBSD devbox 9.3-RELEASE-p33 FreeBSD 9.3-RELEASE-p33 #0: Wed Jan 13 
17:55:39 UTC 2016 
root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
[root at devbox, obj, 5:06:26pm] 938 % which make
/usr/bin/make
[root at devbox, obj, 5:06:31pm] 939 %


Again, I am stumped for now, any help appreciated. TIA * have a good one.


-- 

	William A. Mahaffey III

  ----------------------------------------------------------------------

	"The M1 Garand is without doubt the finest implement of war
	 ever devised by man."
                            -- Gen. George S. Patton Jr.

-------------- next part --------------
Installing Open64
=================

Introduction
------------

This document explains how to compile and install x86 Open64 compiler from 
source on an x86-64 based system.For simplicity, we describe the steps 
that we used to build the x86 Open64 4.5.2.1 binary packages available 
on http://developer.amd.com/cpu/open64.



Open64 and external package dependency 
--------------------------------------

Minimal external packages/tools dependency for using open64 compiler 
  glibc           - release and devel packages supporting 64 bit and 32 bit ISA  
  libgcc          - 32 bit, 64 bit packages 
  libstdc++       - 32 bit, 64 bit packages 
       
Minimal external packages/tools dependency for building open64 compiler from source 
  gcc,g++,gfortran        
  bison
  flex
  glibc-devel.x86_64
  glibc-devel.i686
  libgcc.i686

To fully leverage the AMD Opteron Family 15h processor("Piledriver"core)
features use binutils-2.21.51.0.6 or above.Newer OS versions like 
SLES 11 SP2 and RHEL 6.3 come with GLIBC and Binutils which have support 
for AMD Opteron Family 15h processor("Piledriver"core).

We used 64-bit SUSE Linux Enterprise Server 11 with SP1 and with required 
binutils to build the compiler for AMD Opteron Family 15h processor 
("Piledriver" core).Besides, we used 64-bit SUSE Linux Enterprise Server 10
with SP2 to build the compiler for systems that does not comply to the above
mentioned Binutils version. 

Note: 
	If a open64 build from source attempted without the above recommended 
	binutils on a machine with AMD Opteron Family 15h processor
	("Piledriver"core) then the compiler build may not get completed 
	as expected.
  

Build open64 from source 
------------------------

Although the x86 Open64 compiler suite can be built on 32-bit or 64-bit
Linux systems, we always build on a 64-bit Linux system where both 32-bit
and 64-bit code generation can be tested. 

By default, on x86_64 machines, the compiler will be built in 64 bit
mode and libraries will be built in 32 and 64 bit modes to support
compilation in either mode

By default, the build process will use GCC to build most compiler
components. We used GCC 4.1.2 as provided with SLES 10 SP2 and GCC 4.3.4 as 
provided with SLES 11 SP1. 

  
Following the below simple steps helps in building open64 for AMD x86_64

 - Unpack the source (assume that the source package has been extracted as
   x86_open64-4.5.2.1-1)
        tar xjvf x86_open64-4.5.2.1-1.src.tar.bz2
        
 - Create object directory at the same level where src has been extracted    
        mkdir obj 
        cd obj 


 - Configure stage
   A compiler built on either x86-64 or x86 machine will target both
   architectures.  

   By default the compiler will get built for x86_64-unknown-linux-gnu, it can also 
   be forced using the below option 

        --build=x86_64-unknown-linux-gnu
   
   To build a compiler on an x86-64 machine that is compiled with the x86 ISA
   (that is, compiled with the -m32 option), specify the following configuration
   option:

        --build=i686-unknown-linux-gnu

   Select one of the below step based on your need/environment for building a
   x84_64 compiler
        * For all binutils
            ../x86_open64-4.5.2.1-1/configure --build=x86_64-unknown-linux-gnu \
            --disable-host_bdver1-support [--prefix=<INSTALL LOC>]

        * If binutils supports AVX,XOP and FMA4 (version 2.21.51.0.1 or above)
             ../x86_open64-4.5.2.1-1/configure --build=x86_64-unknown-linux-gnu \
             [--prefix=<INSTALL LOC>]

        * If binutils supports FMA3,TBM,BMI(version 2.21.51.0.6 or above)
             ../x86_open64-4.5.2.1-1/configure --build=x86_64-unknown-linux-gnu \
             [--prefix=<INSTALL LOC>]
                        
        * To obtain a debug build       
             add the flag "--with-build-optimize=DEBUG" to any of the above 
             configure steps based on your requirement
                        
        * To explore the different configure options you can use the below 
          command   
             ../x86_open64-4.5.2.1-1/configure --help
        
 - Build stage
         make all
         
 - Install stage  
        make install 
 

 Once you have done 'make all' to make the compiler, 'make install' will
 copy it to the location specified by the --prefix argument to configure.
 If --prefix was not used the default install location is in /usr/local

Note :

 Congratulations. You have successfully installed Open64.

        
Resolving open64 package dependencies in RHEL 6.3 
-------------------------------------------------

  On RHEL6.3 x86_64, one may face issues in identifying the dependent packages 
  needed for open64. The below command will help to resolve the external
  package dependencies in RHEL6.3 for open64

        The yum install command was provided on the assumption yum 
        configuration is as expected in your system and the basic server 
        package has been selected during RHEL6.3 installation 
  
	yum install glibc-devel.i686 glibc-devel.x86_64 
        yum install libgcc.i686 libgcc.x86_64 
  	yum install gcc.x86_64 gcc-c++.x86_64 gcc-gfortran.x86_64  
    	yum install flex.x86_64  bison.x86_64


Your Open64 Team

-------------- next part --------------
#
#
#  Copyright (C) 2009-2011 Advanced Micro Devices, Inc.  All Rights Reserved.
#
#  Copyright (C) 2000, 2001 Silicon Graphics, Inc.  All Rights Reserved.
#
#  This program is free software; you can redistribute it and/or modify it
#  under the terms of version 2 of the GNU General Public License as
#  published by the Free Software Foundation.
#
#  This program is distributed in the hope that it would be useful, but
#  WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
#
#  Further, this software is distributed without any warranty that it is
#  free of the rightful claim of any third person regarding infringement 
#  or the like.  Any license provided herein, whether implied or 
#  otherwise, applies only to this software file.  Patent licenses, if 
#  any, provided herein do not apply to combinations of this program with 
#  other software, or any other product whatsoever.  
#
#  You should have received a copy of the GNU General Public License along
#  with this program; if not, write the Free Software Foundation, Inc., 59
#  Temple Place - Suite 330, Boston MA 02111-1307, USA.
#
#  Contact information:  Silicon Graphics, Inc., 1600 Amphitheatre Pky,
#  Mountain View, CA 94043, or:
#
#  http://www.sgi.com
#
#  For further information regarding this notice, see:
#
#  http://oss.sgi.com/projects/GenInfo/NoticeExplan
#
#

# The directory where all native compiler component build subdirectories
# are located
#
MACHINE_TYPE        = x86_64
COMPILER_TARG_DIR   = /usr/src/contrib/obj/osprey/targdir
LIB_BUILD_AREA      = /usr/src/contrib/obj/osprey/targdir_lib
LIB2_BUILD_AREA     = /usr/src/contrib/obj/osprey/targdir_lib2

NATIVE_BUILD_DIR    = osprey/targdir
NATIVE_BUILD_DIR_LD = osprey/cygnus
GNUFE_BUILD_DIR     = osprey-gcc-4.2.0
GNUFE_BUILD_SUBDIR  = osprey-gcc-4.2.0/host-unknown

LIB_MACHINE_TYPE    = IA32
LIB_BUILD_TARGET    = IA32
LIB_BUILD_ABI       = I32BIT
LIB_BUILD_ARCH      = IA32
LIB_BUILD_HOST      = X8664

LIB2_MACHINE_TYPE   = X86_64
LIB2_BUILD_TARGET   = X8664
LIB2_BUILD_ABI      = I64BIT
LIB2_BUILD_ARCH     = X8664
LIB2_BUILD_HOST     = X8664

LIB_BUILD_DIR       = osprey/targdir_lib
LIB2_BUILD_DIR      = osprey/targdir_lib2

TOP_SRCDIR          = /usr/src/contrib/obj/../x86_open64-4.5.2.1-1
TOP_BUILDDIR        = /usr/src/contrib/obj
BUILD_VENDOR        = 
BUILD_TARGET        = X8664
BUILD_MULTILIB      = NO
BUILD_GNU3          = 
BUILD_FORTRAN       = YES
BUILD_TYPE          = SHARED
BUILD_SKIP_IPA      = 

ifeq ($(MACHINE_TYPE), ia64)
# ia64
  GNUFE_BUILD_HOST    = ia64-redhat-linux
  TARGET_EXTRA_OBJ    = $(NATIVE_BUILD_DIR)/targ_info/itanium.so 
  TARGET_EXTRA_OBJ   += $(NATIVE_BUILD_DIR)/orc_ict/orc_ict.so
  TARGET_EXTRA_OBJ   += $(NATIVE_BUILD_DIR)/orc_intel/orc_intel.so
endif
ifeq ($(MACHINE_TYPE), i386)
# i386
  GNUFE_BUILD_HOST    = x86_64-redhat-linux
endif

ifeq ($(MACHINE_TYPE), x86_64)
# x86_64
  GNUFE_BUILD_HOST    = x86_64-redhat-linux
endif

CROSS_BUILD = false

# All native compiler components:
BASIC_COMPONENTS = \
		$(NATIVE_BUILD_DIR)/driver/driver \
                $(NATIVE_BUILD_DIR)/be/be \
                $(NATIVE_BUILD_DIR)/lw_inline/inline \
                $(NATIVE_BUILD_DIR)/whirl2c/whirl2c \
                $(NATIVE_BUILD_DIR)/ir_tools/ir_b2a

ifeq ($(BUILD_TYPE), SHARED)
BASIC_COMPONENTS += \
                $(NATIVE_BUILD_DIR)/be/be.so \
                $(NATIVE_BUILD_DIR)/cg/cg.so \
                $(NATIVE_BUILD_DIR)/wopt/wopt.so \
                $(NATIVE_BUILD_DIR)/lno/lno.so \
                $(NATIVE_BUILD_DIR)/whirl2c/whirl2c.so
endif

ifneq ($(BUILD_SKIP_IPA), YES)
BASIC_COMPONENTS += \
		$(NATIVE_BUILD_DIR)/ipa/ipa.so \
		$(NATIVE_BUILD_DIR)/ipl/ipl.so \
		$(NATIVE_BUILD_DIR)/ipl/ipl \
		$(NATIVE_BUILD_DIR_LD)/ld/ld-new 
endif

ifeq ($(BUILD_FORTRAN), YES)
BASIC_COMPONENTS += \
		$(NATIVE_BUILD_DIR)/whirl2f/whirl2f 

ifeq ($(BUILD_TYPE), SHARED)
BASIC_COMPONENTS += \
		$(NATIVE_BUILD_DIR)/whirl2f/whirl2f.so
endif

endif


GNU4_FE_COMPONENTS = \
                $(NATIVE_BUILD_DIR)/wgen/wgen42 \
                $(GNUFE_BUILD_SUBDIR)/gcc/cc1 \
                $(GNUFE_BUILD_SUBDIR)/gcc/cc1plus

GNU3_FE_COMPONENTS = \
                $(NATIVE_BUILD_DIR)/gccfe/gfec \
                $(NATIVE_BUILD_DIR)/g++fe/gfecc

ifeq ($(BUILD_FORTRAN), YES)
FORT_FE_COMPONENTS = \
                $(NATIVE_BUILD_DIR)/crayf90/sgi/mfef95
endif

FIRST_COMPONENTS = \
		$(NATIVE_BUILD_DIR)/include \
		$(NATIVE_BUILD_DIR)/libcomutil \
		$(NATIVE_BUILD_DIR)/libcmplrs \
                $(NATIVE_BUILD_DIR)/libiberty \
		$(NATIVE_BUILD_DIR)/targ_info \
		$(NATIVE_BUILD_DIR)/libelf \
		$(NATIVE_BUILD_DIR)/libelfutil \
		$(NATIVE_BUILD_DIR)/libdwarf \
		$(NATIVE_BUILD_DIR)/libunwindP \
		$(NATIVE_BUILD_DIR)/libcif \
		$(NATIVE_BUILD_DIR)/arith

NATIVE_COMPONENTS = $(BASIC_COMPONENTS) $(TARGET_EXTRA_OBJ)  \
                    $(GNU4_FE_COMPONENTS) $(FORT_FE_COMPONENTS) \
                    $(FIRST_COMPONENTS) 

ifeq ($(BUILD_GNU3), YES)
NATIVE_COMPONENTS += $(GNU3_FE_COMPONENTS)
endif



CROSS_COMPONENTS =  $(BASIC_COMPONENTS) $(TARGET_EXTRA_OBJ) \
                    $(FORT_FE_COMPONENTS)




BASIC_PHONY_TARGET = $(shell for i in $(BASIC_COMPONENTS); do basename "$$i" ; done)

CROSS_PHONY_TARGET = $(shell for i in $(CROSS_COMPONENTS); do basename "$$i" ; done)

PHONY_TARGET = $(shell for i in $(NATIVE_COMPONENTS); do basename "$$i" ; done) 
.PHONY : $(PHONY_TARGET) all build install install_fe install_compiler clean clobber backend

#define SKIP_DEP_BUILD will disable the unnecessary dependency check
export SKIP_DEP_BUILD=1 

# Use all to build compiler (build) and libraries (lib)
# If BUILD_MULTILIB is YES, build a second library as well.
ALL_TARGETS = build lib
CLEAN_LIB = clean-lib
ifeq ($(BUILD_MULTILIB), YES)
ALL_TARGETS += lib2
CLEAN_LIB += clean-lib2
endif

all: $(ALL_TARGETS)

include:
	$(MAKE) -C $(NATIVE_BUILD_DIR)/include

libcomutil: include
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libcomutil

libcmplrs: include
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libcmplrs

libiberty: include
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libiberty

targ_info: include
	$(MAKE) -C $(NATIVE_BUILD_DIR)/targ_info

libelf: include
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libelf

libelfutil: include
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libelfutil

libdwarf: libelf
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libdwarf

libunwindP: targ_info
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libunwindP

libcif: include
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libcif

arith:
	$(MAKE) -C $(NATIVE_BUILD_DIR)/arith

$(NATIVE_BUILD_DIR)/driver/driver driver: include
	$(MAKE) -C $(NATIVE_BUILD_DIR)/driver

$(NATIVE_BUILD_DIR)/gccfe/gfec gfec: libiberty libcomutil libcmplrs
	$(MAKE) -C $(NATIVE_BUILD_DIR)/gccfe

$(NATIVE_BUILD_DIR)/g++fe/gfecc gfecc: libiberty libcomutil libcmplrs
	$(MAKE) -C $(NATIVE_BUILD_DIR)/g++fe

$(NATIVE_BUILD_DIR)/wgen/wgen42 wgen42: libiberty libcomutil libcmplrs $(NATIVE_BUILD_DIR)/libspin_4_2_0/libgspin42.a
	$(MAKE) -C $(NATIVE_BUILD_DIR)/wgen

ifeq ($(BUILD_TYPE), SHARED)

$(NATIVE_BUILD_DIR)/be/be be: be.so 
$(NATIVE_BUILD_DIR)/be/be.so be.so: include libiberty targ_info
	$(MAKE) -C $(NATIVE_BUILD_DIR)/be

$(NATIVE_BUILD_DIR)/cg/cg.so cg.so: be.so libelf libelfutil libdwarf libunwindP
	$(MAKE) -C $(NATIVE_BUILD_DIR)/cg

$(NATIVE_BUILD_DIR)/wopt/wopt.so wopt.so: be.so 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/wopt

$(NATIVE_BUILD_DIR)/lno/lno.so lno.so: wopt.so ipl.so
	$(MAKE) -C $(NATIVE_BUILD_DIR)/lno

$(NATIVE_BUILD_DIR)/ipa/ipa.so ipa.so: ipl.so
	$(MAKE) -C $(NATIVE_BUILD_DIR)/ipa

$(NATIVE_BUILD_DIR)/ipl/ipl ipl: ipl.so
$(NATIVE_BUILD_DIR)/ipl/ipl.so ipl.so: be.so
	$(MAKE) -C $(NATIVE_BUILD_DIR)/ipl

$(NATIVE_BUILD_DIR)/lw_inline/inline inline: be.so
	$(MAKE) -C $(NATIVE_BUILD_DIR)/lw_inline

$(NATIVE_BUILD_DIR)/whirl2c/whirl2c whirl2c: whirl2c.so
$(NATIVE_BUILD_DIR)/whirl2c/whirl2c.so whirl2c.so: be.so
	$(MAKE) -C $(NATIVE_BUILD_DIR)/whirl2c

$(NATIVE_BUILD_DIR)/whirl2f/whirl2f whirl2f: whirl2f.so
$(NATIVE_BUILD_DIR)/whirl2f/whirl2f.so whirl2f.so: be.so
	$(MAKE) -C $(NATIVE_BUILD_DIR)/whirl2f
else

$(NATIVE_BUILD_DIR)/be/be be: include libiberty targ_info libbe libipl liblno libwopt libwhirl2c libwhirl2f libdwarf libcg libelfutil libelf
	$(MAKE) -C $(NATIVE_BUILD_DIR)/be be

$(NATIVE_BUILD_DIR)/be/libbe libbe: include libiberty targ_info
	$(MAKE) -C $(NATIVE_BUILD_DIR)/be

$(NATIVE_BUILD_DIR)/cg/libcg libcg: libbe libelf libelfutil libdwarf libunwindP
	$(MAKE) -C $(NATIVE_BUILD_DIR)/cg

$(NATIVE_BUILD_DIR)/wopt/libwopt libwopt: libbe
	$(MAKE) -C $(NATIVE_BUILD_DIR)/wopt

$(NATIVE_BUILD_DIR)/lno/liblno liblno: libwopt libipl
	$(MAKE) -C $(NATIVE_BUILD_DIR)/lno

$(NATIVE_BUILD_DIR)/ipa/libipa libipa: libipl
	$(MAKE) -C $(NATIVE_BUILD_DIR)/ipa

$(NATIVE_BUILD_DIR)/ipl/ipl ipl: libipl
$(NATIVE_BUILD_DIR)/ipl/libipl libipl: libbe
	$(MAKE) -C $(NATIVE_BUILD_DIR)/ipl

$(NATIVE_BUILD_DIR)/lw_inline/inline inline: libbe
	$(MAKE) -C $(NATIVE_BUILD_DIR)/lw_inline

$(NATIVE_BUILD_DIR)/whirl2c/whirl2c whirl2c: libwhirl2c
$(NATIVE_BUILD_DIR)/whirl2c/libwhirl2c libwhirl2c: libbe
	$(MAKE) -C $(NATIVE_BUILD_DIR)/whirl2c

$(NATIVE_BUILD_DIR)/whirl2c/whirl2f whirl2f: libwhirl2f
$(NATIVE_BUILD_DIR)/whirl2c/libwhirl2f libwhirl2f: libbe
	$(MAKE) -C $(NATIVE_BUILD_DIR)/whirl2f
endif

ifeq ($(MACHINE_TYPE), ia64)
$(NATIVE_BUILD_DIR)/orc_ict/orc_ict.so orc_ict.so: cg.so
	$(MAKE) -C $(NATIVE_BUILD_DIR)/orc_ict

$(NATIVE_BUILD_DIR)/orc_intel/orc_intel.so orc_intel.so: cg.so
	$(MAKE) -C $(NATIVE_BUILD_DIR)/orc_intel

$(NATIVE_BUILD_DIR)/targ_info/itanium.so itanium.so: targ_info
endif

$(NATIVE_BUILD_DIR)/ir_tools/ir_b2a ir_b2a: libcomutil
	$(MAKE) -C $(NATIVE_BUILD_DIR)/ir_tools

$(NATIVE_BUILD_DIR)/crayf90/sgi/mfef95 mfef95: libcomutil libcif arith
	$(MAKE) -C $(NATIVE_BUILD_DIR)/crayf90

.PHONY: phony_targets first
$(NATIVE_BUILD_DIR_LD)/ld/ld-new ld-new:
	$(MAKE) -C $(NATIVE_BUILD_DIR_LD)

$(NATIVE_BUILD_DIR)/libspin_4_2_0/libgspin42.a libspin42:
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libspin_4_2_0

# GNU 4.2.0 based FE
cc1plus: $(GNUFE_BUILD_SUBDIR)/gcc/cc1plus
cc1: $(GNUFE_BUILD_SUBDIR)/gcc/cc1
cc1plus: cc1
$(GNUFE_BUILD_SUBDIR)/gcc/cc1plus cc1plus: $(GNUFE_BUILD_SUBDIR)/gcc/cc1
$(GNUFE_BUILD_SUBDIR)/gcc/cc1 cc1: $(NATIVE_BUILD_DIR)/libspin_4_2_0/libgspin42.a
	$(MAKE) -C $(GNUFE_BUILD_DIR)

build:
	$(MAKE) first
	$(MAKE) phony_targets 

phony_targets: $(PHONY_TARGET)
cross: NATIVE_BUILD_DIR = osprey/targia32_ia64_nodebug
cross: NATIVE_BUILD_DIR_LD = osprey/targcygnus_ia32_ia64
cross: CROSS_BUILD = true
cross: $(CROSS_PHONY_TARGET)
	echo $(CROSS_PHONY_TARGET)

backend: $(BASIC_PHONY_TARGET)

ifeq ($(BUILD_TARGET), SL)
install:
	export TOOLROOT=/usr/local; \
	export TOP_SRCDIR=$(TOP_SRCDIR); \
		$(TOP_SRCDIR)/INSTALL.cross.sl /usr/src/contrib/obj
else
install: install_fe install_compiler

ifeq ($(BUILD_TARGET), PPC32)
install_fe:
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-common
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-headers
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-cpp
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-driver	    
else
install_fe:
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-common
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-headers
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-libgcc
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-cpp
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-driver
	$(MAKE) -C $(GNUFE_BUILD_DIR)/$(GNUFE_BUILD_HOST)/libstdc++-v3 \
	    install
endif

install_compiler:
	export TOOLROOT=/usr/local; \
	export TOP_SRCDIR=$(TOP_SRCDIR); \
		$(TOP_SRCDIR)/install_compiler.sh $(MACHINE_TYPE) $(if $(BUILD_FORTRAN),"YES","NO")  
endif
install-cross:
	export TOOLROOT=/usr/local; $(TOP_SRCDIR)/install_compiler.sh ia64-cross $(if $(BUILD_FORTRAN),"YES","NO")
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-common
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-headers
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-libgcc
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-cpp
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-driver
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/$(GNUFE_BUILD_HOST)/libstdc++-v3 \
	    install
	export TOOLROOT=/usr/local; $(TOP_SRCDIR)/install_compiler.sh ia64-cross $(if $(BUILD_FORTRAN),"YES","NO")

LIB_ARGS = BUILD_TARGET=$(LIB_BUILD_TARGET) BUILD_COMPILER=SELF BUILD_AREA=$(LIB_BUILD_AREA) MACHINE_TYPE=$(LIB_MACHINE_TYPE) BUILD_ABI=$(LIB_BUILD_ABI) BUILD_ARCH=$(LIB_BUILD_ARCH) BUILD_HOST=$(LIB_BUILD_HOST) BUILD_OPTIMIZE=DEFAULT BUILD_BDVER1=NO
ifeq ($(LIB_BUILD_TARGET),IA64)
LIB_ARGS += BUILD_TYPE=NONSHARED
else
LIB_ARGS += BUILD_TYPE=SHARED
endif
LIB2_ARGS = BUILD_TARGET=$(LIB2_BUILD_TARGET) BUILD_COMPILER=SELF BUILD_AREA=$(LIB2_BUILD_AREA) MACHINE_TYPE=$(LIB2_MACHINE_TYPE) BUILD_ABI=$(LIB2_BUILD_ABI) BUILD_ARCH=$(LIB2_BUILD_ARCH) BUILD_HOST=$(LIB2_BUILD_HOST) BUILD_OPTIMIZE=DEFAULT BUILD_TYPE=SHARED BUILD_BDVER1=NO

.PHONY: library lib clean-library clean-lib
.PHONY: library2 lib2 clean-library2 clean-lib2

library lib library2 lib2 : LOCAL_LIB_ACTION = default
clean-library clean-lib clean-library2 clean-lib2 : LOCAL_LIB_ACTION = clobber

library lib clean-library clean-lib : LOCAL_LIB_BUILD_DIR = $(LIB_BUILD_DIR)
library lib clean-library clean-lib : LOCAL_LIB_ARGS = $(LIB_ARGS)
library2 lib2 clean-library2 clean-lib2 : LOCAL_LIB_BUILD_DIR = $(LIB2_BUILD_DIR)
library2 lib2 clean-library2 clean-lib2 : LOCAL_LIB_ARGS = $(LIB2_ARGS)

library lib library2 lib2 : build

library lib clean-library clean-lib library2 lib2 clean-library2 clean-lib2:
	@echo "$(MAKE) -C $(LOCAL_LIB_BUILD_DIR) $(LOCAL_LIB_ACTION) $(LOCAL_LIB_ARGS)"; \
	$(MAKE) -C $(LOCAL_LIB_BUILD_DIR) $(LOCAL_LIB_ACTION) $(LOCAL_LIB_ARGS)

clobber: clean 
	rm -rf $(CROSSDIR) $(BOOTDIR)

clean: $(CLEAN_LIB)
	$(MAKE) -C $(NATIVE_BUILD_DIR)/driver clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/wgen clobber 
ifeq ($(BUILD_GNU3), YES)
	$(MAKE) -C $(NATIVE_BUILD_DIR)/gccfe clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/g++fe clobber
endif
	$(MAKE) -C $(NATIVE_BUILD_DIR)/be clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/cg clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/wopt clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/lno clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/ipa clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/ipl clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/lw_inline clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/whirl2c clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libkapi clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/targ_info clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/ir_tools clobber 
ifeq ($(BUILD_FORTRAN), YES)
	$(MAKE) -C $(NATIVE_BUILD_DIR)/crayf90 clobber	
	$(MAKE) -C $(NATIVE_BUILD_DIR)/whirl2f clobber 
endif
	$(MAKE) -C $(NATIVE_BUILD_DIR)/arith clobber
	$(MAKE) -C $(NATIVE_BUILD_DIR)/include clobber
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libspin_4_2_0 clobber
ifeq ($(MACHINE_TYPE), ia64)
	$(MAKE) -C $(NATIVE_BUILD_DIR)/orc_ict clobber
	$(MAKE) -C $(NATIVE_BUILD_DIR)/orc_intel clobber
endif
	$(MAKE) -C $(NATIVE_BUILD_DIR_LD) clean
	$(MAKE) -C $(GNUFE_BUILD_DIR) clean
	@for i in libcif libcmplrs libcomutil libcsup libdwarf libelf libelfutil \
		libiberty libunwindP; do  \
		$(MAKE) -C "$(NATIVE_BUILD_DIR)/$${i}" clobber; \
	done

help:
	@echo "Help of the Makefile for Open64 compiler source"
	@echo "Available targets:"
	@echo "  - (DEFAULT)"
	@echo "    Build the components of the compiler"
	@echo "  - help"
	@echo "    Display this help"
	@echo "  - install"
	@echo "    Install the components of the compiler."
	@echo "    If TOOLROOT is set, the compiler will be installed under the TOOLROOT,"
	@echo "    otherwise, you will be prompted to input the path\n"
	@echo "  - library"
	@echo "    Build the libraries needed by the compiler"
	@echo "  - clean-lib"
	@echo "    Remove intermediate files generated in building libraries"
	@echo "  - clean"
	@echo "  - clobber"
	@echo "    Remove all intermediate files"
	@echo ""
	@echo "Available options (former is default):" 
	@echo "  - BUILD_OPTIMIZE={NODEBUG|DEBUG}"
	@echo "    Enable debug the compiler or not"
	@echo "  - BUILD_COMPILER={GNU|OSP|PSC}"
	@echo "    Using GCC(GNU) or Open64(OSP) Or Pathscale(PSC) compiler"
	@echo "    to build the open64 compiler"
	@echo "  - V={0|1}"
	@echo "    Display detailed compilation progress or not"
.PHONY: bootstrap reboot boot cross_gcc

BOOTDIR=$(PWD)/boot
CROSSDIR=$(PWD)/cross_gcc
bootstrap: reboot
#build the reboot compiler
reboot: boot
	$(MAKE) clean
	set +h; $(MAKE) all lib BUILD_COMPILER=OSP PATH=$(BOOTDIR)/bin:$(PATH)

#build the boot compiler using the exist open64 compiler
boot:
#if opencc is not found use gcc to build the cross compiler
	if ! opencc -v >/dev/null 2>&1; then $(MAKE) cross_gcc; fi
	$(MAKE) clean
	rm -rf $(BOOTDIR)
	set +h; $(MAKE) all lib BUILD_COMPILER=OSP PATH=$(CROSSDIR)/bin:$(PATH)
	$(MAKE) install TOOLROOT=$(BOOTDIR)

cross_gcc: 
	$(MAKE) clean
	@rm -rf $(CROSSDIR)
	$(MAKE) all BUILD_COMPILER=GNU
	$(MAKE) install TOOLROOT=$(CROSSDIR)
	set +h; $(MAKE) lib BUILD_COMPILER=OSP PATH=$(CROSSDIR)/bin:$(PATH)
	$(MAKE) install TOOLROOT=$(CROSSDIR)
-------------- next part --------------
 
Beginning background make -vvv -d A all
Initiated at 11:50:39 AM MCDT on Sunday, April 10, 2016
 
Global:.MAKEFLAGS =  -v -v -v -d
Global:.MAKEFLAGS =  -v -v -v -d A
Global:MFLAGS =  -v -v -v -d
Global:MFLAGS =  -v -v -v -d A
Caching ....done
Global:.ST_EXPORTVAR = YES
Global:.CURDIR = /usr/src/contrib/obj
Global:.OBJDIR = /usr/src/contrib/obj
Global:.TARGETS = all
Caching /usr/share/mk...done
expanding "sys.mk".../usr/share/mk/sys.mk 
Global:MAKEFILE = /usr/share/mk/sys.mk
Global:.MAKEFILE_LIST = /usr/share/mk/sys.mk
Global:unix = We run FreeBSD, not UNIX.
Global:.FreeBSD = true
Global:MACHINE_CPUARCH = ${MACHINE_ARCH:C/mips.*e[lb]/mips/:C/armeb/arm/:C/powerpc64/powerpc/}
Searching for local.sys.mk.../usr/share/mk...failed.
Global:AR = ar
Global:ARFLAGS = rl
Global:RANLIB = ranlib
Global:AS = as
Global:AFLAGS = 
Global:ACFLAGS = 
Global:CC = cc
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
lhs = "amd64", rhs = "arm", op = ==
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
lhs = "amd64", rhs = "mips", op = ==
Global:CFLAGS = -O2 -pipe
Global:PO_CFLAGS = ${CFLAGS}
Global:CTFFLAGS = -L VERSION
Global:CTFCONVERT = ctfconvert
Global:CTFMERGE = ctfmerge
Global:DTRACE = dtrace
Applying :M to "-O2 -pipe"
Pattern :-g
Result is ""
lhs = "", rhs = "", op = !=
Global:CXX = c++
Global:CXXFLAGS = ${CFLAGS:N-std=*:N-Wnested-externs:N-W*-prototypes:N-Wno-pointer-sign:N-Wold-style-definition}
Global:PO_CXXFLAGS = ${CXXFLAGS}
Global:CPP = cpp
Applying :M to " -v -v -v -d A"
Pattern :-s
Result is ""
Global:ECHO = echo
Global:ECHODIR = echo
Applying :M to " -v -v -v -d A"
Pattern :-n
Result is ""
Applying :M to " -v -v -v -d A"
Pattern :-n
Result is ""
lhs = "", rhs = "-n", op = ==
Global:_+_ = +
Global:FC = f77
Global:FFLAGS = -O
Global:EFLAGS = 
Global:INSTALL = install
Global:LEX = lex
Global:LFLAGS = 
Global:LD = ld
Global:LDFLAGS = 
Global:LINT = lint
Global:LINTFLAGS = -cghapbx
Global:LINTKERNFLAGS = ${LINTFLAGS}
Global:LINTOBJFLAGS = -cghapbxu -i
Global:LINTOBJKERNFLAGS = ${LINTOBJFLAGS}
Global:LINTLIBFLAGS = -cghapbxu -C ${LIB}
Global:OBJC = cc
Global:OBJCFLAGS = ${OBJCINCLUDES} ${CFLAGS} -Wno-import
Global:OBJCOPY = objcopy
Global:PC = pc
Global:PFLAGS = 
Global:RC = f77
Global:RFLAGS = 
Global:YACC = yacc
Global:YFLAGS = -d
defining transformation from `.sh' to `'
inserting an empty list?...inserting .sh(23)...at end of list
inserting an empty list?...inserting (0)...at end of list
transformation .sh complete
defining transformation from `.c' to `.ln'
inserting an empty list?...inserting .c(5)...at end of list
inserting an empty list?...inserting .ln(3)...at end of list
transformation .c.ln complete
defining transformation from `.cc' to `.ln'
inserting .cc(6)...at end of list
inserting an empty list?...inserting .ln(3)...at end of list
defining transformation from `.C' to `.ln'
inserting .C(9)...at end of list
inserting an empty list?...inserting .ln(3)...at end of list
defining transformation from `.cpp' to `.ln'
inserting .cpp(7)...before .C(9)
inserting an empty list?...inserting .ln(3)...at end of list
defining transformation from `.cxx' to `.ln'
inserting .cxx(8)...before .C(9)
inserting an empty list?...inserting .ln(3)...at end of list
transformation .cc.ln complete
transformation .C.ln complete
transformation .cpp.ln complete
transformation .cxx.ln complete
defining transformation from `.c' to `'
inserting .c(5)...before .sh(23)
inserting (0)...before .ln(3)
transformation .c complete
defining transformation from `.c' to `.o'
inserting an empty list?...inserting .c(5)...at end of list
inserting .o(4)...at end of list
transformation .c.o complete
defining transformation from `.cc' to `'
inserting .cc(6)...before .sh(23)
inserting (0)...before .ln(3)
defining transformation from `.cpp' to `'
inserting .cpp(7)...before .sh(23)
inserting (0)...before .ln(3)
defining transformation from `.cxx' to `'
inserting .cxx(8)...before .sh(23)
inserting (0)...before .ln(3)
defining transformation from `.C' to `'
inserting .C(9)...before .sh(23)
inserting (0)...before .ln(3)
transformation .cc complete
transformation .cpp complete
transformation .cxx complete
transformation .C complete
defining transformation from `.cc' to `.o'
inserting .cc(6)...at end of list
inserting .o(4)...at end of list
defining transformation from `.cpp' to `.o'
inserting .cpp(7)...at end of list
inserting .o(4)...at end of list
defining transformation from `.cxx' to `.o'
inserting .cxx(8)...at end of list
inserting .o(4)...at end of list
defining transformation from `.C' to `.o'
inserting .C(9)...at end of list
inserting .o(4)...at end of list
transformation .cc.o complete
transformation .cpp.o complete
transformation .cxx.o complete
transformation .C.o complete
defining transformation from `.m' to `.o'
inserting .m(10)...at end of list
inserting an empty list?...inserting .o(4)...at end of list
transformation .m.o complete
defining transformation from `.p' to `.o'
inserting .p(21)...at end of list
inserting an empty list?...inserting .o(4)...at end of list
transformation .p.o complete
defining transformation from `.e' to `'
inserting .e(13)...before .sh(23)
inserting an empty list?...inserting (0)...at end of list
defining transformation from `.r' to `'
inserting .r(14)...before .sh(23)
inserting an empty list?...inserting (0)...at end of list
defining transformation from `.F' to `'
inserting .F(11)...before .e(13)
inserting an empty list?...inserting (0)...at end of list
defining transformation from `.f' to `'
inserting .f(12)...before .e(13)
inserting an empty list?...inserting (0)...at end of list
transformation .e complete
transformation .r complete
transformation .F complete
transformation .f complete
defining transformation from `.e' to `.o'
inserting .e(13)...before .p(21)
inserting .o(4)...at end of list
defining transformation from `.r' to `.o'
inserting .r(14)...before .p(21)
inserting .o(4)...at end of list
defining transformation from `.F' to `.o'
inserting .F(11)...before .e(13)
inserting .o(4)...at end of list
defining transformation from `.f' to `.o'
inserting .f(12)...before .e(13)
inserting .o(4)...at end of list
transformation .e.o complete
transformation .r.o complete
transformation .F.o complete
transformation .f.o complete
defining transformation from `.S' to `.o'
inserting .S(17)...before .p(21)
inserting an empty list?...inserting .o(4)...at end of list
transformation .S.o complete
defining transformation from `.asm' to `.o'
inserting .asm(18)...before .p(21)
inserting an empty list?...inserting .o(4)...at end of list
transformation .asm.o complete
defining transformation from `.s' to `.o'
inserting .s(19)...before .p(21)
inserting an empty list?...inserting .o(4)...at end of list
transformation .s.o complete
defining transformation from `.y' to `.o'
inserting .y(15)...before .S(17)
inserting an empty list?...inserting .o(4)...at end of list
transformation .y.o complete
defining transformation from `.l' to `.o'
inserting .l(16)...before .S(17)
inserting an empty list?...inserting .o(4)...at end of list
transformation .l.o complete
defining transformation from `.y' to `.c'
inserting an empty list?...inserting .y(15)...at end of list
inserting .c(5)...at end of list
transformation .y.c complete
defining transformation from `.l' to `.c'
inserting .l(16)...at end of list
inserting .c(5)...at end of list
transformation .l.c complete
defining transformation from `.s' to `.out'
inserting an empty list?...inserting .s(19)...at end of list
inserting .out(1)...before .o(4)
defining transformation from `.c' to `.out'
inserting .c(5)...before .s(19)
inserting .out(1)...before .ln(3)
defining transformation from `.o' to `.out'
inserting .o(4)...before .c(5)
inserting an empty list?...inserting .out(1)...at end of list
transformation .s.out complete
transformation .c.out complete
transformation .o.out complete
defining transformation from `.f' to `.out'
inserting .f(12)...before .s(19)
inserting .out(1)...before .o(4)
defining transformation from `.F' to `.out'
inserting .F(11)...before .f(12)
inserting .out(1)...before .o(4)
defining transformation from `.r' to `.out'
inserting .r(14)...before .s(19)
inserting .out(1)...before .o(4)
defining transformation from `.e' to `.out'
inserting .e(13)...before .r(14)
inserting .out(1)...before .o(4)
transformation .f.out complete
transformation .F.out complete
transformation .r.out complete
transformation .e.out complete
defining transformation from `.y' to `.out'
inserting .y(15)...before .s(19)
inserting .out(1)...before .o(4)
transformation .y.out complete
defining transformation from `.l' to `.out'
inserting .l(16)...before .s(19)
inserting .out(1)...before .o(4)
transformation .l.out complete
Global:__MAKE_CONF = /etc/make.conf
Searching for /etc/make.conf...Looking for "/etc/make.conf"...Caching 10:52:48 Nov 09, 2015 for /etc/make.conf
Searching for /etc/make.conf...Looking for "/etc/make.conf"...got it (in mtime cache)
Global:.MAKEFILE_LIST = /usr/share/mk/sys.mk /etc/make.conf
.include /etc/make.conf
Global:WITH_PKGNG = yes
Global:.MAKEFILE_LIST = /usr/share/mk/sys.mk /etc/make.conf ..
Global:OBJFORMAT = elf
Searching for bsd.compat.mk.../usr/share/mk...here...returning /usr/share/mk/bsd.compat.mk
Global:.MAKEFILE_LIST = /usr/share/mk/sys.mk /etc/make.conf .. /usr/share/mk/bsd.compat.mk
.include /usr/share/mk/bsd.compat.mk
For: Iterator oldnew List NOATM:NO_ATM  NOCLEANDIR:NO_CLEANDIR  NOCRYPT:NO_CRYPT  NODOCCOMPRESS:NO_DOCCOMPRESS  NOEXTRADEPEND:NO_EXTRADEPEND  NOFORTH:NO_FORTH  NOFSCHG:NO_FSCHG  NOGAMES:NO_GAMES  NOHTML:NO_HTML  NOINET6:NO_INET6  NOINFO:NO_INFO  NOINFOCOMPRESS:NO_INFOCOMPRESS  NOINSTALLLIB:NO_INSTALLLIB  NOLIBPTHREAD:NO_LIBPTHREAD  NOLIBTHR:NO_LIBTHR  NOLINT:NO_LINT  NOMAN:NO_MAN  NOMANCOMPRESS:NO_MANCOMPRESS  NOMLINKS:NO_MLINKS  NOOBJ:NO_OBJ  NOPAM:NO_PAM  NOPIC:NO_PIC  NOPROFILE:NO_PROFILE  NO_RCMNDS:NO_RCMDS  NOSHARE:NO_SHARE  NOSHARED:NO_SHARED  NOTAGS:NO_TAGS
For: new loop 2
For: new loop 3
For: end for 3
For: end for 2
For: end for 1
Global:oldnew = NOTAGS:NO_TAGS
--- oldnew = NOTAGS:NO_TAGS
Applying :C to "NOTAGS:NO_TAGS"
Result is "NOTAGS"
Applying :C to "NOTAGS:NO_TAGS"
Result is "NO_TAGS"
.for old in NOTAGS
.for new in NO_TAGS
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOSHARED:NO_SHARED
--- oldnew = NOSHARED:NO_SHARED
Applying :C to "NOSHARED:NO_SHARED"
Result is "NOSHARED"
Applying :C to "NOSHARED:NO_SHARED"
Result is "NO_SHARED"
.for old in NOSHARED
.for new in NO_SHARED
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOSHARE:NO_SHARE
--- oldnew = NOSHARE:NO_SHARE
Applying :C to "NOSHARE:NO_SHARE"
Result is "NOSHARE"
Applying :C to "NOSHARE:NO_SHARE"
Result is "NO_SHARE"
.for old in NOSHARE
.for new in NO_SHARE
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NO_RCMNDS:NO_RCMDS
--- oldnew = NO_RCMNDS:NO_RCMDS
Applying :C to "NO_RCMNDS:NO_RCMDS"
Result is "NO_RCMNDS"
Applying :C to "NO_RCMNDS:NO_RCMDS"
Result is "NO_RCMDS"
.for old in NO_RCMNDS
.for new in NO_RCMDS
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOPROFILE:NO_PROFILE
--- oldnew = NOPROFILE:NO_PROFILE
Applying :C to "NOPROFILE:NO_PROFILE"
Result is "NOPROFILE"
Applying :C to "NOPROFILE:NO_PROFILE"
Result is "NO_PROFILE"
.for old in NOPROFILE
.for new in NO_PROFILE
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOPIC:NO_PIC
--- oldnew = NOPIC:NO_PIC
Applying :C to "NOPIC:NO_PIC"
Result is "NOPIC"
Applying :C to "NOPIC:NO_PIC"
Result is "NO_PIC"
.for old in NOPIC
.for new in NO_PIC
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOPAM:NO_PAM
--- oldnew = NOPAM:NO_PAM
Applying :C to "NOPAM:NO_PAM"
Result is "NOPAM"
Applying :C to "NOPAM:NO_PAM"
Result is "NO_PAM"
.for old in NOPAM
.for new in NO_PAM
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOOBJ:NO_OBJ
--- oldnew = NOOBJ:NO_OBJ
Applying :C to "NOOBJ:NO_OBJ"
Result is "NOOBJ"
Applying :C to "NOOBJ:NO_OBJ"
Result is "NO_OBJ"
.for old in NOOBJ
.for new in NO_OBJ
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOMLINKS:NO_MLINKS
--- oldnew = NOMLINKS:NO_MLINKS
Applying :C to "NOMLINKS:NO_MLINKS"
Result is "NOMLINKS"
Applying :C to "NOMLINKS:NO_MLINKS"
Result is "NO_MLINKS"
.for old in NOMLINKS
.for new in NO_MLINKS
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOMANCOMPRESS:NO_MANCOMPRESS
--- oldnew = NOMANCOMPRESS:NO_MANCOMPRESS
Applying :C to "NOMANCOMPRESS:NO_MANCOMPRESS"
Result is "NOMANCOMPRESS"
Applying :C to "NOMANCOMPRESS:NO_MANCOMPRESS"
Result is "NO_MANCOMPRESS"
.for old in NOMANCOMPRESS
.for new in NO_MANCOMPRESS
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOMAN:NO_MAN
--- oldnew = NOMAN:NO_MAN
Applying :C to "NOMAN:NO_MAN"
Result is "NOMAN"
Applying :C to "NOMAN:NO_MAN"
Result is "NO_MAN"
.for old in NOMAN
.for new in NO_MAN
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOLINT:NO_LINT
--- oldnew = NOLINT:NO_LINT
Applying :C to "NOLINT:NO_LINT"
Result is "NOLINT"
Applying :C to "NOLINT:NO_LINT"
Result is "NO_LINT"
.for old in NOLINT
.for new in NO_LINT
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOLIBTHR:NO_LIBTHR
--- oldnew = NOLIBTHR:NO_LIBTHR
Applying :C to "NOLIBTHR:NO_LIBTHR"
Result is "NOLIBTHR"
Applying :C to "NOLIBTHR:NO_LIBTHR"
Result is "NO_LIBTHR"
.for old in NOLIBTHR
.for new in NO_LIBTHR
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOLIBPTHREAD:NO_LIBPTHREAD
--- oldnew = NOLIBPTHREAD:NO_LIBPTHREAD
Applying :C to "NOLIBPTHREAD:NO_LIBPTHREAD"
Result is "NOLIBPTHREAD"
Applying :C to "NOLIBPTHREAD:NO_LIBPTHREAD"
Result is "NO_LIBPTHREAD"
.for old in NOLIBPTHREAD
.for new in NO_LIBPTHREAD
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOINSTALLLIB:NO_INSTALLLIB
--- oldnew = NOINSTALLLIB:NO_INSTALLLIB
Applying :C to "NOINSTALLLIB:NO_INSTALLLIB"
Result is "NOINSTALLLIB"
Applying :C to "NOINSTALLLIB:NO_INSTALLLIB"
Result is "NO_INSTALLLIB"
.for old in NOINSTALLLIB
.for new in NO_INSTALLLIB
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOINFOCOMPRESS:NO_INFOCOMPRESS
--- oldnew = NOINFOCOMPRESS:NO_INFOCOMPRESS
Applying :C to "NOINFOCOMPRESS:NO_INFOCOMPRESS"
Result is "NOINFOCOMPRESS"
Applying :C to "NOINFOCOMPRESS:NO_INFOCOMPRESS"
Result is "NO_INFOCOMPRESS"
.for old in NOINFOCOMPRESS
.for new in NO_INFOCOMPRESS
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOINFO:NO_INFO
--- oldnew = NOINFO:NO_INFO
Applying :C to "NOINFO:NO_INFO"
Result is "NOINFO"
Applying :C to "NOINFO:NO_INFO"
Result is "NO_INFO"
.for old in NOINFO
.for new in NO_INFO
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOINET6:NO_INET6
--- oldnew = NOINET6:NO_INET6
Applying :C to "NOINET6:NO_INET6"
Result is "NOINET6"
Applying :C to "NOINET6:NO_INET6"
Result is "NO_INET6"
.for old in NOINET6
.for new in NO_INET6
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOHTML:NO_HTML
--- oldnew = NOHTML:NO_HTML
Applying :C to "NOHTML:NO_HTML"
Result is "NOHTML"
Applying :C to "NOHTML:NO_HTML"
Result is "NO_HTML"
.for old in NOHTML
.for new in NO_HTML
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOGAMES:NO_GAMES
--- oldnew = NOGAMES:NO_GAMES
Applying :C to "NOGAMES:NO_GAMES"
Result is "NOGAMES"
Applying :C to "NOGAMES:NO_GAMES"
Result is "NO_GAMES"
.for old in NOGAMES
.for new in NO_GAMES
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOFSCHG:NO_FSCHG
--- oldnew = NOFSCHG:NO_FSCHG
Applying :C to "NOFSCHG:NO_FSCHG"
Result is "NOFSCHG"
Applying :C to "NOFSCHG:NO_FSCHG"
Result is "NO_FSCHG"
.for old in NOFSCHG
.for new in NO_FSCHG
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOFORTH:NO_FORTH
--- oldnew = NOFORTH:NO_FORTH
Applying :C to "NOFORTH:NO_FORTH"
Result is "NOFORTH"
Applying :C to "NOFORTH:NO_FORTH"
Result is "NO_FORTH"
.for old in NOFORTH
.for new in NO_FORTH
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOEXTRADEPEND:NO_EXTRADEPEND
--- oldnew = NOEXTRADEPEND:NO_EXTRADEPEND
Applying :C to "NOEXTRADEPEND:NO_EXTRADEPEND"
Result is "NOEXTRADEPEND"
Applying :C to "NOEXTRADEPEND:NO_EXTRADEPEND"
Result is "NO_EXTRADEPEND"
.for old in NOEXTRADEPEND
.for new in NO_EXTRADEPEND
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NODOCCOMPRESS:NO_DOCCOMPRESS
--- oldnew = NODOCCOMPRESS:NO_DOCCOMPRESS
Applying :C to "NODOCCOMPRESS:NO_DOCCOMPRESS"
Result is "NODOCCOMPRESS"
Applying :C to "NODOCCOMPRESS:NO_DOCCOMPRESS"
Result is "NO_DOCCOMPRESS"
.for old in NODOCCOMPRESS
.for new in NO_DOCCOMPRESS
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOCRYPT:NO_CRYPT
--- oldnew = NOCRYPT:NO_CRYPT
Applying :C to "NOCRYPT:NO_CRYPT"
Result is "NOCRYPT"
Applying :C to "NOCRYPT:NO_CRYPT"
Result is "NO_CRYPT"
.for old in NOCRYPT
.for new in NO_CRYPT
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOCLEANDIR:NO_CLEANDIR
--- oldnew = NOCLEANDIR:NO_CLEANDIR
Applying :C to "NOCLEANDIR:NO_CLEANDIR"
Result is "NOCLEANDIR"
Applying :C to "NOCLEANDIR:NO_CLEANDIR"
Result is "NO_CLEANDIR"
.for old in NOCLEANDIR
.for new in NO_CLEANDIR
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
Global:oldnew = NOATM:NO_ATM
--- oldnew = NOATM:NO_ATM
Applying :C to "NOATM:NO_ATM"
Result is "NOATM"
Applying :C to "NOATM:NO_ATM"
Result is "NO_ATM"
.for old in NOATM
.for new in NO_ATM
.if defined(${old}) && !defined(${new})
.warning ${old} is deprecated in favour of ${new}
${new}=	${${old}}
.endif
.endfor
.endfor

---- at line 31
Global:delete oldnew
For: Iterator old List NOATM
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOATM
--- old = NOATM
.for new in NO_ATM
.if defined(NOATM) && !defined(${new})
.warning NOATM is deprecated in favour of ${new}
${new}=	${NOATM}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_ATM
For: end for 1
Global:new = NO_ATM
--- new = NO_ATM
.if defined(NOATM) && !defined(NO_ATM)
.warning NOATM is deprecated in favour of NO_ATM
NO_ATM=	${NOATM}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOCLEANDIR
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOCLEANDIR
--- old = NOCLEANDIR
.for new in NO_CLEANDIR
.if defined(NOCLEANDIR) && !defined(${new})
.warning NOCLEANDIR is deprecated in favour of ${new}
${new}=	${NOCLEANDIR}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_CLEANDIR
For: end for 1
Global:new = NO_CLEANDIR
--- new = NO_CLEANDIR
.if defined(NOCLEANDIR) && !defined(NO_CLEANDIR)
.warning NOCLEANDIR is deprecated in favour of NO_CLEANDIR
NO_CLEANDIR=	${NOCLEANDIR}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOCRYPT
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOCRYPT
--- old = NOCRYPT
.for new in NO_CRYPT
.if defined(NOCRYPT) && !defined(${new})
.warning NOCRYPT is deprecated in favour of ${new}
${new}=	${NOCRYPT}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_CRYPT
For: end for 1
Global:new = NO_CRYPT
--- new = NO_CRYPT
.if defined(NOCRYPT) && !defined(NO_CRYPT)
.warning NOCRYPT is deprecated in favour of NO_CRYPT
NO_CRYPT=	${NOCRYPT}
.endif

---- at line 33
Global:delete new
For: Iterator old List NODOCCOMPRESS
For: new loop 2
For: end for 2
For: end for 1
Global:old = NODOCCOMPRESS
--- old = NODOCCOMPRESS
.for new in NO_DOCCOMPRESS
.if defined(NODOCCOMPRESS) && !defined(${new})
.warning NODOCCOMPRESS is deprecated in favour of ${new}
${new}=	${NODOCCOMPRESS}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_DOCCOMPRESS
For: end for 1
Global:new = NO_DOCCOMPRESS
--- new = NO_DOCCOMPRESS
.if defined(NODOCCOMPRESS) && !defined(NO_DOCCOMPRESS)
.warning NODOCCOMPRESS is deprecated in favour of NO_DOCCOMPRESS
NO_DOCCOMPRESS=	${NODOCCOMPRESS}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOEXTRADEPEND
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOEXTRADEPEND
--- old = NOEXTRADEPEND
.for new in NO_EXTRADEPEND
.if defined(NOEXTRADEPEND) && !defined(${new})
.warning NOEXTRADEPEND is deprecated in favour of ${new}
${new}=	${NOEXTRADEPEND}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_EXTRADEPEND
For: end for 1
Global:new = NO_EXTRADEPEND
--- new = NO_EXTRADEPEND
.if defined(NOEXTRADEPEND) && !defined(NO_EXTRADEPEND)
.warning NOEXTRADEPEND is deprecated in favour of NO_EXTRADEPEND
NO_EXTRADEPEND=	${NOEXTRADEPEND}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOFORTH
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOFORTH
--- old = NOFORTH
.for new in NO_FORTH
.if defined(NOFORTH) && !defined(${new})
.warning NOFORTH is deprecated in favour of ${new}
${new}=	${NOFORTH}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_FORTH
For: end for 1
Global:new = NO_FORTH
--- new = NO_FORTH
.if defined(NOFORTH) && !defined(NO_FORTH)
.warning NOFORTH is deprecated in favour of NO_FORTH
NO_FORTH=	${NOFORTH}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOFSCHG
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOFSCHG
--- old = NOFSCHG
.for new in NO_FSCHG
.if defined(NOFSCHG) && !defined(${new})
.warning NOFSCHG is deprecated in favour of ${new}
${new}=	${NOFSCHG}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_FSCHG
For: end for 1
Global:new = NO_FSCHG
--- new = NO_FSCHG
.if defined(NOFSCHG) && !defined(NO_FSCHG)
.warning NOFSCHG is deprecated in favour of NO_FSCHG
NO_FSCHG=	${NOFSCHG}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOGAMES
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOGAMES
--- old = NOGAMES
.for new in NO_GAMES
.if defined(NOGAMES) && !defined(${new})
.warning NOGAMES is deprecated in favour of ${new}
${new}=	${NOGAMES}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_GAMES
For: end for 1
Global:new = NO_GAMES
--- new = NO_GAMES
.if defined(NOGAMES) && !defined(NO_GAMES)
.warning NOGAMES is deprecated in favour of NO_GAMES
NO_GAMES=	${NOGAMES}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOHTML
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOHTML
--- old = NOHTML
.for new in NO_HTML
.if defined(NOHTML) && !defined(${new})
.warning NOHTML is deprecated in favour of ${new}
${new}=	${NOHTML}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_HTML
For: end for 1
Global:new = NO_HTML
--- new = NO_HTML
.if defined(NOHTML) && !defined(NO_HTML)
.warning NOHTML is deprecated in favour of NO_HTML
NO_HTML=	${NOHTML}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOINET6
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOINET6
--- old = NOINET6
.for new in NO_INET6
.if defined(NOINET6) && !defined(${new})
.warning NOINET6 is deprecated in favour of ${new}
${new}=	${NOINET6}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_INET6
For: end for 1
Global:new = NO_INET6
--- new = NO_INET6
.if defined(NOINET6) && !defined(NO_INET6)
.warning NOINET6 is deprecated in favour of NO_INET6
NO_INET6=	${NOINET6}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOINFO
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOINFO
--- old = NOINFO
.for new in NO_INFO
.if defined(NOINFO) && !defined(${new})
.warning NOINFO is deprecated in favour of ${new}
${new}=	${NOINFO}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_INFO
For: end for 1
Global:new = NO_INFO
--- new = NO_INFO
.if defined(NOINFO) && !defined(NO_INFO)
.warning NOINFO is deprecated in favour of NO_INFO
NO_INFO=	${NOINFO}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOINFOCOMPRESS
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOINFOCOMPRESS
--- old = NOINFOCOMPRESS
.for new in NO_INFOCOMPRESS
.if defined(NOINFOCOMPRESS) && !defined(${new})
.warning NOINFOCOMPRESS is deprecated in favour of ${new}
${new}=	${NOINFOCOMPRESS}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_INFOCOMPRESS
For: end for 1
Global:new = NO_INFOCOMPRESS
--- new = NO_INFOCOMPRESS
.if defined(NOINFOCOMPRESS) && !defined(NO_INFOCOMPRESS)
.warning NOINFOCOMPRESS is deprecated in favour of NO_INFOCOMPRESS
NO_INFOCOMPRESS=	${NOINFOCOMPRESS}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOINSTALLLIB
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOINSTALLLIB
--- old = NOINSTALLLIB
.for new in NO_INSTALLLIB
.if defined(NOINSTALLLIB) && !defined(${new})
.warning NOINSTALLLIB is deprecated in favour of ${new}
${new}=	${NOINSTALLLIB}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_INSTALLLIB
For: end for 1
Global:new = NO_INSTALLLIB
--- new = NO_INSTALLLIB
.if defined(NOINSTALLLIB) && !defined(NO_INSTALLLIB)
.warning NOINSTALLLIB is deprecated in favour of NO_INSTALLLIB
NO_INSTALLLIB=	${NOINSTALLLIB}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOLIBPTHREAD
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOLIBPTHREAD
--- old = NOLIBPTHREAD
.for new in NO_LIBPTHREAD
.if defined(NOLIBPTHREAD) && !defined(${new})
.warning NOLIBPTHREAD is deprecated in favour of ${new}
${new}=	${NOLIBPTHREAD}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_LIBPTHREAD
For: end for 1
Global:new = NO_LIBPTHREAD
--- new = NO_LIBPTHREAD
.if defined(NOLIBPTHREAD) && !defined(NO_LIBPTHREAD)
.warning NOLIBPTHREAD is deprecated in favour of NO_LIBPTHREAD
NO_LIBPTHREAD=	${NOLIBPTHREAD}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOLIBTHR
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOLIBTHR
--- old = NOLIBTHR
.for new in NO_LIBTHR
.if defined(NOLIBTHR) && !defined(${new})
.warning NOLIBTHR is deprecated in favour of ${new}
${new}=	${NOLIBTHR}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_LIBTHR
For: end for 1
Global:new = NO_LIBTHR
--- new = NO_LIBTHR
.if defined(NOLIBTHR) && !defined(NO_LIBTHR)
.warning NOLIBTHR is deprecated in favour of NO_LIBTHR
NO_LIBTHR=	${NOLIBTHR}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOLINT
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOLINT
--- old = NOLINT
.for new in NO_LINT
.if defined(NOLINT) && !defined(${new})
.warning NOLINT is deprecated in favour of ${new}
${new}=	${NOLINT}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_LINT
For: end for 1
Global:new = NO_LINT
--- new = NO_LINT
.if defined(NOLINT) && !defined(NO_LINT)
.warning NOLINT is deprecated in favour of NO_LINT
NO_LINT=	${NOLINT}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOMAN
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOMAN
--- old = NOMAN
.for new in NO_MAN
.if defined(NOMAN) && !defined(${new})
.warning NOMAN is deprecated in favour of ${new}
${new}=	${NOMAN}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_MAN
For: end for 1
Global:new = NO_MAN
--- new = NO_MAN
.if defined(NOMAN) && !defined(NO_MAN)
.warning NOMAN is deprecated in favour of NO_MAN
NO_MAN=	${NOMAN}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOMANCOMPRESS
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOMANCOMPRESS
--- old = NOMANCOMPRESS
.for new in NO_MANCOMPRESS
.if defined(NOMANCOMPRESS) && !defined(${new})
.warning NOMANCOMPRESS is deprecated in favour of ${new}
${new}=	${NOMANCOMPRESS}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_MANCOMPRESS
For: end for 1
Global:new = NO_MANCOMPRESS
--- new = NO_MANCOMPRESS
.if defined(NOMANCOMPRESS) && !defined(NO_MANCOMPRESS)
.warning NOMANCOMPRESS is deprecated in favour of NO_MANCOMPRESS
NO_MANCOMPRESS=	${NOMANCOMPRESS}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOMLINKS
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOMLINKS
--- old = NOMLINKS
.for new in NO_MLINKS
.if defined(NOMLINKS) && !defined(${new})
.warning NOMLINKS is deprecated in favour of ${new}
${new}=	${NOMLINKS}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_MLINKS
For: end for 1
Global:new = NO_MLINKS
--- new = NO_MLINKS
.if defined(NOMLINKS) && !defined(NO_MLINKS)
.warning NOMLINKS is deprecated in favour of NO_MLINKS
NO_MLINKS=	${NOMLINKS}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOOBJ
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOOBJ
--- old = NOOBJ
.for new in NO_OBJ
.if defined(NOOBJ) && !defined(${new})
.warning NOOBJ is deprecated in favour of ${new}
${new}=	${NOOBJ}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_OBJ
For: end for 1
Global:new = NO_OBJ
--- new = NO_OBJ
.if defined(NOOBJ) && !defined(NO_OBJ)
.warning NOOBJ is deprecated in favour of NO_OBJ
NO_OBJ=	${NOOBJ}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOPAM
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOPAM
--- old = NOPAM
.for new in NO_PAM
.if defined(NOPAM) && !defined(${new})
.warning NOPAM is deprecated in favour of ${new}
${new}=	${NOPAM}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_PAM
For: end for 1
Global:new = NO_PAM
--- new = NO_PAM
.if defined(NOPAM) && !defined(NO_PAM)
.warning NOPAM is deprecated in favour of NO_PAM
NO_PAM=	${NOPAM}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOPIC
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOPIC
--- old = NOPIC
.for new in NO_PIC
.if defined(NOPIC) && !defined(${new})
.warning NOPIC is deprecated in favour of ${new}
${new}=	${NOPIC}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_PIC
For: end for 1
Global:new = NO_PIC
--- new = NO_PIC
.if defined(NOPIC) && !defined(NO_PIC)
.warning NOPIC is deprecated in favour of NO_PIC
NO_PIC=	${NOPIC}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOPROFILE
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOPROFILE
--- old = NOPROFILE
.for new in NO_PROFILE
.if defined(NOPROFILE) && !defined(${new})
.warning NOPROFILE is deprecated in favour of ${new}
${new}=	${NOPROFILE}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_PROFILE
For: end for 1
Global:new = NO_PROFILE
--- new = NO_PROFILE
.if defined(NOPROFILE) && !defined(NO_PROFILE)
.warning NOPROFILE is deprecated in favour of NO_PROFILE
NO_PROFILE=	${NOPROFILE}
.endif

---- at line 33
Global:delete new
For: Iterator old List NO_RCMNDS
For: new loop 2
For: end for 2
For: end for 1
Global:old = NO_RCMNDS
--- old = NO_RCMNDS
.for new in NO_RCMDS
.if defined(NO_RCMNDS) && !defined(${new})
.warning NO_RCMNDS is deprecated in favour of ${new}
${new}=	${NO_RCMNDS}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_RCMDS
For: end for 1
Global:new = NO_RCMDS
--- new = NO_RCMDS
.if defined(NO_RCMNDS) && !defined(NO_RCMDS)
.warning NO_RCMNDS is deprecated in favour of NO_RCMDS
NO_RCMDS=	${NO_RCMNDS}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOSHARE
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOSHARE
--- old = NOSHARE
.for new in NO_SHARE
.if defined(NOSHARE) && !defined(${new})
.warning NOSHARE is deprecated in favour of ${new}
${new}=	${NOSHARE}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_SHARE
For: end for 1
Global:new = NO_SHARE
--- new = NO_SHARE
.if defined(NOSHARE) && !defined(NO_SHARE)
.warning NOSHARE is deprecated in favour of NO_SHARE
NO_SHARE=	${NOSHARE}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOSHARED
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOSHARED
--- old = NOSHARED
.for new in NO_SHARED
.if defined(NOSHARED) && !defined(${new})
.warning NOSHARED is deprecated in favour of ${new}
${new}=	${NOSHARED}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_SHARED
For: end for 1
Global:new = NO_SHARED
--- new = NO_SHARED
.if defined(NOSHARED) && !defined(NO_SHARED)
.warning NOSHARED is deprecated in favour of NO_SHARED
NO_SHARED=	${NOSHARED}
.endif

---- at line 33
Global:delete new
For: Iterator old List NOTAGS
For: new loop 2
For: end for 2
For: end for 1
Global:old = NOTAGS
--- old = NOTAGS
.for new in NO_TAGS
.if defined(NOTAGS) && !defined(${new})
.warning NOTAGS is deprecated in favour of ${new}
${new}=	${NOTAGS}
.endif
.endfor

---- at line 32
Global:delete old
For: Iterator new List NO_TAGS
For: end for 1
Global:new = NO_TAGS
--- new = NO_TAGS
.if defined(NOTAGS) && !defined(NO_TAGS)
.warning NOTAGS is deprecated in favour of NO_TAGS
NO_TAGS=	${NOTAGS}
.endif

---- at line 33
Global:delete new
Global:.MAKEFILE_LIST = /usr/share/mk/sys.mk /etc/make.conf .. /usr/share/mk/bsd.compat.mk ..
Searching for bsd.cpu.mk.../usr/share/mk...here...returning /usr/share/mk/bsd.cpu.mk
Global:.MAKEFILE_LIST = /usr/share/mk/sys.mk /etc/make.conf .. /usr/share/mk/bsd.compat.mk .. /usr/share/mk/bsd.cpu.mk
.include /usr/share/mk/bsd.cpu.mk
Global:_CPUCFLAGS = 
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
lhs = "amd64", rhs = "i386", op = ==
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
lhs = "amd64", rhs = "amd64", op = ==
Global:MACHINE_CPU = amd64 sse2 sse mmx
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
lhs = "amd64", rhs = "ia64", op = ==
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
lhs = "amd64", rhs = "powerpc", op = ==
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
lhs = "amd64", rhs = "sparc64", op = ==
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
lhs = "amd64", rhs = "arm", op = ==
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
lhs = "amd64", rhs = "mips", op = ==
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
Applying :C to "amd64"
Result is "amd64"
lhs = "amd64", rhs = "mips", op = ==
Global:CFLAGS = -O2 -pipe ${_CPUCFLAGS}
Global:.MAKEFILE_LIST = /usr/share/mk/sys.mk /etc/make.conf .. /usr/share/mk/bsd.compat.mk .. /usr/share/mk/bsd.cpu.mk ..
Global:.MAKEFILE_LIST = /usr/share/mk/sys.mk /etc/make.conf .. /usr/share/mk/bsd.compat.mk .. /usr/share/mk/bsd.cpu.mk .. ..
Searching for BSDmakefile...failed.
Searching for BSDmakefile.../usr/share/mk...failed.
Searching for makefile...failed.
Searching for makefile.../usr/share/mk...failed.
Global:MAKEFILE = Makefile
Global:.MAKEFILE_LIST = /usr/share/mk/sys.mk /etc/make.conf .. /usr/share/mk/bsd.compat.mk .. /usr/share/mk/bsd.cpu.mk .. .. Makefile
Global:MACHINE_TYPE = x86_64
Global:COMPILER_TARG_DIR = /usr/src/contrib/obj/osprey/targdir
Global:LIB_BUILD_AREA = /usr/src/contrib/obj/osprey/targdir_lib
Global:LIB2_BUILD_AREA = /usr/src/contrib/obj/osprey/targdir_lib2
Global:NATIVE_BUILD_DIR = osprey/targdir
Global:NATIVE_BUILD_DIR_LD = osprey/cygnus
Global:GNUFE_BUILD_DIR = osprey-gcc-4.2.0
Global:GNUFE_BUILD_SUBDIR = osprey-gcc-4.2.0/host-unknown
Global:LIB_MACHINE_TYPE = IA32
Global:LIB_BUILD_TARGET = IA32
Global:LIB_BUILD_ABI = I32BIT
Global:LIB_BUILD_ARCH = IA32
Global:LIB_BUILD_HOST = X8664
Global:LIB2_MACHINE_TYPE = X86_64
Global:LIB2_BUILD_TARGET = X8664
Global:LIB2_BUILD_ABI = I64BIT
Global:LIB2_BUILD_ARCH = X8664
Global:LIB2_BUILD_HOST = X8664
Global:LIB_BUILD_DIR = osprey/targdir_lib
Global:LIB2_BUILD_DIR = osprey/targdir_lib2
Global:TOP_SRCDIR = /usr/src/contrib/obj/../x86_open64-4.5.2.1-1
Global:TOP_BUILDDIR = /usr/src/contrib/obj
Global:BUILD_VENDOR = 
Global:BUILD_TARGET = X8664
Global:BUILD_MULTILIB = NO
Global:BUILD_GNU3 = 
Global:BUILD_FORTRAN = YES
Global:BUILD_TYPE = SHARED
Global:BUILD_SKIP_IPA = 
lhs = "x86_64", rhs = "ia64", op = ==
lhs = "x86_64", rhs = "i386", op = ==
lhs = "x86_64", rhs = "x86_64", op = ==
Global:GNUFE_BUILD_HOST = x86_64-redhat-linux
Global:CROSS_BUILD = false
Global:BASIC_COMPONENTS = $(NATIVE_BUILD_DIR)/driver/driver  $(NATIVE_BUILD_DIR)/be/be  $(NATIVE_BUILD_DIR)/lw_inline/inline  $(NATIVE_BUILD_DIR)/whirl2c/whirl2c  $(NATIVE_BUILD_DIR)/ir_tools/ir_b2a
lhs = "SHARED", rhs = "SHARED", op = ==
Global:BASIC_COMPONENTS = $(NATIVE_BUILD_DIR)/driver/driver  $(NATIVE_BUILD_DIR)/be/be  $(NATIVE_BUILD_DIR)/lw_inline/inline  $(NATIVE_BUILD_DIR)/whirl2c/whirl2c  $(NATIVE_BUILD_DIR)/ir_tools/ir_b2a $(NATIVE_BUILD_DIR)/be/be.so  $(NATIVE_BUILD_DIR)/cg/cg.so  $(NATIVE_BUILD_DIR)/wopt/wopt.so  $(NATIVE_BUILD_DIR)/lno/lno.so  $(NATIVE_BUILD_DIR)/whirl2c/whirl2c.so
lhs = "", rhs = "YES", op = !=
Global:BASIC_COMPONENTS = $(NATIVE_BUILD_DIR)/driver/driver  $(NATIVE_BUILD_DIR)/be/be  $(NATIVE_BUILD_DIR)/lw_inline/inline  $(NATIVE_BUILD_DIR)/whirl2c/whirl2c  $(NATIVE_BUILD_DIR)/ir_tools/ir_b2a $(NATIVE_BUILD_DIR)/be/be.so  $(NATIVE_BUILD_DIR)/cg/cg.so  $(NATIVE_BUILD_DIR)/wopt/wopt.so  $(NATIVE_BUILD_DIR)/lno/lno.so  $(NATIVE_BUILD_DIR)/whirl2c/whirl2c.so $(NATIVE_BUILD_DIR)/ipa/ipa.so  $(NATIVE_BUILD_DIR)/ipl/ipl.so  $(NATIVE_BUILD_DIR)/ipl/ipl  $(NATIVE_BUILD_DIR_LD)/ld/ld-new
lhs = "YES", rhs = "YES", op = ==
Global:BASIC_COMPONENTS = $(NATIVE_BUILD_DIR)/driver/driver  $(NATIVE_BUILD_DIR)/be/be  $(NATIVE_BUILD_DIR)/lw_inline/inline  $(NATIVE_BUILD_DIR)/whirl2c/whirl2c  $(NATIVE_BUILD_DIR)/ir_tools/ir_b2a $(NATIVE_BUILD_DIR)/be/be.so  $(NATIVE_BUILD_DIR)/cg/cg.so  $(NATIVE_BUILD_DIR)/wopt/wopt.so  $(NATIVE_BUILD_DIR)/lno/lno.so  $(NATIVE_BUILD_DIR)/whirl2c/whirl2c.so $(NATIVE_BUILD_DIR)/ipa/ipa.so  $(NATIVE_BUILD_DIR)/ipl/ipl.so  $(NATIVE_BUILD_DIR)/ipl/ipl  $(NATIVE_BUILD_DIR_LD)/ld/ld-new $(NATIVE_BUILD_DIR)/whirl2f/whirl2f
lhs = "SHARED", rhs = "SHARED", op = ==
Global:BASIC_COMPONENTS = $(NATIVE_BUILD_DIR)/driver/driver  $(NATIVE_BUILD_DIR)/be/be  $(NATIVE_BUILD_DIR)/lw_inline/inline  $(NATIVE_BUILD_DIR)/whirl2c/whirl2c  $(NATIVE_BUILD_DIR)/ir_tools/ir_b2a $(NATIVE_BUILD_DIR)/be/be.so  $(NATIVE_BUILD_DIR)/cg/cg.so  $(NATIVE_BUILD_DIR)/wopt/wopt.so  $(NATIVE_BUILD_DIR)/lno/lno.so  $(NATIVE_BUILD_DIR)/whirl2c/whirl2c.so $(NATIVE_BUILD_DIR)/ipa/ipa.so  $(NATIVE_BUILD_DIR)/ipl/ipl.so  $(NATIVE_BUILD_DIR)/ipl/ipl  $(NATIVE_BUILD_DIR_LD)/ld/ld-new $(NATIVE_BUILD_DIR)/whirl2f/whirl2f $(NATIVE_BUILD_DIR)/whirl2f/whirl2f.so
Global:GNU4_FE_COMPONENTS = $(NATIVE_BUILD_DIR)/wgen/wgen42  $(GNUFE_BUILD_SUBDIR)/gcc/cc1  $(GNUFE_BUILD_SUBDIR)/gcc/cc1plus
Global:GNU3_FE_COMPONENTS = $(NATIVE_BUILD_DIR)/gccfe/gfec  $(NATIVE_BUILD_DIR)/g++fe/gfecc
lhs = "YES", rhs = "YES", op = ==
Global:FORT_FE_COMPONENTS = $(NATIVE_BUILD_DIR)/crayf90/sgi/mfef95
Global:FIRST_COMPONENTS = $(NATIVE_BUILD_DIR)/include  $(NATIVE_BUILD_DIR)/libcomutil  $(NATIVE_BUILD_DIR)/libcmplrs  $(NATIVE_BUILD_DIR)/libiberty  $(NATIVE_BUILD_DIR)/targ_info  $(NATIVE_BUILD_DIR)/libelf  $(NATIVE_BUILD_DIR)/libelfutil  $(NATIVE_BUILD_DIR)/libdwarf  $(NATIVE_BUILD_DIR)/libunwindP  $(NATIVE_BUILD_DIR)/libcif  $(NATIVE_BUILD_DIR)/arith
Global:NATIVE_COMPONENTS = $(BASIC_COMPONENTS) $(TARGET_EXTRA_OBJ)   $(GNU4_FE_COMPONENTS) $(FORT_FE_COMPONENTS)  $(FIRST_COMPONENTS)
lhs = "", rhs = "YES", op = ==
Global:CROSS_COMPONENTS = $(BASIC_COMPONENTS) $(TARGET_EXTRA_OBJ)  $(FORT_FE_COMPONENTS)
Global:BASIC_PHONY_TARGET = $(shell for i in $(BASIC_COMPONENTS); do basename "$$i" ; done)
Global:CROSS_PHONY_TARGET = $(shell for i in $(CROSS_COMPONENTS); do basename "$$i" ; done)
Global:PHONY_TARGET = $(shell for i in $(NATIVE_COMPONENTS); do basename "$$i" ; done)
Error expanding embedded variable.
#*** Input graph:
#
# No unmade children
# unmade
.NOPATH         : .NOTMAIN




#
#   Files that are only sources:
#*** Global Variables:
PHONY_TARGET     = $(shell for i in $(NATIVE_COMPONENTS); do basename "$$i" ; done)
CROSS_PHONY_TARGET = $(shell for i in $(CROSS_COMPONENTS); do basename "$$i" ; done)
BASIC_PHONY_TARGET = $(shell for i in $(BASIC_COMPONENTS); do basename "$$i" ; done)
CROSS_COMPONENTS = $(BASIC_COMPONENTS) $(TARGET_EXTRA_OBJ)  $(FORT_FE_COMPONENTS)
NATIVE_COMPONENTS = $(BASIC_COMPONENTS) $(TARGET_EXTRA_OBJ)   $(GNU4_FE_COMPONENTS) $(FORT_FE_COMPONENTS)  $(FIRST_COMPONENTS)
FIRST_COMPONENTS = $(NATIVE_BUILD_DIR)/include  $(NATIVE_BUILD_DIR)/libcomutil  $(NATIVE_BUILD_DIR)/libcmplrs  $(NATIVE_BUILD_DIR)/libiberty  $(NATIVE_BUILD_DIR)/targ_info  $(NATIVE_BUILD_DIR)/libelf  $(NATIVE_BUILD_DIR)/libelfutil  $(NATIVE_BUILD_DIR)/libdwarf  $(NATIVE_BUILD_DIR)/libunwindP  $(NATIVE_BUILD_DIR)/libcif  $(NATIVE_BUILD_DIR)/arith
FORT_FE_COMPONENTS = $(NATIVE_BUILD_DIR)/crayf90/sgi/mfef95
GNU3_FE_COMPONENTS = $(NATIVE_BUILD_DIR)/gccfe/gfec  $(NATIVE_BUILD_DIR)/g++fe/gfecc
GNU4_FE_COMPONENTS = $(NATIVE_BUILD_DIR)/wgen/wgen42  $(GNUFE_BUILD_SUBDIR)/gcc/cc1  $(GNUFE_BUILD_SUBDIR)/gcc/cc1plus
BASIC_COMPONENTS = $(NATIVE_BUILD_DIR)/driver/driver  $(NATIVE_BUILD_DIR)/be/be  $(NATIVE_BUILD_DIR)/lw_inline/inline  $(NATIVE_BUILD_DIR)/whirl2c/whirl2c  $(NATIVE_BUILD_DIR)/ir_tools/ir_b2a $(NATIVE_BUILD_DIR)/be/be.so  $(NATIVE_BUILD_DIR)/cg/cg.so  $(NATIVE_BUILD_DIR)/wopt/wopt.so  $(NATIVE_BUILD_DIR)/lno/lno.so  $(NATIVE_BUILD_DIR)/whirl2c/whirl2c.so $(NATIVE_BUILD_DIR)/ipa/ipa.so  $(NATIVE_BUILD_DIR)/ipl/ipl.so  $(NATIVE_BUILD_DIR)/ipl/ipl  $(NATIVE_BUILD_DIR_LD)/ld/ld-new $(NATIVE_BUILD_DIR)/whirl2f/whirl2f $(NATIVE_BUILD_DIR)/whirl2f/whirl2f.so
CROSS_BUILD      = false
GNUFE_BUILD_HOST = x86_64-redhat-linux
BUILD_SKIP_IPA   = 
BUILD_TYPE       = SHARED
BUILD_FORTRAN    = YES
BUILD_GNU3       = 
BUILD_MULTILIB   = NO
BUILD_TARGET     = X8664
BUILD_VENDOR     = 
TOP_BUILDDIR     = /usr/src/contrib/obj
TOP_SRCDIR       = /usr/src/contrib/obj/../x86_open64-4.5.2.1-1
LIB2_BUILD_DIR   = osprey/targdir_lib2
LIB_BUILD_DIR    = osprey/targdir_lib
LIB2_BUILD_HOST  = X8664
LIB2_BUILD_ARCH  = X8664
LIB2_BUILD_ABI   = I64BIT
LIB2_BUILD_TARGET = X8664
LIB2_MACHINE_TYPE = X86_64
LIB_BUILD_HOST   = X8664
LIB_BUILD_ARCH   = IA32
LIB_BUILD_ABI    = I32BIT
LIB_BUILD_TARGET = IA32
LIB_MACHINE_TYPE = IA32
GNUFE_BUILD_SUBDIR = osprey-gcc-4.2.0/host-unknown
GNUFE_BUILD_DIR  = osprey-gcc-4.2.0
NATIVE_BUILD_DIR_LD = osprey/cygnus
NATIVE_BUILD_DIR = osprey/targdir
LIB2_BUILD_AREA  = /usr/src/contrib/obj/osprey/targdir_lib2
LIB_BUILD_AREA   = /usr/src/contrib/obj/osprey/targdir_lib
COMPILER_TARG_DIR = /usr/src/contrib/obj/osprey/targdir
MACHINE_TYPE     = x86_64
_CPUCFLAGS       = 
OBJFORMAT        = elf
WITH_PKGNG       = yes
__MAKE_CONF      = /etc/make.conf
YFLAGS           = -d
YACC             = yacc
RFLAGS           = 
RC               = f77
PFLAGS           = 
PC               = pc
OBJCOPY          = objcopy
OBJCFLAGS        = ${OBJCINCLUDES} ${CFLAGS} -Wno-import
OBJC             = cc
LINTLIBFLAGS     = -cghapbxu -C ${LIB}
LINTOBJKERNFLAGS = ${LINTOBJFLAGS}
LINTOBJFLAGS     = -cghapbxu -i
LINTKERNFLAGS    = ${LINTFLAGS}
LINTFLAGS        = -cghapbx
LINT             = lint
LDFLAGS          = 
LD               = ld
LFLAGS           = 
LEX              = lex
INSTALL          = install
EFLAGS           = 
FFLAGS           = -O
FC               = f77
_+_              = +
ECHODIR          = echo
ECHO             = echo
CPP              = cpp
PO_CXXFLAGS      = ${CXXFLAGS}
CXXFLAGS         = ${CFLAGS:N-std=*:N-Wnested-externs:N-W*-prototypes:N-Wno-pointer-sign:N-Wold-style-definition}
CXX              = c++
DTRACE           = dtrace
CTFMERGE         = ctfmerge
CTFCONVERT       = ctfconvert
CTFFLAGS         = -L VERSION
PO_CFLAGS        = ${CFLAGS}
CFLAGS           = -O2 -pipe ${_CPUCFLAGS}
CC               = cc
ACFLAGS          = 
AFLAGS           = 
AS               = as
RANLIB           = ranlib
ARFLAGS          = rl
AR               = ar
MACHINE_CPUARCH  = ${MACHINE_ARCH:C/mips.*e[lb]/mips/:C/armeb/arm/:C/powerpc64/powerpc/}
.FreeBSD         = true
unix             = We run FreeBSD, not UNIX.
.MAKEFILE_LIST   = /usr/share/mk/sys.mk /etc/make.conf .. /usr/share/mk/bsd.compat.mk .. /usr/share/mk/bsd.cpu.mk .. .. Makefile
MAKEFILE         = Makefile
.TARGETS         = all
.OBJDIR          = /usr/src/contrib/obj
.CURDIR          = /usr/src/contrib/obj
.ST_EXPORTVAR    = YES
.MAKE.JOB.PREFIX = ---
.MAKE.PPID       = 57295
.MAKE.PID        = 57296
.newline         = 

MAKE_VERSION     = 9201210220
MACHINE_CPU      = amd64 sse2 sse mmx
MACHINE_ARCH     = amd64
MACHINE          = amd64
MFLAGS           =  -v -v -v -d A
.MAKEFLAGS       =  -v -v -v -d A
MAKE             = make
#*** Command-line Variables:

#*** Directory Cache:
# Stats: 2 hits 5 misses 0 near misses 2 losers (50%)
# directory            referenced	hits
# .                             2	   0
# /usr/share/mk                 2	   2

#*** Suffixes:
# `.out' [9] 
#	To: 
#	From: `.o' `.c' `.F' `.f' `.e' `.r' `.y' `.l' `.s' 
#	Search Path: 
# `.a' [0] 
#	To: 
#	From: 
#	Search Path: 
# `.ln' [5] 
#	To: 
#	From: `.c' `.cc' `.cpp' `.cxx' `.C' 
#	Search Path: 
# `.o' [17] 
#	To: `.out' 
#	From: `.c' `.cc' `.cpp' `.cxx' `.C' `.m' `.F' `.f' `.e' `.r' `.y' `.l' `.S' `.asm' `.s' `.p' 
#	Search Path: 
# `.c' [6] 
#	To: `' `.out' `.ln' `.o' 
#	From: `.y' `.l' 
#	Search Path: 
# `.cc' [3] 
#	To: `' `.ln' `.o' 
#	From: 
#	Search Path: 
# `.cpp' [3] 
#	To: `' `.ln' `.o' 
#	From: 
#	Search Path: 
# `.cxx' [3] 
#	To: `' `.ln' `.o' 
#	From: 
#	Search Path: 
# `.C' [3] 
#	To: `' `.ln' `.o' 
#	From: 
#	Search Path: 
# `.m' [1] 
#	To: `.o' 
#	From: 
#	Search Path: 
# `.F' [3] 
#	To: `' `.out' `.o' 
#	From: 
#	Search Path: 
# `.f' [3] 
#	To: `' `.out' `.o' 
#	From: 
#	Search Path: 
# `.e' [3] 
#	To: `' `.out' `.o' 
#	From: 
#	Search Path: 
# `.r' [3] 
#	To: `' `.out' `.o' 
#	From: 
#	Search Path: 
# `.y' [3] 
#	To: `.out' `.o' `.c' 
#	From: 
#	Search Path: 
# `.l' [3] 
#	To: `.out' `.o' `.c' 
#	From: 
#	Search Path: 
# `.S' [1] 
#	To: `.o' 
#	From: 
#	Search Path: 
# `.asm' [1] 
#	To: `.o' 
#	From: 
#	Search Path: 
# `.s' [2] 
#	To: `.out' `.o' 
#	From: 
#	Search Path: 
# `.cl' [0] 
#	To: 
#	From: 
#	Search Path: 
# `.p' [1] 
#	To: `.o' 
#	From: 
#	Search Path: 
# `.h' [0] 
#	To: 
#	From: 
#	Search Path: 
# `.sh' [1] 
#	To: `' 
#	From: 
#	Search Path: 
#*** Transformations:
.sh             : 
	cp -fp ${.IMPSRC} ${.TARGET}
	chmod a+x ${.TARGET}

.c.ln           : 
	${LINT} ${LINTOBJFLAGS} ${CFLAGS:M-[DIU]*} ${.IMPSRC} ||  touch ${.TARGET}

.cc.ln          : 
	${LINT} ${LINTOBJFLAGS} ${CXXFLAGS:M-[DIU]*} ${.IMPSRC} ||  touch ${.TARGET}

.C.ln           : 
	${LINT} ${LINTOBJFLAGS} ${CXXFLAGS:M-[DIU]*} ${.IMPSRC} ||  touch ${.TARGET}

.cpp.ln         : 
	${LINT} ${LINTOBJFLAGS} ${CXXFLAGS:M-[DIU]*} ${.IMPSRC} ||  touch ${.TARGET}

.cxx.ln         : 
	${LINT} ${LINTOBJFLAGS} ${CXXFLAGS:M-[DIU]*} ${.IMPSRC} ||  touch ${.TARGET}

.c              : 
	${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}
	${CTFCONVERT_CMD}

.c.o            : 
	${CC} ${CFLAGS} -c ${.IMPSRC}
	${CTFCONVERT_CMD}

.cc             : 
	${CXX} ${CXXFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}

.cpp            : 
	${CXX} ${CXXFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}

.cxx            : 
	${CXX} ${CXXFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}

.C              : 
	${CXX} ${CXXFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}

.cc.o           : 
	${CXX} ${CXXFLAGS} -c ${.IMPSRC}

.cpp.o          : 
	${CXX} ${CXXFLAGS} -c ${.IMPSRC}

.cxx.o          : 
	${CXX} ${CXXFLAGS} -c ${.IMPSRC}

.C.o            : 
	${CXX} ${CXXFLAGS} -c ${.IMPSRC}

.m.o            : 
	${OBJC} ${OBJCFLAGS} -c ${.IMPSRC}
	${CTFCONVERT_CMD}

.p.o            : 
	${PC} ${PFLAGS} -c ${.IMPSRC}
	${CTFCONVERT_CMD}

.e              : 
	${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS}  -o ${.TARGET}

.r              : 
	${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS}  -o ${.TARGET}

.F              : 
	${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS}  -o ${.TARGET}

.f              : 
	${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS}  -o ${.TARGET}

.e.o            : 
	${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} -c ${.IMPSRC}

.r.o            : 
	${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} -c ${.IMPSRC}

.F.o            : 
	${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} -c ${.IMPSRC}

.f.o            : 
	${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} -c ${.IMPSRC}

.S.o            : 
	${CC} ${CFLAGS} ${ACFLAGS} -c ${.IMPSRC}
	${CTFCONVERT_CMD}

.asm.o          : 
	${CC} -x assembler-with-cpp ${CFLAGS} ${ACFLAGS} -c ${.IMPSRC}
	${CTFCONVERT_CMD}

.s.o            : 
	${AS} ${AFLAGS} -o ${.TARGET} ${.IMPSRC}
	${CTFCONVERT_CMD}

.y.o            : 
	${YACC} ${YFLAGS} ${.IMPSRC}
	${CC} ${CFLAGS} -c y.tab.c -o ${.TARGET}
	rm -f y.tab.c
	${CTFCONVERT_CMD}

.l.o            : 
	${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.PREFIX}.tmp.c
	${CC} ${CFLAGS} -c ${.PREFIX}.tmp.c -o ${.TARGET}
	rm -f ${.PREFIX}.tmp.c
	${CTFCONVERT_CMD}

.y.c            : 
	${YACC} ${YFLAGS} ${.IMPSRC}
	mv y.tab.c ${.TARGET}

.l.c            : 
	${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.TARGET}

.s.out          : 
	${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}
	${CTFCONVERT_CMD}

.c.out          : 
	${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}
	${CTFCONVERT_CMD}

.o.out          : 
	${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}
	${CTFCONVERT_CMD}

.f.out          : 
	${FC} ${EFLAGS} ${RFLAGS} ${FFLAGS} ${LDFLAGS} ${.IMPSRC}  ${LDLIBS} -o ${.TARGET}
	rm -f ${.PREFIX}.o
	${CTFCONVERT_CMD}

.F.out          : 
	${FC} ${EFLAGS} ${RFLAGS} ${FFLAGS} ${LDFLAGS} ${.IMPSRC}  ${LDLIBS} -o ${.TARGET}
	rm -f ${.PREFIX}.o
	${CTFCONVERT_CMD}

.r.out          : 
	${FC} ${EFLAGS} ${RFLAGS} ${FFLAGS} ${LDFLAGS} ${.IMPSRC}  ${LDLIBS} -o ${.TARGET}
	rm -f ${.PREFIX}.o
	${CTFCONVERT_CMD}

.e.out          : 
	${FC} ${EFLAGS} ${RFLAGS} ${FFLAGS} ${LDFLAGS} ${.IMPSRC}  ${LDLIBS} -o ${.TARGET}
	rm -f ${.PREFIX}.o
	${CTFCONVERT_CMD}

.y.out          : 
	${YACC} ${YFLAGS} ${.IMPSRC}
	${CC} ${CFLAGS} ${LDFLAGS} y.tab.c ${LDLIBS} -ly -o ${.TARGET}
	rm -f y.tab.c
	${CTFCONVERT_CMD}

.l.out          : 
	${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.PREFIX}.tmp.c
	${CC} ${CFLAGS} ${LDFLAGS} ${.PREFIX}.tmp.c ${LDLIBS} -ll -o ${.TARGET}
	rm -f ${.PREFIX}.tmp.c
	${CTFCONVERT_CMD}

        0.01 real         0.00 user         0.01 sys
 
Completed at 11:50:39 AM MCDT on Sunday, April 10, 2016
-------------- next part --------------
#
#
#  Copyright (C) 2009-2011 Advanced Micro Devices, Inc.  All Rights Reserved.
#
#  Copyright (C) 2000, 2001 Silicon Graphics, Inc.  All Rights Reserved.
#
#  This program is free software; you can redistribute it and/or modify it
#  under the terms of version 2 of the GNU General Public License as
#  published by the Free Software Foundation.
#
#  This program is distributed in the hope that it would be useful, but
#  WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
#
#  Further, this software is distributed without any warranty that it is
#  free of the rightful claim of any third person regarding infringement 
#  or the like.  Any license provided herein, whether implied or 
#  otherwise, applies only to this software file.  Patent licenses, if 
#  any, provided herein do not apply to combinations of this program with 
#  other software, or any other product whatsoever.  
#
#  You should have received a copy of the GNU General Public License along
#  with this program; if not, write the Free Software Foundation, Inc., 59
#  Temple Place - Suite 330, Boston MA 02111-1307, USA.
#
#  Contact information:  Silicon Graphics, Inc., 1600 Amphitheatre Pky,
#  Mountain View, CA 94043, or:
#
#  http://www.sgi.com
#
#  For further information regarding this notice, see:
#
#  http://oss.sgi.com/projects/GenInfo/NoticeExplan
#
#

# The directory where all native compiler component build subdirectories
# are located
#
MACHINE_TYPE        = x86_64
COMPILER_TARG_DIR   = /usr/src/contrib/obj/osprey/targdir
LIB_BUILD_AREA      = /usr/src/contrib/obj/osprey/targdir_lib
LIB2_BUILD_AREA     = /usr/src/contrib/obj/osprey/targdir_lib2

NATIVE_BUILD_DIR    = osprey/targdir
NATIVE_BUILD_DIR_LD = osprey/cygnus
GNUFE_BUILD_DIR     = osprey-gcc-4.2.0
GNUFE_BUILD_SUBDIR  = osprey-gcc-4.2.0/host-unknown

LIB_MACHINE_TYPE    = IA32
LIB_BUILD_TARGET    = IA32
LIB_BUILD_ABI       = I32BIT
LIB_BUILD_ARCH      = IA32
LIB_BUILD_HOST      = X8664

LIB2_MACHINE_TYPE   = X86_64
LIB2_BUILD_TARGET   = X8664
LIB2_BUILD_ABI      = I64BIT
LIB2_BUILD_ARCH     = X8664
LIB2_BUILD_HOST     = X8664

LIB_BUILD_DIR       = osprey/targdir_lib
LIB2_BUILD_DIR      = osprey/targdir_lib2

TOP_SRCDIR          = /usr/src/contrib/obj/../x86_open64-4.5.2.1-1
TOP_BUILDDIR        = /usr/src/contrib/obj
BUILD_VENDOR        = 
BUILD_TARGET        = X8664
BUILD_MULTILIB      = NO
BUILD_GNU3          = 
BUILD_FORTRAN       = YES
BUILD_TYPE          = SHARED
BUILD_SKIP_IPA      = 

# ifeq ($(MACHINE_TYPE), ia64)
.if $(MACHINE_TYPE) == "ia64"
# ia64
  GNUFE_BUILD_HOST    = ia64-redhat-linux
  TARGET_EXTRA_OBJ    = $(NATIVE_BUILD_DIR)/targ_info/itanium.so 
  TARGET_EXTRA_OBJ   += $(NATIVE_BUILD_DIR)/orc_ict/orc_ict.so
  TARGET_EXTRA_OBJ   += $(NATIVE_BUILD_DIR)/orc_intel/orc_intel.so
.endif
# ifeq ($(MACHINE_TYPE), i386)
.if $(MACHINE_TYPE) == "i386"
# i386
  GNUFE_BUILD_HOST    = x86_64-redhat-linux
.endif

# ifeq ($(MACHINE_TYPE), x86_64)
.if $(MACHINE_TYPE) == "x86_64"
# x86_64
  GNUFE_BUILD_HOST    = x86_64-redhat-linux
.endif

CROSS_BUILD = false

# All native compiler components:
BASIC_COMPONENTS = \
		$(NATIVE_BUILD_DIR)/driver/driver \
                $(NATIVE_BUILD_DIR)/be/be \
                $(NATIVE_BUILD_DIR)/lw_inline/inline \
                $(NATIVE_BUILD_DIR)/whirl2c/whirl2c \
                $(NATIVE_BUILD_DIR)/ir_tools/ir_b2a

# ifeq ($(BUILD_TYPE), SHARED)
.if $(BUILD_TYPE) == "SHARED"
BASIC_COMPONENTS += \
                $(NATIVE_BUILD_DIR)/be/be.so \
                $(NATIVE_BUILD_DIR)/cg/cg.so \
                $(NATIVE_BUILD_DIR)/wopt/wopt.so \
                $(NATIVE_BUILD_DIR)/lno/lno.so \
                $(NATIVE_BUILD_DIR)/whirl2c/whirl2c.so
.endif

# ifneq ($(BUILD_SKIP_IPA), YES)
.if $(BUILD_SKIP_IPA) != "YES"
BASIC_COMPONENTS += \
		$(NATIVE_BUILD_DIR)/ipa/ipa.so \
		$(NATIVE_BUILD_DIR)/ipl/ipl.so \
		$(NATIVE_BUILD_DIR)/ipl/ipl \
		$(NATIVE_BUILD_DIR_LD)/ld/ld-new 
.endif

# ifeq ($(BUILD_FORTRAN), YES)
.if $(BUILD_FORTRAN) == "YES"
BASIC_COMPONENTS += \
		$(NATIVE_BUILD_DIR)/whirl2f/whirl2f 

# ifeq ($(BUILD_TYPE), SHARED)
.if $(BUILD_TYPE) == "SHARED"
BASIC_COMPONENTS += \
		$(NATIVE_BUILD_DIR)/whirl2f/whirl2f.so
.endif

.endif


GNU4_FE_COMPONENTS = \
                $(NATIVE_BUILD_DIR)/wgen/wgen42 \
                $(GNUFE_BUILD_SUBDIR)/gcc/cc1 \
                $(GNUFE_BUILD_SUBDIR)/gcc/cc1plus

GNU3_FE_COMPONENTS = \
                $(NATIVE_BUILD_DIR)/gccfe/gfec \
                $(NATIVE_BUILD_DIR)/g++fe/gfecc

# ifeq ($(BUILD_FORTRAN), YES)
.if $(BUILD_FORTRAN) == "YES"
FORT_FE_COMPONENTS = \
                $(NATIVE_BUILD_DIR)/crayf90/sgi/mfef95
.endif

FIRST_COMPONENTS = \
		$(NATIVE_BUILD_DIR)/include \
		$(NATIVE_BUILD_DIR)/libcomutil \
		$(NATIVE_BUILD_DIR)/libcmplrs \
                $(NATIVE_BUILD_DIR)/libiberty \
		$(NATIVE_BUILD_DIR)/targ_info \
		$(NATIVE_BUILD_DIR)/libelf \
		$(NATIVE_BUILD_DIR)/libelfutil \
		$(NATIVE_BUILD_DIR)/libdwarf \
		$(NATIVE_BUILD_DIR)/libunwindP \
		$(NATIVE_BUILD_DIR)/libcif \
		$(NATIVE_BUILD_DIR)/arith

NATIVE_COMPONENTS = $(BASIC_COMPONENTS) $(TARGET_EXTRA_OBJ)  \
                    $(GNU4_FE_COMPONENTS) $(FORT_FE_COMPONENTS) \
                    $(FIRST_COMPONENTS) 

# ifeq ($(BUILD_GNU3), YES)
.if $(BUILD_GNU3) == "YES"
NATIVE_COMPONENTS += $(GNU3_FE_COMPONENTS)
.endif



CROSS_COMPONENTS =  $(BASIC_COMPONENTS) $(TARGET_EXTRA_OBJ) \
                    $(FORT_FE_COMPONENTS)




BASIC_PHONY_TARGET = $(shell for i in $(BASIC_COMPONENTS); do basename "$$i" ; done)

CROSS_PHONY_TARGET = $(shell for i in $(CROSS_COMPONENTS); do basename "$$i" ; done)

PHONY_TARGET = $(shell for i in $(NATIVE_COMPONENTS); do basename "$$i" ; done) 
.PHONY : $(PHONY_TARGET) all build install install_fe install_compiler clean clobber backend

#define SKIP_DEP_BUILD will disable the unnecessary dependency check
export SKIP_DEP_BUILD=1 

# Use all to build compiler (build) and libraries (lib)
# If BUILD_MULTILIB is YES, build a second library as well.
ALL_TARGETS = build lib
CLEAN_LIB = clean-lib
# ifeq ($(BUILD_MULTILIB), YES)
.if $(BUILD_MULTILIB) == "YES"
ALL_TARGETS += lib2
CLEAN_LIB += clean-lib2
.endif

all: $(ALL_TARGETS)

include:
	$(MAKE) -C $(NATIVE_BUILD_DIR)/include

libcomutil: include
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libcomutil

libcmplrs: include
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libcmplrs

libiberty: include
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libiberty

targ_info: include
	$(MAKE) -C $(NATIVE_BUILD_DIR)/targ_info

libelf: include
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libelf

libelfutil: include
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libelfutil

libdwarf: libelf
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libdwarf

libunwindP: targ_info
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libunwindP

libcif: include
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libcif

arith:
	$(MAKE) -C $(NATIVE_BUILD_DIR)/arith

$(NATIVE_BUILD_DIR)/driver/driver driver: include
	$(MAKE) -C $(NATIVE_BUILD_DIR)/driver

$(NATIVE_BUILD_DIR)/gccfe/gfec gfec: libiberty libcomutil libcmplrs
	$(MAKE) -C $(NATIVE_BUILD_DIR)/gccfe

$(NATIVE_BUILD_DIR)/g++fe/gfecc gfecc: libiberty libcomutil libcmplrs
	$(MAKE) -C $(NATIVE_BUILD_DIR)/g++fe

$(NATIVE_BUILD_DIR)/wgen/wgen42 wgen42: libiberty libcomutil libcmplrs $(NATIVE_BUILD_DIR)/libspin_4_2_0/libgspin42.a
	$(MAKE) -C $(NATIVE_BUILD_DIR)/wgen

# ifeq ($(BUILD_TYPE), SHARED)
.if $(BUILD_TYPE) == "SHARED"

$(NATIVE_BUILD_DIR)/be/be be: be.so 
$(NATIVE_BUILD_DIR)/be/be.so be.so: include libiberty targ_info
	$(MAKE) -C $(NATIVE_BUILD_DIR)/be

$(NATIVE_BUILD_DIR)/cg/cg.so cg.so: be.so libelf libelfutil libdwarf libunwindP
	$(MAKE) -C $(NATIVE_BUILD_DIR)/cg

$(NATIVE_BUILD_DIR)/wopt/wopt.so wopt.so: be.so 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/wopt

$(NATIVE_BUILD_DIR)/lno/lno.so lno.so: wopt.so ipl.so
	$(MAKE) -C $(NATIVE_BUILD_DIR)/lno

$(NATIVE_BUILD_DIR)/ipa/ipa.so ipa.so: ipl.so
	$(MAKE) -C $(NATIVE_BUILD_DIR)/ipa

$(NATIVE_BUILD_DIR)/ipl/ipl ipl: ipl.so
$(NATIVE_BUILD_DIR)/ipl/ipl.so ipl.so: be.so
	$(MAKE) -C $(NATIVE_BUILD_DIR)/ipl

$(NATIVE_BUILD_DIR)/lw_inline/inline inline: be.so
	$(MAKE) -C $(NATIVE_BUILD_DIR)/lw_inline

$(NATIVE_BUILD_DIR)/whirl2c/whirl2c whirl2c: whirl2c.so
$(NATIVE_BUILD_DIR)/whirl2c/whirl2c.so whirl2c.so: be.so
	$(MAKE) -C $(NATIVE_BUILD_DIR)/whirl2c

$(NATIVE_BUILD_DIR)/whirl2f/whirl2f whirl2f: whirl2f.so
$(NATIVE_BUILD_DIR)/whirl2f/whirl2f.so whirl2f.so: be.so
	$(MAKE) -C $(NATIVE_BUILD_DIR)/whirl2f
.else

$(NATIVE_BUILD_DIR)/be/be be: include libiberty targ_info libbe libipl liblno libwopt libwhirl2c libwhirl2f libdwarf libcg libelfutil libelf
	$(MAKE) -C $(NATIVE_BUILD_DIR)/be be

$(NATIVE_BUILD_DIR)/be/libbe libbe: include libiberty targ_info
	$(MAKE) -C $(NATIVE_BUILD_DIR)/be

$(NATIVE_BUILD_DIR)/cg/libcg libcg: libbe libelf libelfutil libdwarf libunwindP
	$(MAKE) -C $(NATIVE_BUILD_DIR)/cg

$(NATIVE_BUILD_DIR)/wopt/libwopt libwopt: libbe
	$(MAKE) -C $(NATIVE_BUILD_DIR)/wopt

$(NATIVE_BUILD_DIR)/lno/liblno liblno: libwopt libipl
	$(MAKE) -C $(NATIVE_BUILD_DIR)/lno

$(NATIVE_BUILD_DIR)/ipa/libipa libipa: libipl
	$(MAKE) -C $(NATIVE_BUILD_DIR)/ipa

$(NATIVE_BUILD_DIR)/ipl/ipl ipl: libipl
$(NATIVE_BUILD_DIR)/ipl/libipl libipl: libbe
	$(MAKE) -C $(NATIVE_BUILD_DIR)/ipl

$(NATIVE_BUILD_DIR)/lw_inline/inline inline: libbe
	$(MAKE) -C $(NATIVE_BUILD_DIR)/lw_inline

$(NATIVE_BUILD_DIR)/whirl2c/whirl2c whirl2c: libwhirl2c
$(NATIVE_BUILD_DIR)/whirl2c/libwhirl2c libwhirl2c: libbe
	$(MAKE) -C $(NATIVE_BUILD_DIR)/whirl2c

$(NATIVE_BUILD_DIR)/whirl2c/whirl2f whirl2f: libwhirl2f
$(NATIVE_BUILD_DIR)/whirl2c/libwhirl2f libwhirl2f: libbe
	$(MAKE) -C $(NATIVE_BUILD_DIR)/whirl2f
.endif

# ifeq ($(MACHINE_TYPE), ia64)
.if $(MACHINE_TYPE) == "ia64"
$(NATIVE_BUILD_DIR)/orc_ict/orc_ict.so orc_ict.so: cg.so
	$(MAKE) -C $(NATIVE_BUILD_DIR)/orc_ict

$(NATIVE_BUILD_DIR)/orc_intel/orc_intel.so orc_intel.so: cg.so
	$(MAKE) -C $(NATIVE_BUILD_DIR)/orc_intel

$(NATIVE_BUILD_DIR)/targ_info/itanium.so itanium.so: targ_info
.endif

$(NATIVE_BUILD_DIR)/ir_tools/ir_b2a ir_b2a: libcomutil
	$(MAKE) -C $(NATIVE_BUILD_DIR)/ir_tools

$(NATIVE_BUILD_DIR)/crayf90/sgi/mfef95 mfef95: libcomutil libcif arith
	$(MAKE) -C $(NATIVE_BUILD_DIR)/crayf90

.PHONY: phony_targets first
$(NATIVE_BUILD_DIR_LD)/ld/ld-new ld-new:
	$(MAKE) -C $(NATIVE_BUILD_DIR_LD)

$(NATIVE_BUILD_DIR)/libspin_4_2_0/libgspin42.a libspin42:
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libspin_4_2_0

# GNU 4.2.0 based FE
cc1plus: $(GNUFE_BUILD_SUBDIR)/gcc/cc1plus
cc1: $(GNUFE_BUILD_SUBDIR)/gcc/cc1
cc1plus: cc1
$(GNUFE_BUILD_SUBDIR)/gcc/cc1plus cc1plus: $(GNUFE_BUILD_SUBDIR)/gcc/cc1
$(GNUFE_BUILD_SUBDIR)/gcc/cc1 cc1: $(NATIVE_BUILD_DIR)/libspin_4_2_0/libgspin42.a
	$(MAKE) -C $(GNUFE_BUILD_DIR)

build:
	$(MAKE) first
	$(MAKE) phony_targets 

phony_targets: $(PHONY_TARGET)
cross: NATIVE_BUILD_DIR = osprey/targia32_ia64_nodebug
cross: NATIVE_BUILD_DIR_LD = osprey/targcygnus_ia32_ia64
cross: CROSS_BUILD = true
cross: $(CROSS_PHONY_TARGET)
	echo $(CROSS_PHONY_TARGET)

backend: $(BASIC_PHONY_TARGET)

# ifeq ($(BUILD_TARGET), SL)
.if $(BUILD_TARGET) == "SL"
install:
	export TOOLROOT=/usr/local; \
	export TOP_SRCDIR=$(TOP_SRCDIR); \
		$(TOP_SRCDIR)/INSTALL.cross.sl /usr/src/contrib/obj
.else
install: install_fe install_compiler

# ifeq ($(BUILD_TARGET), PPC32)
.if $(BUILD_TARGET) == "PPC32"
install_fe:
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-common
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-headers
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-cpp
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-driver	    
.else
install_fe:
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-common
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-headers
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-libgcc
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-cpp
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-driver
	$(MAKE) -C $(GNUFE_BUILD_DIR)/$(GNUFE_BUILD_HOST)/libstdc++-v3 \
	    install
.endif

install_compiler:
	export TOOLROOT=/usr/local; \
	export TOP_SRCDIR=$(TOP_SRCDIR); \
		$(TOP_SRCDIR)/install_compiler.sh $(MACHINE_TYPE) $(if $(BUILD_FORTRAN),"YES","NO")  
.endif
install-cross:
	export TOOLROOT=/usr/local; $(TOP_SRCDIR)/install_compiler.sh ia64-cross $(if $(BUILD_FORTRAN),"YES","NO")
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-common
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-headers
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-libgcc
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-cpp
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/gcc \
	    install-driver
	$(MAKE) -C $(GNUFE_BUILD_SUBDIR)/$(GNUFE_BUILD_HOST)/libstdc++-v3 \
	    install
	export TOOLROOT=/usr/local; $(TOP_SRCDIR)/install_compiler.sh ia64-cross $(if $(BUILD_FORTRAN),"YES","NO")

LIB_ARGS = BUILD_TARGET=$(LIB_BUILD_TARGET) BUILD_COMPILER=SELF BUILD_AREA=$(LIB_BUILD_AREA) MACHINE_TYPE=$(LIB_MACHINE_TYPE) BUILD_ABI=$(LIB_BUILD_ABI) BUILD_ARCH=$(LIB_BUILD_ARCH) BUILD_HOST=$(LIB_BUILD_HOST) BUILD_OPTIMIZE=DEFAULT BUILD_BDVER1=NO
# ifeq ($(LIB_BUILD_TARGET),IA64)
.if $(LIB_BUILD_TARGET),IA64)
LIB_ARGS += BUILD_TYPE=NONSHARED
.else
LIB_ARGS += BUILD_TYPE=SHARED
.endif
LIB2_ARGS = BUILD_TARGET=$(LIB2_BUILD_TARGET) BUILD_COMPILER=SELF BUILD_AREA=$(LIB2_BUILD_AREA) MACHINE_TYPE=$(LIB2_MACHINE_TYPE) BUILD_ABI=$(LIB2_BUILD_ABI) BUILD_ARCH=$(LIB2_BUILD_ARCH) BUILD_HOST=$(LIB2_BUILD_HOST) BUILD_OPTIMIZE=DEFAULT BUILD_TYPE=SHARED BUILD_BDVER1=NO

.PHONY: library lib clean-library clean-lib
.PHONY: library2 lib2 clean-library2 clean-lib2

library lib library2 lib2 : LOCAL_LIB_ACTION = default
clean-library clean-lib clean-library2 clean-lib2 : LOCAL_LIB_ACTION = clobber

library lib clean-library clean-lib : LOCAL_LIB_BUILD_DIR = $(LIB_BUILD_DIR)
library lib clean-library clean-lib : LOCAL_LIB_ARGS = $(LIB_ARGS)
library2 lib2 clean-library2 clean-lib2 : LOCAL_LIB_BUILD_DIR = $(LIB2_BUILD_DIR)
library2 lib2 clean-library2 clean-lib2 : LOCAL_LIB_ARGS = $(LIB2_ARGS)

library lib library2 lib2 : build

library lib clean-library clean-lib library2 lib2 clean-library2 clean-lib2:
	@echo "$(MAKE) -C $(LOCAL_LIB_BUILD_DIR) $(LOCAL_LIB_ACTION) $(LOCAL_LIB_ARGS)"; \
	$(MAKE) -C $(LOCAL_LIB_BUILD_DIR) $(LOCAL_LIB_ACTION) $(LOCAL_LIB_ARGS)

clobber: clean 
	rm -rf $(CROSSDIR) $(BOOTDIR)

clean: $(CLEAN_LIB)
	$(MAKE) -C $(NATIVE_BUILD_DIR)/driver clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/wgen clobber 
# ifeq ($(BUILD_GNU3), YES)
.if $(BUILD_GNU3) == "YES"
	$(MAKE) -C $(NATIVE_BUILD_DIR)/gccfe clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/g++fe clobber
.endif
	$(MAKE) -C $(NATIVE_BUILD_DIR)/be clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/cg clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/wopt clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/lno clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/ipa clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/ipl clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/lw_inline clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/whirl2c clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libkapi clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/targ_info clobber 
	$(MAKE) -C $(NATIVE_BUILD_DIR)/ir_tools clobber 
# ifeq ($(BUILD_FORTRAN), YES)
.if $(BUILD_FORTRAN) == "YES"
	$(MAKE) -C $(NATIVE_BUILD_DIR)/crayf90 clobber	
	$(MAKE) -C $(NATIVE_BUILD_DIR)/whirl2f clobber 
.endif
	$(MAKE) -C $(NATIVE_BUILD_DIR)/arith clobber
	$(MAKE) -C $(NATIVE_BUILD_DIR)/include clobber
	$(MAKE) -C $(NATIVE_BUILD_DIR)/libspin_4_2_0 clobber
# ifeq ($(MACHINE_TYPE), ia64)
.if $(MACHINE_TYPE) == "ia64"
	$(MAKE) -C $(NATIVE_BUILD_DIR)/orc_ict clobber
	$(MAKE) -C $(NATIVE_BUILD_DIR)/orc_intel clobber
.endif
	$(MAKE) -C $(NATIVE_BUILD_DIR_LD) clean
	$(MAKE) -C $(GNUFE_BUILD_DIR) clean
	@for i in libcif libcmplrs libcomutil libcsup libdwarf libelf libelfutil \
		libiberty libunwindP; do  \
		$(MAKE) -C "$(NATIVE_BUILD_DIR)/$${i}" clobber; \
	done

help:
	@echo "Help of the Makefile for Open64 compiler source"
	@echo "Available targets:"
	@echo "  - (DEFAULT)"
	@echo "    Build the components of the compiler"
	@echo "  - help"
	@echo "    Display this help"
	@echo "  - install"
	@echo "    Install the components of the compiler."
	@echo "    If TOOLROOT is set, the compiler will be installed under the TOOLROOT,"
	@echo "    otherwise, you will be prompted to input the path\n"
	@echo "  - library"
	@echo "    Build the libraries needed by the compiler"
	@echo "  - clean-lib"
	@echo "    Remove intermediate files generated in building libraries"
	@echo "  - clean"
	@echo "  - clobber"
	@echo "    Remove all intermediate files"
	@echo ""
	@echo "Available options (former is default):" 
	@echo "  - BUILD_OPTIMIZE={NODEBUG|DEBUG}"
	@echo "    Enable debug the compiler or not"
	@echo "  - BUILD_COMPILER={GNU|OSP|PSC}"
	@echo "    Using GCC(GNU) or Open64(OSP) Or Pathscale(PSC) compiler"
	@echo "    to build the open64 compiler"
	@echo "  - V={0|1}"
	@echo "    Display detailed compilation progress or not"
.PHONY: bootstrap reboot boot cross_gcc

BOOTDIR=$(PWD)/boot
CROSSDIR=$(PWD)/cross_gcc
bootstrap: reboot
#build the reboot compiler
reboot: boot
	$(MAKE) clean
	set +h; $(MAKE) all lib BUILD_COMPILER=OSP PATH=$(BOOTDIR)/bin:$(PATH)

#build the boot compiler using the exist open64 compiler
boot:
#if opencc is not found use gcc to build the cross compiler
	if ! opencc -v >/dev/null 2>&1; then $(MAKE) cross_gcc; fi
	$(MAKE) clean
	rm -rf $(BOOTDIR)
	set +h; $(MAKE) all lib BUILD_COMPILER=OSP PATH=$(CROSSDIR)/bin:$(PATH)
	$(MAKE) install TOOLROOT=$(BOOTDIR)

cross_gcc: 
	$(MAKE) clean
	@rm -rf $(CROSSDIR)
	$(MAKE) all BUILD_COMPILER=GNU
	$(MAKE) install TOOLROOT=$(CROSSDIR)
	set +h; $(MAKE) lib BUILD_COMPILER=OSP PATH=$(CROSSDIR)/bin:$(PATH)
	$(MAKE) install TOOLROOT=$(CROSSDIR)


More information about the freebsd-ports mailing list