]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/blob - Makefile
Removed zero copy for complexmat now it is using normal device memory. Added zero...
[hercules2020/kcf.git] / Makefile
1 # Makefile to build all the available variants
2
3 BUILDS = opencvfft-st opencvfft-async fftw fftw_openmp fftw_async fftw_big fftw_big_openmp cufftw cufftw_big cufftw_big_openmp cufft cufft_big cufft_big_openmp
4
5 all: $(foreach build,$(BUILDS),build-$(build)/kcf_vot)
6
7 CMAKE_OPTS += -G Ninja
8 #CMAKE_OPTS += = -DOpenCV_DIR=
9
10 CMAKE_OTPS_opencvfft-st      = -DFFT=OpenCV
11 CMAKE_OTPS_opencvfft-async   = -DFFT=OpenCV -DASYNC=ON
12 #CMAKE_OTPS_opencv-cufft    = -DFFT=OpenCV_cuFFT
13 CMAKE_OTPS_fftw              = -DFFT=fftw
14 CMAKE_OTPS_fftw_openmp       = -DFFT=fftw -DOPENMP=ON
15 CMAKE_OTPS_fftw_async        = -DFFT=fftw -DASYNC=ON
16 CMAKE_OTPS_fftw_big          = -DFFT=fftw -DBIG_BATCH=ON
17 CMAKE_OTPS_fftw_big_openmp   = -DFFT=fftw -DBIG_BATCH=ON -DOPENMP=ON
18 CMAKE_OTPS_cufftw            = -DFFT=cuFFTW
19 CMAKE_OTPS_cufftw_big        = -DFFT=cuFFTW -DBIG_BATCH=ON
20 CMAKE_OTPS_cufftw_big_openmp = -DFFT=cuFFTW -DBIG_BATCH=ON -DOPENMP=ON
21 CMAKE_OTPS_cufft             = -DFFT=cuFFT
22 CMAKE_OTPS_cufft_big         = -DFFT=cuFFT -DBIG_BATCH=ON
23 CMAKE_OTPS_cufft_big_openmp  = -DFFT=cuFFT -DBIG_BATCH=ON -DOPENMP=ON
24
25 build-%/kcf_vot: $(shell git ls-files)
26         mkdir -p $(@D)
27         cd $(@D) && cmake $(CMAKE_OPTS) $(CMAKE_OTPS_$*) ..
28         cmake --build $(@D)
29
30 $(BUILDS): %: build-%/kcf_vot
31
32 clean:
33         rm -rf $(BUILDS:%=build-%)