1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
export DH_VERBOSE = 1
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# configure script detects optimization and debbuging flags automatically
export DEB_CFLAGS_MAINT_STRIP = -O2 -g
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
CFLAGS += -Wno-incompatible-pointer-types
# main packaging script based on dh7 syntax
%:
dh $@ --with autoreconf
override_dh_autoreconf:
dh_autoreconf ./bootstrap
override_dh_auto_configure:
ifeq ($(DEB_TARGET_ARCH),amd64)
dh_auto_configure -- --enable-mlucas-default-path --enable-builds=generic-c,sse2,avx,avx2
else ifeq ($(DEB_TARGET_ARCH), i386)
dh_auto_configure -- --enable-mlucas-default-path --enable-builds=generic-c
else ifeq ($(DEB_TARGET_ARCH), arm64)
dh_auto_configure -- --enable-mlucas-default-path --enable-builds=generic-c
else
dh_auto_configure -- --enable-mlucas-default-path
endif
override_dh_auto_test:
dh_auto_test
|