mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-07-12 21:44:44 +03:00
21 lines
511 B
Makefile
Executable File
21 lines
511 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
|
|
|
ifeq ($(DEB_HOST_ARCH),amd64)
|
|
export DEB_CMAKE_FLAGS = -DBUILD_AVX2=on -DBUILD_AVX512=on -DBUILD_AVX512VBMI=off -DFAT_RUNTIME=on
|
|
endif
|
|
|
|
ifeq ($(DEB_HOST_ARCH),arm64)
|
|
export DEB_CMAKE_FLAGS = -DBUILD_SVE=on -DBUILD_SVE2=on -DBUILD_SVE2_BITPERM=on -DFAT_RUNTIME=on
|
|
endif
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_configure:
|
|
dh_auto_configure -- \
|
|
-DBUILD_STATIC_LIBS=On -DBUILD_SHARED_LIBS=On \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
${DEB_CMAKE_FLAGS}
|