
# This is the makefile for the MVC Hyper Surface Plugin.
# Originally written for SDK 1.1 Beta 2
# Last compile using: Softimage 3.8sp1 SDk 1.8
#
# Requires the Nurbs and transformation code from the Blend Plugin.

# Softimage SDK
SAA_TOP = /usr/softimage/SDK_1.8/SAAPHIRE
SAA_INC = $(SAA_TOP)/h
SAA_DSO = $(SAA_TOP)/dso
SAA_LIBS = $(SAA_DSO)/libSAA.so

# Location of Blend Plugin for Nurbs and transform code.
BLENDHOME = ../MVCblend

# Where to install to.
CUSTOMDIR = $(HOME)/Softimage/custom

CC = CC
CFLAGS = -mips3 -n32 -shared -O2 -fullwarn -rdata_shared
INCLUDES = -I. -I$(SAA_INC) -I$(BLENDHOME)
CLIBS = -lm

DEFINES = -DHP -DNURB

TARGETBASE = MVChyper

.MAKEOPTS: -O

OBJS =	$(BLENDHOME)/nurb1.o \
	$(BLENDHOME)/nurb2.o \
	$(BLENDHOME)/nurb3.o \
	$(BLENDHOME)/nurb4.o \
	$(BLENDHOME)/nurb5.o \
	$(BLENDHOME)/nurb6.o \
	$(BLENDHOME)/tran.o \
	blending.o \
	convert.o \
	oslo.o \
	hyper.o \
	misc.o \
	skinning.o

.SUFFIXES : .o .c

.c.o :
	$(CC) $(CFLAGS) -c $< $(INCLUDES)

all: $(OBJS)
	$(CC) $(CFLAGS) -o $(TARGETBASE).so $(OBJS) $(INCLUDES) $(CLIBS) $(SAA_LIBS)
	cp $(TARGETBASE).so  $(CUSTOMDIR)/dso/
	cp $(TARGETBASE).cus $(CUSTOMDIR)/motion/
	cp $(TARGETBASE).hrc $(CUSTOMDIR)/motion/


clean:
	rm -f $(OBJS)

