File: rules

package info (click to toggle)
libx86 1.1%2Bds1-10.2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 988 kB
  • ctags: 1,610
  • sloc: ansic: 20,186; makefile: 69
file content (29 lines) | stat: -rwxr-xr-x 703 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
#!/usr/bin/make -f
# -*- makefile -*-

export DH_VERBOSE=1

DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

# see #852663 regarding the -O1 workaround
CFLAGS += -O1 -Wall -DDEBUG -g

export LIBDIR = /usr/lib/$(DEB_HOST_MULTIARCH)
export LIBEXECDIR = /lib/$(DEB_HOST_MULTIARCH)

BACKEND = x86emu

%:
	dh $@ 

override_dh_auto_build:
	dh_auto_build -- BACKEND="$(BACKEND)"

override_dh_strip:
	dh_strip --dbg-package=libx86-dbg