File: rules

package info (click to toggle)
dsfmt 2.2.3%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 944 kB
  • sloc: ansic: 4,839; makefile: 94; sh: 17
file content (26 lines) | stat: -rwxr-xr-x 680 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
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CONFIGURE_FLAGS += --disable-optimize
endif
ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386))
CONFIGURE_FLAGS += --enable-sse2
endif
# Altivec is enabled on ppc64 but disabled on ppc64el, since the Altivec
# variant of the recursion in dSFMT-common.h assumes big endian byte order.
ifneq (,$(filter $(DEB_HOST_ARCH),powerpc ppc64))
CONFIGURE_FLAGS += --enable-altivec
endif

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_FLAGS)

override_dh_installchangelogs:
	dh_installchangelogs CHANGE-LOG.txt