# See common.mk for most variable definitions ALIGNDIR=../aligneyes COMMON_SOURCES=main.cpp CERT?=../../.. #DEBUG=1 MEXEXE=SVMExport.${MEX_EXT} WEIGHTSFILE=W_weighted_20070617.mat #WEIGHTSFILE=W_20070617.mat #WEIGHTSFILE=CERT3_Weights.mat #WEIGHTSFILE=FFD06_EF06_W_norm_mod6_plus20b.mat #WEIGHTSFILE=FFD06_EF06_W_norm_mod6.mat #WEIGHTSFILE=SVMweights9_21_05.mat WEIGHTS_PREFIX=CERT3_3_Weights CERTVER=${shell svnversion ${CERT}} all: include ${MPT}/Build/common.mk # If this variable is not being used from any other place (e.g. other makefiles or scripts) # then we should rename it, since it actually makes things noisy, not silent. ifeq "${IS_SILENT}" "1" MATARG=0 DEVNULL=2&> /dev/null NODISPLAY=-nodisplay else MATARG=1 endif all: ${MEXEXE} ${WEIGHTSFILE} Wem.mat SVMWeights mex: ${MEXEXE} ${MEXEXE}: ${COMMON_OBJECTS} ifeq "${VER}" "3.3" ${MEX} -cxx ${COMMON_OBJECTS} ${COMMON_INCLUDES} -o $@ else @echo "Skipping build of $@ because GCC version is not 3.3." endif ${WEIGHTSFILE}: ln -f -s ${CERT}/Source/${WEIGHTSFILE} Wem.mat: ln -f -s ${CERT}/Source/Wnorm_5emb.mat $@ SVMWeights: ${MEXEXE} ${WEIGHTSFILE} ifeq "${VER}" "3.3" mkdir -p SVMWeights matlab -nojvm -nosplash -nodesktop ${NODISPLAY} -r "makeSVMWeights( '${WEIGHTSFILE}', ${MATARG}, '${WEIGHTS_PREFIX}', '${CERTVER}');exit" ${DEVNULL} # matlab -nojvm -nosplash -nodesktop ${NODISPLAY} -r "makeSVMWeights( 'Wem.mat', ${MATARG}, 'EmotionWeights', '${CERTVER}');exit" ${DEVNULL} else @echo "Skipping build of $@ because GCC version is not 3.3." endif external: ${MEXEXE} ${WEIGHTSFILE} mkdir -p SVMWeights checkver: echo ${CERTVER} install: all mkdir -p ${CERT}/SVMWeights ${INSTALLDATA} SVMWeights/*.xml ${CERT}/SVMWeights clean: common_clean cleanall: clean rm -rf SVMWeights ${WEIGHTSFILE} ${MEXEXE} main.d