Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 #export DH_VERBOSE=1
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6 export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions
7
8 DERIVATIVE := $(shell if dpkg-vendor --derives-from Ubuntu; then echo Ubuntu; \
9 elif dpkg-vendor --derives-from Debian; then echo Debian; \
10 else echo Unknown; fi)
11
12 ifeq ($(DERIVATIVE),Ubuntu)
13 ifeq ($(DEB_HOST_ARCH),ppc64el)
14 cpu = --with-cpu=power9
15 else ifeq ($(DEB_HOST_ARCH),s390x)
16 cpu = --with-cpu=z15
17 endif
18 else # Debian
19 ifeq ($(DEB_HOST_ARCH),ppc64el)
20 cpu = --with-cpu=power8
21 else ifeq ($(DEB_HOST_ARCH),s390x)
22 cpu = --with-cpu=zEC12
23 endif
24 endif
25
26 %:
27 dh $@
28
29 override_dh_auto_configure:
30 dh_auto_configure -- --enable-decimal-float=yes $(cpu)