# libggi port to IRIX by Emmanuel Marty <core@ggi-project.org>
# compilation under 5.x thanks to Vince Weaver <weaver@eng.umd.edu>

IRIXmake               =gmake
IRIXSHLIBLINKER        =cc
IRIXSHLIBLDFLAGS       =-shared -IPA
_IRIX_ARCH             =

ifneq ($(release),5.3)  
# should be if release>=6.3
# gmake directives can only test for equal or not equal to
# to get around this possibly some fancy use of text manipulation tools? 

#	IRIX 6.3 and above 32/64 bit compilation
#
#	compilation for MIPS IV architecture: R5000/R8000/R10000
#	uncomment the following lines for 32-bit build
IRIXSHBINCFLAGS       += -n32
IRIXSHLIBCFLAGS       += -n32
IRIXSHLIBLDFLAGS      += -n32
_IRIX_ARCH             = 32
#	uncomment the following lines for 64-bit build
#IRIXSHBINCFLAGS      += -64
#IRIXSHLIBCFLAGS      += -64
#IRIXSHLIBLDFLAGS     += -64
#_IRIX_ARCH	       = 64
#	common flags
IRIXSHLIBCFLAGS       += -Ofast -O3
_IRIX_COPTS            = -mips4

else
_IRIX_ARCH             = 32   
_IRIX_COPTS            = 
IRIXSHLIBCFLAGS       += -O2  
endif

#	IRIX 5.x and above
IRIXSHBINCFLAGS       += -O2 -IPA
IRIXSHLIBCFLAGS       += -IPA
IRIXSHLIBCFLAGS	      +=
IRIXSHBINLDLIBS       += -lm 
IRIXCC                 = cc
compilertype           =_IRIX_

_IRIX_COPTS  += -woff 1521 -woff 1116 -woff 1185 -woff 1048 -Xcpluscomm
_IRIX_DFLAGS  = -DDEBUG -IPA
