kusano 7d535a
include ../make.inc
kusano 7d535a
kusano 7d535a
LUSRC   = ../SRC
kusano 7d535a
HEADER	= -I$(LUSRC) -I$(MATLAB)/extern/include 
kusano 7d535a
#
kusano 7d535a
# For Matlab Version 4 compatibility: comment out -DV5, add -V4 in FFLAGS
kusano 7d535a
FLAGS   = -O -DV5
kusano 7d535a
kusano 7d535a
all:            mexlusolve mexsuperlu
kusano 7d535a
kusano 7d535a
mexlusolve:	mexlusolve.c $(SUPERLULIB)
kusano 7d535a
		${MATLAB}/bin/mex $(HEADER) ${FLAGS} mexlusolve.c \
kusano 7d535a
		$(SUPERLULIB) $(BLASLIB) -lm
kusano 7d535a
kusano 7d535a
mexsuperlu:	mexsuperlu.c $(SUPERLULIB)
kusano 7d535a
		${MATLAB}/bin/mex $(HEADER) ${FLAGS} mexsuperlu.c \
kusano 7d535a
		$(SUPERLULIB) $(BLASLIB) -lm
kusano 7d535a
kusano 7d535a
clean:	
kusano 7d535a
	rm -f *.o *.mex*