view rDiff/src/locfit/Source/Makefile @ 3:29a698dc5c7e default tip

Merge multiple heads.
author Dave Bouvier <dave@bx.psu.edu>
date Mon, 27 Jan 2014 14:15:36 -0500
parents 0f80a5141704
children
line wrap: on
line source

include ../../../bin/rdiff_config.sh

MEX=${RDIFF_MATLAB_MEX_PATH}
MKOCTFILE=${RDIFF_OCTAVE_MKOCT}
MATLAB_INCL=${RDIFF_MATLAB_INCLUDE_DIR}
LFSRC=liblfev.c liblocf.c libmut.c libtube.c
LIBDIR=../lib
INSTALLDIR=/usr/local
all: octave
octave:mexlf.mex mexpp.mex ../mex/mexlf.mex ../mex/mexpp.mex
matlab:mexlf mexpp

../mex/mexlf.mex: mexlf.mex
	cp mexlf.mex ../mex/
../mex/mexpp.mex: mexpp.mex
	cp mexpp.mex ../mex/

mexlf.mex: mexlf.c mlfut.c
	${MKOCTFILE} -v -g --mex $(MXFLAGS) $(CFLAGS) mexlf.c mlfut.c liblocf.c libmut.c libtube.c liblfev.c $(LDFLAGS)
mexpp.mex: mexpp.c mlfut.c
	${MKOCTFILE} -v -g --mex $(MXFLAGS) $(CFLAGS) mexpp.c mlfut.c liblocf.c libmut.c libtube.c liblfev.c  $(LDFLAGS)

mexlf: mexlf.c mlfut.c
	${MEX} $(MXFLAGS) $(CFLAGS) mexlf.c mlfut.c $(LDFLAGS)
mexpp: mexpp.c mlfut.c
	${MEX} $(MXFLAGS) $(CFLAGS) mexpp.c mlfut.c $(LDFLAGS)
nodlls: mexlf.c mlfut.c mexpp.c $(LFSRC)
	${MEX} $(MXFLAGS) mexlf.c mlfut.c $(LFSRC)
	${MEX} $(MXFLAGS) mexpp.c mlfut.c $(LFSRC)
very-clean: clean
	rm -f mexlf.mexglx mexpp.mexglx
clean:
	rm -f *.o *.mex *.mexglx *.mexa64
FORCE: