File: rules

package info (click to toggle)
mlucas 20.1.1-1.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,284 kB
  • sloc: ansic: 303,316; sh: 4,455; python: 640; perl: 115; makefile: 23
file content (40 lines) | stat: -rwxr-xr-x 1,191 bytes parent folder | download
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