view rDiff/mex/Makefile.bck @ 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=${MATLAB_MEX_PATH}
MKOCTFILE=${OCTAVE_MKOCT}
MATLAB_INCL=${MATLAB_INCLUDE_DIR}
SAMDIR=${SAMTOOLS_DIR}


all:	get_reads.mex interval_overlap.mex get_reads.mexa64 interval_overlap.mexa64
octave:	get_reads.mex interval_overlap.mex
matlab:	get_reads.mexa64 interval_overlap.mexa64


get_reads.mexa64:	get_reads.cpp get_reads_direct.cpp mex_input.cpp read.cpp
	rm -f *.o
	${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)

interval_overlap.mexa64:	interval_overlap.cpp
	${MEX} -g -O interval_overlap.cpp -I$(MATLAB_INCL)

get_reads.mex:	get_reads.cpp get_reads_direct.cpp mex_input.cpp read.cpp
	rm -f *.o
	${MKOCTFILE} -g --mex get_reads.cpp get_reads_direct.cpp mex_input.cpp read.cpp -I${SAMDIR} -L${SAMDIR} -lbam -lz -lcurses

interval_overlap.mex: interval_overlap.cpp
	rm -f *.o
	${MKOCTFILE} -g --mex interval_overlap.cpp

clean:	
	rm -f *.o *.mexa64 *.mex