File: rules

package info (click to toggle)
iw 4.9-0.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 672 kB
  • ctags: 1,786
  • sloc: ansic: 10,748; makefile: 215; sh: 26
file content (21 lines) | stat: -rwxr-xr-x 494 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
#!/usr/bin/make -f

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

DEB_CFLAGS_MAINT_APPEND += -DNETNS_RUN_DIR=\"/run/netns\"
export DEB_CFLAGS_MAINT_APPEND

SBINDIR = /sbin
V       = 1

DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_GNU_TYPE  := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
	CC=$(DEB_HOST_GNU_TYPE)-gcc
endif

export CC SBINDIR V

%:
	dh ${@} --parallel