1 # Makefile to build all the available variants
3 BUILDS = opencvfft-st opencvfft-async fftw cufftw fftw_openmp fftw_async opencv-cufft
5 all: $(foreach build,$(BUILDS),build-$(build)/kcf_vot)
7 #CMAKE_OPTS = -DOpenCV_DIR=~/opt/opencv-2.4/share/OpenCV
9 CMAKE_OTPS_opencvfft-st = -DFFT=OpenCV
10 CMAKE_OTPS_opencvfft-async = -DFFT=OpenCV -DASYNC=ON
11 CMAKE_OTPS_opencv-cufft = -DFFT=OpenCV_cuFFT
12 CMAKE_OTPS_fftw = -DFFT=fftw
13 CMAKE_OTPS_cufftw = -DFFT=cuFFTW
14 CMAKE_OTPS_fftw_openmp = -DFFT=fftw -DOPENMP=ON
15 CMAKE_OTPS_fftw_async = -DFFT=fftw -DASYNC=ON
17 build-%/kcf_vot: $(shell git ls-files)
19 cd $(@D) && cmake $(CMAKE_OPTS) $(CMAKE_OTPS_$*) ..
23 rm -rf $(BUILDS:%=build-%)