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