File: rules

package info (click to toggle)
libx86 1.1%2Bds1-10
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 992 kB
  • ctags: 1,610
  • sloc: ansic: 20,186; makefile: 71
file content (30 lines) | stat: -rwxr-xr-x 710 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

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

CFLAGS += -O2 -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

override_dh_builddeb:
	dh_builddeb -- -Zbzip2 -z9