# # # 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 # # # # This file does all the verification and preliminary processing of # the BUILD_* parameters. It is one of three files which act together # to build all compiler components and libraries. There is a Makefile # in every build directory which defines the twelve BUILD_* parameters # and includes this file. This file does its checking, computes some # standard (STD_*) variables which are common to many builds then # includes the final piece (Makefile.base) which does all the real # build work. # # The BUILD_* parameters are: # BUILD_AREA = specifies the top of this build area subtree # (that is, the targ* level) # BUILD_TOT = specifies the Top-Of-Trunk directory # (that is, osprey1.0 level) # BUILD_BASE = specifies the base directory containing Makefile.gbase # (and almost always the source files) # BUILD_ROOTS = specifies which ROOT & TOOLROOT to use # BUILD_ABI = specifies ABI to build for (32BIT/N32BIT/64BIT/ # I32BIT/I64BIT/A64BIT) # BUILD_ARCH = specifies machine architecture for build # (MIPS1/MIPS2/MIPS3/MIPS4/IA32/IA64/SPARC/ALPHA) # BUILD_TYPE = specifies type of build (SHARED/NONSHARED) # BUILD_OPTIMIZE = specifies default, debug or override optimization # options # BUILD_PCH = specifies whether to use pre-compiled headers for build # BUILD_VARIANT = specifies special variant to be built # BUILD_INSTALL = specifies where to install components/libraries # BUILD_TARGET = specifies target machine for run # (MIPS/IA64/IA32/SPARC) # BUILD_COMPILER = specifies which compiler to use for build # (VENDOR/GNU) # BUILD_CPU = specifies cpu (R4000/R5000/R8000/R10000) # BUILD_OS = specifies OS (IRIX/LINUX/SOLARIS) # BUILD_HOST = specifies host that are building on # (defaults to $(BUILD_ARCH)). # BUILD_SB = specifies whether to use source browser of # Solaris workshop. # BUILD_DEPENDIGNORE # = specifis whether to build Make dependency file # All BUILD_* parameters must be specified, any that are missing will be # reported immediately as an error. Everything is explicit so there will be # no confusion as to what configuration is being built. # # For cross compilers, there are really 3 separate variables: # the build host (machine you are building on), # the run host (machine you will run on), # and the run target (machine you will generate code for). # To distinguish these, we use BUILD_HOST as the build host, # BUILD_ARCH as the run host, and BUILD_TARGET as the run target. # # Note that only Mips-hosted builds utilize ROOT/TOOLROOT. For Linux-hosted # builds, the tools installed in / are used (as is the GNU convention). Any # compiler-required headers, libraries and/or tools are referenced out of the # workarea directly. # # The STD_* variables which are computed are: # STD_COMPILE_OPTS = a set of compile options which reflect BUILD_ABI, # BUILD_ARCH, BUILD_TYPE, BUILD_TARGET. Typically # this would be assigned to LCOPTS, LASOPTS, etc in # Makefile.base # STD_C++_OPTS = a set of compile options specific to C++ compiles # Should be assigned to LC++OPTS in Makefile.base # STD_LOAD_OPTS = a set of load options which reflect BUILD_ABI, # BUILD_ARCH & BUILD_TYPE. Typically this would be # assigned to GLDOPTS in Makefile.base # STD_DSO_LOADOPTS = a set of dso load options which reflect BUILD_ABI. # Typically this would be used in the rule for building # a dso from library # STD_INSTALL = this replaces $(INSTALL) and includes the alternate # installation location from BUILD_INSTALL # STD_LIBRARY_LOC = this is the standard directory to install a library # based on it's build configuration # STD_PHASE_LOC = this is the standard directory to install a phase # based on it's build configuration # # # Verify that BUILD_COMPILER is defined and is either GNU or VENDOR. # GNU is cygnus gcc, VENDOR is host machine's own cc. It is default # to VENDOR compiler. # ifndef BUILD_COMPILER BUILD_COMPILER = VENDOR endif ifneq ($(BUILD_COMPILER), GNU) ifneq ($(BUILD_COMPILER), SGI) ifneq ($(BUILD_COMPILER), VENDOR) ABORT_BUILD = BUILD_COMPILER has bad value - $(BUILD_COMPILER)! endif endif endif # # Verify that BUILD_AREA is defined # ifndef BUILD_AREA ABORT_BUILD = BUILD_AREA must be defined! endif # # Verify that BUILD_TOT is defined, is not null and the directory it points # to contains Makefile.setup. # ifdef BUILD_TOT ifeq ($(BUILD_TOT), "") ABORT_BUILD = BUILD_TOT has no value! endif else ABORT_BUILD = BUILD_TOT not defined! endif # # Verify that BUILD_BASE is defined, is not null and the directory it points # to contains Makefile.base. # ifdef BUILD_BASE ifeq ($(BUILD_BASE), "") ABORT_BUILD = BUILD_BASE has no value! endif else ABORT_BUILD = BUILD_BASE not defined! endif # # Verify that BUILD_ABI is defined and is either N32BIT, 64BIT, or I{32,64}BIT # ifdef BUILD_ABI ifneq ($(BUILD_ABI), 32BIT) ifneq ($(BUILD_ABI), N32BIT) ifneq ($(BUILD_ABI), 64BIT) ifneq ($(BUILD_ABI), I32BIT) ifneq ($(BUILD_ABI), I64BIT) ifneq ($(BUILD_ABI), A64BIT) ABORT_BUILD = BUILD_ABI has bad value - $(BUILD_ABI)! endif endif endif endif endif endif else ABORT_BUILD = BUILD_ABI not defined! endif # # Verify that BUILD_ARCH is defined # ifdef BUILD_ARCH ifneq ($(BUILD_ARCH), SPARC) ifneq ($(BUILD_ARCH), MIPS3) ifneq ($(BUILD_ARCH), MIPS4) ifneq ($(BUILD_ARCH), IA32) ifneq ($(BUILD_ARCH), IA64) ifneq ($(BUILD_ARCH), ALPHA) ABORT_BUILD = BUILD_ARCH has bad value - $(BUILD_ARCH)! endif endif endif endif endif endif else ABORT_BUILD = BUILD_ARCH not defined! endif # # Setup ROOT / TOOLROOT as needed for Mips-hosted builds. # ifeq ($(BUILD_OS), IRIX) ifneq (,$(findstring MIPS,$(BUILD_ARCH))) ifndef ROOT ABORT_BUILD = ROOT and/or TOOLROOT not defined! endif ifndef TOOLROOT ABORT_BUILD = ROOT and/or TOOLROOT not defined! endif endif endif # # Verify that if BUILD_CPU is defined it is either R4000, R5000, R8000, R10000. # ifdef BUILD_CPU ifneq ($(BUILD_CPU), R4000) ifneq ($(BUILD_CPU), R5000) ifneq ($(BUILD_CPU), R8000) ifneq ($(BUILD_CPU), R10000) ABORT_BUILD = BUILD_CPU has bad value - $(BUILD_CPU)! endif endif endif endif endif # # Verify that BUILD_TYPE is defined and is either SHARED or NONSHARED. # ifdef BUILD_TYPE ifneq ($(BUILD_TYPE), SHARED) ifneq ($(BUILD_TYPE), NONSHARED) ABORT_BUILD = BUILD_TYPE has bad value - $(BUILD_TYPE)! endif endif else ABORT_BUILD = BUILD_TYPE not defined! endif # # Verify that BUILD_TARGET is defined and is either MIPS, IA64 or IA32. # ifdef BUILD_TARGET ifneq ($(BUILD_TARGET), SPARC) ifneq ($(BUILD_TARGET), MIPS) ifneq ($(BUILD_TARGET), IA32) ifneq ($(BUILD_TARGET), IA64) ABORT_BUILD = BUILD_TARGET has bad value - $(BUILD_TARGET)! endif endif endif endif else ABORT_BUILD = BUILD_TARGET has no value! endif # # Specify the name of directory containing BUILD_TARGET specific # source files. Temporarily only have ia64 directory. # BUILD_TARGET_DIR = ia64 # # Verify that BUILD_OPTIMIZE is defined and is not null. It is either # DEFAULT, DEBUG, NODEBUG or contains a set of optimizer options. If it is # DEFAULT, replace with "current" default (DEBUG or NODEBUG) # ifdef BUILD_OPTIMIZE ifeq ($(BUILD_OPTIMIZE), DEFAULT) BUILD_OPTIMIZE = NODEBUG else ifeq ($(BUILD_OPTIMIZE), "") ABORT_BUILD = BUILD_OPTIMIZE has no value! endif endif else ABORT_BUILD = BUILD_OPTIMIZE not defined! endif # # If BUILD_OPTIMIZE is DEBUG, add compiler option -g and -D_DEBUG, # the latter building a debug version of mfef90, whirl2f and ir_b2a # ifeq ($(BUILD_OPTIMIZE), DEBUG) OPTIMIZER = -g3 -D_DEBUG ifeq ($(BUILD_COMPILER), VENDOR) ifeq ($(BUILD_OS), TRU64) CXX_OPTIMIZER = -gall endif endif else ifeq ($(BUILD_OPTIMIZE), NODEBUG) # -IPA can't be used on libraries, not default OPTIMIZER = -O0 else OPTIMIZER = $(BUILD_OPTIMIZE) endif endif # # Verify that BUILD_PCH is defined and is either DEFAULT or USE_PCH. # Allow no BUILD_PCH, which defaults to DEFAULT. # ifdef BUILD_PCH ifneq ($(BUILD_PCH), DEFAULT) ifneq ($(BUILD_PCH), USE_PCH) ABORT_BUILD = BUILD_PCH has bad value - $(BUILD_PCH)! endif endif else BUILD_PCH = DEFAULT endif # # Verify that BUILD_VARIANT is defined. Its value is component specific # and can't be checked here. # ifndef BUILD_VARIANT ABORT_BUILD = BUILD_VARIANT not defined! endif # # Verify that BUILD_INSTALL is defined and is not null. It is either # DEFAULT or the root path to install into. # ifdef BUILD_INSTALL ifeq ($(BUILD_INSTALL), "") ABORT_BUILD = BUILD_INSTALL has no value! endif else ABORT_BUILD = BUILD_INSTALL not defined! endif # # Verify that BUILD_OS is defined and is either IRIX, LINUX, SOLARIS. # ifndef BUILD_OS ABORT_BUILD = BUILD_OS has no value! endif ifneq ($(BUILD_OS), SOLARIS) ifneq ($(BUILD_OS), IRIX) ifneq ($(BUILD_OS), LINUX) ifneq ($(BUILD_OS), TRU64) ifneq ($(BUILD_OS), OSX) ifneq ($(BUILD_OS), AIX) ifneq ($(BUILD_OS), SUNOS) ifneq ($(BUILD_OS), CYGWIN) ifneq ($(BUILD_OS), FREEBSD) ABORT_BUILD = BUILD_OS has bad value - $(BUILD_OS)! endif endif endif endif endif endif endif endif endif ifndef BUILD_HOST ifneq (,$(findstring MIPS,$(BUILD_ARCH))) BUILD_HOST = MIPS else BUILD_HOST = $(BUILD_ARCH) endif endif ifneq ($(BUILD_HOST), SPARC) ifneq ($(BUILD_HOST), MIPS) ifneq ($(BUILD_HOST), IA32) ifneq ($(BUILD_HOST), IA64) ifneq ($(BUILD_HOST), ALPHA) ifneq ($(BUILD_HOST), PPC) ABORT_BUILD = BUILD_HOST has bad BAAAADvalue - $(BUILD_HOST)! endif endif endif endif endif endif # eraxxon: For now, cygwin piggy-backs upon linux build files. The # following variables are needed due to differences between cygwin and # conventional unices. REAL_BUILD_OS = $(shell uname -s) ifeq ($(findstring CYGWIN, $(REAL_BUILD_OS)),CYGWIN) BUILD_OS_CYGWIN = 1 # DSOs *must* have the dll extension in order to link correctly. EXEext = .exe DSOext = .dll else EXEext =# (this value is the empty string) DSOext = .so endif # # Set COMMONDEFS as appropriate based on BUILD_OS. # COMMONDEFS = $(BUILD_TOT)/linux/make/gcommondefs # # If no errors so far then do some checking that the requested configuration # is valid. # ifndef ABORT_BUILD ifeq ($(BUILD_ABI), N32BIT) ifneq ($(BUILD_ARCH), MIPS3) ifneq ($(BUILD_ARCH), MIPS4) ABORT_BUILD = N32BIT requires MIPS3 or MIPS4! endif endif endif ifeq ($(BUILD_ABI), 64BIT) ifneq ($(BUILD_ARCH), MIPS3) ifneq ($(BUILD_ARCH), MIPS4) ABORT_BUILD = 64BIT requires MIPS3 or MIPS4! endif endif endif ifeq ($(BUILD_ABI), I32BIT) ifneq ($(BUILD_ARCH), IA32) ABORT_BUILD = BUILD_ABI=I32BIT requires BUILD_ARCH=IA32 endif endif ifeq ($(BUILD_ABI), I64BIT) ifneq ($(BUILD_ARCH), IA64) ABORT_BUILD = BUILD_ABI=I64BIT requires BUILD_ARCH=IA64 endif endif ifeq ($(BUILD_ABI), A64BIT) ifneq ($(BUILD_ARCH), ALPHA) ABORT_BUILD = BUILD_ABI=A64BIT requires BUILD_ARCH=ALPHA endif endif endif # # Reset WOFF if using mongoose as toolroot. # ifeq ($(BUILD_COMPILER), VENDOR) ifeq ($(BUILD_ABI), N32BIT) LWOFF = ,1174,1185,1506,1209,3088,1048,1140,1172,1552,1685 endif endif # # Compute STD_COMPILE_OPTS as a usable set of compile options which reflect # BUILD_COMPILER, BUILD_TYPE, BUILD_ARCH, BUILD_ABI. # # # -KPIC (IRIX cc) generates position-independent code (PIC) which is # needed for is programs linking with dynamic shared libraries. -fPIC # is the equivalent for gcc. On Solaris, -KPIC equals to -xcode=pic32 # ifeq ($(BUILD_COMPILER), VENDOR) ifeq ($(BUILD_TYPE), SHARED) ifeq ($(filter IRIX SOLARIS, $(BUILD_OS)), $(BUILD_OS)) STD_COMPILE_OPTS = -KPIC else STD_COMPILE_OPTS = endif else STD_COMPILE_OPTS = -non_shared endif else ifeq ($(BUILD_TYPE), SHARED) ifneq ($(BUILD_OS), CYGWIN) STD_COMPILE_OPTS = -fPIC else STD_COMPILE_OPTS = endif else STD_COMPILE_OPTS = endif endif # use compiler's default instead - # ifeq ($(BUILD_ARCH), MIPS1) # STD_COMPILE_OPTS += -mips1 # endif # ifeq ($(BUILD_ARCH), MIPS2) # STD_COMPILE_OPTS += -mips2 # endif # ifeq ($(BUILD_ARCH), MIPS3) # STD_COMPILE_OPTS += -mips3 # endif # ifeq ($(BUILD_ARCH), MIPS4) # STD_COMPILE_OPTS += -mips4 # endif # ifneq ($(BUILD_COMPILER), GNU) # ifeq ($(BUILD_ABI), 32BIT) # STD_COMPILE_OPTS += -32 -Olimit 3000 # endif # ifeq ($(BUILD_ABI), N32BIT) # STD_COMPILE_OPTS += -n32 -OPT:Olimit=0 -LANG:exceptions=OFF # endif # ifeq ($(BUILD_ABI), 64BIT) # STD_COMPILE_OPTS += -64 -OPT:Olimit=0 -LANG:exceptions=OFF # endif # ifeq ($(BUILD_ABI), I64BIT) # STD_COMPILE_OPTS += -i64 # endif # endif STD_COMPILE_OPTS += -DTARG_$(BUILD_TARGET) ifeq ($(BUILD_TARGET), IA32) STD_COMPILE_OPTS += -DEMULATE_LONGLONG endif # # Assign STD_C++_OPTS here # ifeq ($(BUILD_ABI), N32BIT) STD_C++_OPTS = # LANG:exceptions=OFF use compiler's default instead - else STD_C++_OPTS = endif # # Compute STD_LOAD_OPTS as a usable set of load options which reflect # BUILD_COMPILER, BUILD_TYPE, BUILD_ARCH and BUILD_ABI. # ifeq ($(BUILD_COMPILER), GNU) STD_LOAD_OPTS = STD_COMPILE_OPTS += endif ifeq ($(BUILD_COMPILER), VENDOR) STD_LOAD_OPTS = endif # use compiler's default instead - # ifeq ($(BUILD_ABI), 64BIT) # ifeq ($(BUILD_ARCH), MIPS4) # ifeq ($(BUILD_TYPE), SHARED) # STD_LOAD_OPTS += -L$(ROOT)/usr/lib64/mips4 -L$(ROOT)/usr/lib64 # else # STD_LOAD_OPTS += -L$(ROOT)/usr/lib64/mips4/nonshared -L$(ROOT)/usr/lib64/nonshared # endif # else # MIPS3 # ifeq ($(BUILD_TYPE), SHARED) # STD_LOAD_OPTS += -L$(ROOT)/usr/lib64/mips3 -L$(ROOT)/usr/lib64 # else # STD_LOAD_OPTS += -L$(ROOT)/usr/lib64/mips3/nonshared -L$(ROOT)/usr/lib64/nonshared # endif # endif # endif #ifeq ($(BUILD_ABI), N32BIT) # ifeq ($(BUILD_ARCH), MIPS4) # ifeq ($(BUILD_TYPE), SHARED) # STD_LOAD_OPTS += -n32 -L$(ROOT)/usr/lib32/mips4 -L$(ROOT)/usr/lib32 # else # STD_LOAD_OPTS += -n32 -L$(ROOT)/usr/lib32/mips4/nonshared -L$(ROOT)/usr/lib32/nonshared # endif # else # MIPS3 # ifeq ($(BUILD_TYPE), SHARED) # STD_LOAD_OPTS += -n32 -L$(ROOT)/usr/lib32/mips3 -L$(ROOT)/usr/lib32 # else # STD_LOAD_OPTS += -n32 -L$(ROOT)/usr/lib32/mips3/nonshared -L$(ROOT)/usr/lib32/nonshared # endif # endif #endif ifeq ($(BUILD_ARCH), IA32) ifeq ($(BUILD_TYPE), SHARED) STD_LOAD_OPTS += else STD_LOAD_OPTS += endif endif ifeq ($(BUILD_ABI), I64BIT) ifeq ($(BUILD_TYPE), SHARED) STD_LOAD_OPTS += else STD_LOAD_OPTS += endif endif # # Compute STD_DSO_LOADOPTS as a usable set of dso load options which reflect # BUILD_ABI. # #ifeq ($(BUILD_ABI), 64BIT) # ifeq ($(BUILD_ARCH), MIPS4) # STD_DSO_LOADOPTS = $(LDOPTS_64_M4) $(LDDSOOPTS_64) # else # STD_DSO_LOADOPTS = $(LDOPTS_64_M3) $(LDDSOOPTS_64) # endif #endif #ifeq ($(BUILD_ABI), N32BIT) # ifeq ($(BUILD_ARCH), MIPS4) # STD_DSO_LOADOPTS = $(LDOPTS_N32_M4) $(LDDSOOPTS_N32) # else # STD_DSO_LOADOPTS = $(LDOPTS_N32_M3) $(LDDSOOPTS_N32) # endif #endif #ifeq ($(BUILD_ABI), I32BIT) # STD_DSO_LOADOPTS = $(LDOPTS_I32) $(LDDSOOPTS_I32) #endif #ifeq ($(BUILD_ABI), I64BIT) # STD_DSO_LOADOPTS = $(LDOPTS_I64) $(LDDSOOPTS_I64) #endif # # standard location and install macros for 64bit shared object links # ifeq ($(BUILD_ABI), N32BIT) STD_DSO_LOC = /usr/lib32 else STD_DSO_LOC = /usr/lib64 endif ifdef BUILD_CPU ifeq ($(BUILD_ARCH), MIPS4) ifeq ($(BUILD_CPU), R5000) LINK = mips4/r5000/$(DSO) IDBTAG = -idb "mach(CPUARCH=R5000)" endif ifeq ($(BUILD_CPU), R8000) LINK = mips4/r8000/$(DSO) IDBTAG = -idb "mach(CPUARCH=R8000)" endif ifeq ($(BUILD_CPU), R10000) LINK = mips4/r10000/$(DSO) IDBTAG = -idb "mach(CPUARCH=R10000)" endif else endif else ifeq ($(BUILD_ARCH), MIPS4) ifeq ($(BUILD_ABI), 64BIT) LINK = mips4/$(DSO) IDBTAG = -idb "mach(CPUARCH=R8000 CPUARCH=R10000)" else # N32BIT LINK = mips4/$(DSO) IDBTAG = -idb "mach(CPUARCH=R8000 CPUARCH=R10000 CPUARCH=R5000)" endif else # MIPS3 LINK = mips3/$(DSO) IDBTAG = -idb "mach(CPUARCH=R4000)" endif endif LBOOT64=-idb "mach(MODE=64bit)" # # Compute STD_LIBRARY_LOC as the standard location to install a library # based on its build configuration. # (use := so that variable is expanded immediately else recurse) # ifeq ($(BUILD_ABI), 64BIT) ifeq ($(BUILD_ARCH), MIPS4) DEF_LIBRARY_LOC := /usr/lib64 ifdef BUILD_CPU ifeq ($(BUILD_CPU), R5000) STD_LIBRARY_LOC := /usr/lib64/mips4/r5000 endif ifeq ($(BUILD_CPU), R8000) STD_LIBRARY_LOC := /usr/lib64/mips4/r8000 endif ifeq ($(BUILD_CPU), R10000) STD_LIBRARY_LOC := /usr/lib64/mips4/r10000 endif else STD_LIBRARY_LOC := /usr/lib64/mips4 endif else # MIPS3 STD_LIBRARY_LOC := /usr/lib64/mips3 DEF_LIBRARY_LOC := /usr/lib64 endif endif ifeq ($(BUILD_ABI), N32BIT) ifeq ($(BUILD_ARCH), MIPS4) DEF_LIBRARY_LOC := /usr/lib32 ifdef BUILD_CPU ifeq ($(BUILD_CPU), R5000) STD_LIBRARY_LOC := /usr/lib32/mips4/r5000 endif ifeq ($(BUILD_CPU), R8000) STD_LIBRARY_LOC := /usr/lib32/mips4/r8000 endif ifeq ($(BUILD_CPU), R10000) STD_LIBRARY_LOC := /usr/lib32/mips4/r10000 endif else STD_LIBRARY_LOC := /usr/lib32/mips4 endif else # MIPS3 STD_LIBRARY_LOC := /usr/lib32/mips3 DEF_LIBRARY_LOC := /usr/lib32 endif endif ifndef STD_LIBRARY_LOC STD_LIBRARY_LOC := /usr/lib DEF_LIBRARY_LOC := /usr/lib endif ifeq ($(BUILD_TYPE), NONSHARED) STD_LIBRARY_LOC := $(STD_LIBRARY_LOC)/nonshared DEF_LIBRARY_LOC := $(DEF_LIBRARY_LOC)/nonshared endif # # standard location to install a compiler phase # STD_PHASE_LOC = /usr/lib64/cmplrs STD_MONGOOSE_LOC = /usr/lib32/cmplrs ifeq ($(BUILD_TARGET), IA32) STD_MONGOOSE_LINUX_LOC = $(ROOT)/usr/ia32-sgi-linux/bin endif ifeq ($(BUILD_TARGET), IA64) STD_MONGOOSE_LINUX_LOC = $(ROOT)/usr/ia64-sgi-linux/lib/gcc-lib/ia64-sgi-linux/sgicc-1.0 endif # # Compute STD_INSTALL as a replacement for $(INSTALL) which reflects an # alternate installation root. # ifeq ($(BUILD_INSTALL), DEFAULT) STD_INSTALL = $(INSTALL) else STD_INSTALL = $(INSTALL) -root $(BUILD_INSTALL) endif # # Optional build parameters (could be set in component's Makefile or in # Makefile.override) controls the permission masks on regular files when # they are installed. # ifndef STD_INSTALL_READ_MASK STD_INSTALL_READ_MASK = -m 444 endif ifndef STD_INSTALL_EXEC_MASK STD_INSTALL_EXEC_MASK = endif # # If any parameter errors have been detected, print an error description # and exit smake. If no errors, then include Makefile.base which contains # the real make commands. # ifdef ABORT_BUILD Abort .DEFAULT: @echo Error: $(ABORT_BUILD) @exit 1 else ifeq ($(BUILD_OS), IRIX) .MAKEFLAGS: ROOT=$(ROOT) TOOLROOT=$(TOOLROOT) COMP_TARGET_ROOT=$(ROOT) endif include $(BUILD_BASE)/Makefile.gbase endif # turn off flags from commondefs CSTYLE= NO_OBJECT_STYLE="" # C++ template repositories # cxx_repository: Compaq C++ # ii_files: SGI C++ # SunWS_cache: Solaris C++ XDIRT = cxx_repository ii_files SunWS_cache