IRIX and GCC Makefile

Shaw Terwilliger (sterwill@postman.sourcegear.com)
Wed, 4 Aug 1999 17:34:17 -0500


--4bRzO86E/ozDv8r1
Content-Type: text/plain; charset=us-ascii

Attached is the Makefile that is now abi/src/config/platforms/irix.mk
in our CVS archive now.

Later tonight I'll try to get the native IRIX cc and CC
working in place of GCC.

-- 
Shaw Terwilliger

--4bRzO86E/ozDv8r1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="irix.mk"

#! gmake

## AbiSource Program Utilities ## Copyright (C) 1998 AbiSource, Inc. ## ## This program is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License ## as published by the Free Software Foundation; either version 2 ## of the License, or (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA ## 02111-1307, USA.

############################################################################## ## SGI IRIX platform defines ##############################################################################

################################################################## ################################################################## ## The main makefile and/or this file requires that OS_ARCH be set ## to something to describe which chip that this OS is running on. ## This can be used to change which tools are used and/or which ## compiler/loader options are used. It will probably also be used ## in constructing the name object file destination directory.

OS_ARCH := $(shell uname -m)

# Define tools CC = gcc CCC = g++ RANLIB = true

# Suffixes OBJ_SUFFIX = o LIB_SUFFIX = a DLL_SUFFIX = so AR = ar cr $@

# Compiler flags # NOTE: Using both "-Wall" and "-W" turn on every single darn message # NOTE: GCC can throw, and it turns quiet compiles into raging rivers of # NOTE: warnings. -Wall includes the very useful warnings, -W includes # NOTE: more stylistic warnings. -pedantic just gets really picky about # NOTE: ANSI things. ifdef ABI_OPT_DEBUG OPTIMIZER = -g # -Wall -W -ansi -pedantic DEFINES = -DDEBUG -UNDEBUG OBJ_DIR_SFX = DBG else # NOTE: In some instances, GCC can only know about truly unused variables # NOTE: when optimizations are enabled in the compilation. For this reason, # NOTE: building with optimizations may reveal further warnings not # NOTE: visible without any -O[number] option. OPTIMIZER = -O2 # -Wall -W -ansi -pedantic DEFINES = OBJ_DIR_SFX = OBJ endif

# Includes OS_INCLUDES = #G++INCLUDES = -I/usr/include/g++

# Compiler flags PLATFORM_FLAGS = -DIRIX #PORT_FLAGS = -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR -D_XOPEN_SOURCE -D__USE_XOPEN_EXTENDED PORT_FLAGS = OS_CFLAGS = $(DSO_CFLAGS) $(PLATFORM_FLAGS) $(PORT_FLAGS)

# Architecture-specific flags OS_ENDIAN = BigEndian32

# Shared library flags MKSHLIB = $(LD) $(DSO_LDOPTS) -soname $(@:$(OBJDIR)/%.so=%.so)

# Which links can this platform create. Define one or # both of these options. (what can IRIX do? someone # with an SGI set the right one and mail a patch) UNIX_CAN_BUILD_DYNAMIC=1 UNIX_CAN_BUILD_STATIC=1

# Compiler options for static and dynamic linkage DL_LIBS = dl STATIC_FLAGS = -static

ABI_NATIVE = unix ABI_FE = Unix

# End of irix defs

--4bRzO86E/ozDv8r1--



This archive was generated by hypermail 1.03b2.