# Makefile for production SGI vw7.x engine

SHELL=/bin/sh

#non ABI version
PROCESSOR=procMIPS
PLATFORM=platSgi
GUI=X11

### Compiler switches
COPTS=-O2 -mips2 -g3
BASEDEFS=-D_STANDALONE -D_ABI_SOURCE -Isrc/zlib
OPTDEFS=-DFIRENZE -DHEEGPRIVATECM
THREADDEFS=
DEBUGDEFS=
CDEFS=$(BASEDEFS) $(OPTDEFS) $(THREADDEFS) $(DEBUGDEFS)

LIBRARIES=-lm -lX11 -lXext -lnsl -lc
OBJ=o
SHOBJ=so

ZLIBSUBSYS=zlib # include/zlib.h on IRIX is v1.0.4 (!!) so we build zlib
ZLIBOBJ=zlib.o

ASFLAGS=-mips2 -o32
PLATOPTS= MCPP=./cccp MDPP=./cccp

### Linker switches
LDFLAGS=-r -mips2

.IGNORE:
include src/makefiles/makefile.generic

SPLASH=bits-vw50-e-4.h
SPLASH_INC=src/makeplat/artwork

herald.o: src/plat/x11Splash.c $(SPLASH_INC)/$(SPLASH)
	$(CC) -mips2 -c -I$(SPLASH_INC) -DSPLASH_H=\"$(SPLASH)\"  \
            -o herald.o src/plat/x11Splash.c

herald.so: herald.o makefile
	/usr/bin/ld -mips2 -o herald.so -shared herald.o
