# Depending on the platform, you need select the correct definition

HOST= sgi
MAKE= make

# Compiler command and options
CC= cc
CFLAGS=
LDLIBS= -lm

# Other commands:
AR= ar rcv
RANLIB= true
CP= cp -p
RM = - rm -f
DUMMY = true
CHMOD= chmod
CD = cd
PERL = perl

# nothing special required for linking
CCLINK = $(CC)

# Permissions:
LIB_PERMISSION= 0644
BIN_PERMISSION= 0755

# Extensions:
EXE=
OBJ= .o
LIB= .a

# For make clean:
DIRT = *$(OBJ)

# Disable builtin suffixes and rules, so we can
# be sure what is going on:
.SUFFIXES:
.SUFFIXES:   $(OBJ) .c

.c:
	$(DUMMY)
# Now put in our default rule:
# GNU make pattern, instead of suffix rule
# The explicit -o option is required for cases where
# the source file is not in the current directory. It
# causes the object file to land in the source directory
# instead of the current directory.
#%$(OBJ) : %.c
.c$(OBJ) :
	$(CC) -c $(CFLAGS) $(INCLUDES) -o $*$(OBJ) $<

#SGI requires separation between -o and filename.
#SGI does NOT allow the += operator for macros.

