0
|
1 include ../../../bin/rdiff_config.sh
|
|
2
|
|
3 MEX=${RDIFF_MATLAB_MEX_PATH}
|
|
4 MKOCTFILE=${RDIFF_OCTAVE_MKOCT}
|
|
5 MATLAB_INCL=${RDIFF_MATLAB_INCLUDE_DIR}
|
|
6 LFSRC=liblfev.c liblocf.c libmut.c libtube.c
|
|
7 LIBDIR=../lib
|
|
8 INSTALLDIR=/usr/local
|
|
9 all: octave
|
|
10 octave:mexlf.mex mexpp.mex ../mex/mexlf.mex ../mex/mexpp.mex
|
|
11 matlab:mexlf mexpp
|
|
12
|
|
13 ../mex/mexlf.mex: mexlf.mex
|
|
14 cp mexlf.mex ../mex/
|
|
15 ../mex/mexpp.mex: mexpp.mex
|
|
16 cp mexpp.mex ../mex/
|
|
17
|
|
18 mexlf.mex: mexlf.c mlfut.c
|
|
19 ${MKOCTFILE} -v -g --mex $(MXFLAGS) $(CFLAGS) mexlf.c mlfut.c liblocf.c libmut.c libtube.c liblfev.c $(LDFLAGS)
|
|
20 mexpp.mex: mexpp.c mlfut.c
|
|
21 ${MKOCTFILE} -v -g --mex $(MXFLAGS) $(CFLAGS) mexpp.c mlfut.c liblocf.c libmut.c libtube.c liblfev.c $(LDFLAGS)
|
|
22
|
|
23 mexlf: mexlf.c mlfut.c
|
|
24 ${MEX} $(MXFLAGS) $(CFLAGS) mexlf.c mlfut.c $(LDFLAGS)
|
|
25 mexpp: mexpp.c mlfut.c
|
|
26 ${MEX} $(MXFLAGS) $(CFLAGS) mexpp.c mlfut.c $(LDFLAGS)
|
|
27 nodlls: mexlf.c mlfut.c mexpp.c $(LFSRC)
|
|
28 ${MEX} $(MXFLAGS) mexlf.c mlfut.c $(LFSRC)
|
|
29 ${MEX} $(MXFLAGS) mexpp.c mlfut.c $(LFSRC)
|
|
30 very-clean: clean
|
|
31 rm -f mexlf.mexglx mexpp.mexglx
|
|
32 clean:
|
|
33 rm -f *.o *.mex *.mexglx *.mexa64
|
|
34 FORCE:
|