File: rules

package info (click to toggle)
libdfp 1.0.17-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,172 kB
  • sloc: ansic: 255,724; sh: 4,225; makefile: 703; awk: 461; python: 432; cpp: 254
file content (30 lines) | stat: -rwxr-xr-x 761 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
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions

DERIVATIVE := $(shell if dpkg-vendor --derives-from Ubuntu; then echo Ubuntu; \
                elif dpkg-vendor --derives-from Debian; then echo Debian; \
                else echo Unknown; fi)

ifeq ($(DERIVATIVE),Ubuntu)
  ifeq ($(DEB_HOST_ARCH),ppc64el)
	cpu = --with-cpu=power9
  else ifeq ($(DEB_HOST_ARCH),s390x)
	cpu = --with-cpu=z15
  endif
else # Debian
  ifeq ($(DEB_HOST_ARCH),ppc64el)
	cpu = --with-cpu=power8
  else ifeq ($(DEB_HOST_ARCH),s390x)
	cpu = --with-cpu=zEC12
  endif
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --enable-decimal-float=yes $(cpu)