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
|
|
8
|
|
9 all: get_reads.mex interval_overlap.mex get_reads.mexa64 interval_overlap.mexa64
|
|
10 octave: get_reads.mex interval_overlap.mex
|
|
11 matlab: get_reads.mexa64 interval_overlap.mexa64
|
|
12
|
|
13
|
|
14 get_reads.mexa64: get_reads.cpp get_reads_direct.cpp mex_input.cpp read.cpp
|
|
15 rm -f *.o
|
|
16 ${MEX} -g -O get_reads.cpp get_reads_direct.cpp mex_input.cpp read.cpp -I${SAMDIR} -L${SAMDIR} -lbam -lz -lcurses -I$(MATLAB_INCL)
|
|
17
|
|
18 interval_overlap.mexa64: interval_overlap.cpp
|
|
19 ${MEX} -g -O interval_overlap.cpp -I$(MATLAB_INCL)
|
|
20
|
|
21 get_reads.mex: get_reads.cpp get_reads_direct.cpp mex_input.cpp read.cpp
|
|
22 rm -f *.o
|
|
23 ${MKOCTFILE} -g --mex get_reads.cpp get_reads_direct.cpp mex_input.cpp read.cpp -I${SAMDIR} -L${SAMDIR} -lbam -lz -lcurses
|
|
24
|
|
25 interval_overlap.mex: interval_overlap.cpp
|
|
26 rm -f *.o
|
|
27 ${MKOCTFILE} -g --mex interval_overlap.cpp
|
|
28
|
|
29 clean:
|
|
30 rm -f *.o *.mexa64 *.mex
|