# bzflag
# Copyright (c) 1993 - 2001 Tim Riker
#
# This package is free software;  you can redistribute it and/or
# modify it under the terms of the license found in the file
# named LICENSE that should have accompanied this file.
#
# THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

#
# configuration for irix mips2
#
CONFIG	= irix-mips2

#
# tools
#
AR	= $(TOOLROOT)/usr/bin/ar cru
CC	= $(TOOLROOT)/usr/bin/cc
CXX	= $(TOOLROOT)/usr/bin/CC
CD	= cd
CP	= /usr/bin/cp
LD	= $(TOOLROOT)/usr/bin/ld
MKDIR	= /usr/bin/mkdir
NROFF	= $(TOOLROOT)/usr/bin/nroff
RM	= /usr/bin/rm -f
RMR	= $(RM) -r
SHELL	= /bin/sh
ECHO	= echo

#
# compiler definitions
#
PCDEFS   =
PCXXDEFS =

#
# compiler options
#
PCOPTS   = -xansi -fullwarn -o32 -mips2
PCXXOPTS = -fullwarn -o32 -mips2
COPT     = -DNDEBUG -O2
CXXOPT   = -DNDEBUG -O2
CDEBUG   = -DDEBUG -g
CXXDEBUG = -DDEBUG -g

# bogus warnings switched off:
#   3482 -- class has no accessible constructors
#   3577 -- class is an inaccessible type
CWOFF    =
CXXWOFF  = -woff 3482,3577

#
# search paths
#
PCINCS   = -I$(ROOT)/usr/include
PCXXINCS = -I$(ROOT)/usr/include

#
# linker options
#
PLDOPTS  = -Wl,-wall -L$(ROOT)/usr/lib

#
# dirt
#
PDIRT    = *.[eou] a.out core

#
# on irix 6.2 and earlier we have libaudio.a and on later irix versions
# we have libaudio.so.  in AUDIO_LIBS we need to include `-B static'
# before -laudio if we need to link against libaudio.a.  this macro
# decides at link time if it's necessary or not based on whether
# libaudio.so exists.
#
AUDIO_LINKMODE = `if test ! -f $${ROOT}/usr/lib/libaudio.so; then \
		echo '-B static'; fi`

#
# libraries
#
AUDIO_LIBS =				\
	$(AUDIO_LINKMODE)		\
	-laudio				\
	-B dynamic			\
	$(NULL)

DISPLAY_LIBS =				\
	-lXsgivc			\
	$(NULL)

GL_LIBS =				\
	-lGLU				\
	-lGL				\
	$(NULL)

IMAGE_LIBS =				\
	$(NULL)

NETWORK_LIBS =				\
	$(NULL)

WINDOW_LIBS =				\
	-lXext				\
	-lX11				\
	$(NULL)

