CERT=../../.. KERN=../KernelExport/kernels-96x96 ALIGNDIR=../../aligneyes KERN_SOURCES:=${shell ls ${KERN}/kern*.cpp} COMMON_SOURCES=main.cpp GaborTest.cpp mp_gabor.cpp mp_SVMWeights.cpp rimage_matlab.cpp ${KERN_SOURCES} mp_threadedGabor.cpp mpt_AUIterator.cpp ${ALIGNDIR}/UnitTests/mpt_lineIterator.cpp COMMON_HEADERS=GaborTest.h mp_gabor.h rimage_matlab.h CUSTOM_INCLUDES=-I.. -I../KernelExport -I${ALIGNDIR} -I${ALIGNDIR}/UnitTests -I${cppunit_inc} -I/usr/include/libxml2 -I${MPT}/Build TEST_IMAGES=US_SanDiego_1632821_good.rimage US_SanDiego_1640242_good.rimage US_SanDiego_1727589_good.rimage boost_file=-L${boost_lib} -lboost_filesystem boost_thread=-L${boost_lib} -lboost_thread CUSTOM_CTAGS=${ALIGNDIR} .. UNITEXE=UnitTest # Where should Make search for files VPATH = .. ${ALIGNDIR} DEBUG=1 all : include ${MPT}/Build/common.mk CTAGS+= --exclude=kernels96x96 # Unfortunately we need to use the local matopts file because the default one # uses gcc-3.3 rather than g++-3.3 which means not all libraries are linked properly #MEXOPT=${MATLAB}/bin/matopts.sh #MEXOPT=${MPT}/Build/matopts.sh MEXOPT=./matopts.sh all: ${UNITEXE} SVMWeights_dir ${TEST_IMAGES} ${UNITEXE}: ${COMMON_OBJECTS} ${MPT_VER_OBJ} mex -cxx -f ${MEXOPT} $^ -lxml2 /usr/local/lib/libfftw3.a ${COMMON_INCLUDES} ${MAT_LIB} ${cppunit_lib} ${boost_file} ${boost_thread} ${boost_ser} -o $@ # This can't just be SVMWeights because then it would conflict with the one that's one directory up (because of VPATH) SVMWeights_dir: ln -s ../SVMWeights/SVMWeights $@ ${TEST_IMAGES}: ${UNZIP} -q ${ALIGNDIR}/UnitTests/testImages.zip $@ clean: common_clean rm -f ${UNITEXE} KERN: ${warning KERN_SOURCES=${COMMON_OBJECTS}}