]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/blob - Makefile
Added profiling option to the project using perf_event_open and libpfm4. Also correct...
[hercules2020/kcf.git] / Makefile
1 # Makefile to build all the available variants
2
3 BUILDS = opencvfft-st opencvfft-async fftw cufftw fftw_openmp fftw_async opencv-cufft
4
5 all: $(foreach build,$(BUILDS),build-$(build)/kcf_vot)
6
7 #CMAKE_OPTS = -DOpenCV_DIR=~/opt/opencv-2.4/share/OpenCV
8
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
16
17 build-%/kcf_vot: $(shell git ls-files)
18         mkdir -p $(@D)
19         cd $(@D) && cmake $(CMAKE_OPTS) $(CMAKE_OTPS_$*) ..
20         cmake --build $(@D)
21
22 clean:
23         rm -rf $(BUILDS:%=build-%)