File: rules

package info (click to toggle)
efivar 37-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,648 kB
  • sloc: ansic: 10,605; makefile: 234; asm: 34
file content (23 lines) | stat: -rwxr-xr-x 599 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
#!/usr/bin/make -f
# -*- makefile -*-

export DH_VERBOSE=1
export DH_OPTIONS=-V

include /usr/share/dpkg/default.mk

export DEB_CFLAGS_MAINT_APPEND= -flto -flto-partition=none
export DEB_LDFLAGS_MAINT_APPEND= -flto -flto-partition=none
ifeq ($(DEB_HOST_ARCH),amd64)
export DEB_CFLAGS_MAINT_APPEND+= -fcf-protection
export DEB_LDFLAGS_MAINT_APPEND+= -fcf-protection
endif

%:
	dh $@ 

override_dh_auto_build:
	dh_auto_build -- LIBDIR=\$${PREFIX}/lib/$(DEB_HOST_MULTIARCH) CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)-

override_dh_auto_install:
	dh_auto_install -- LIBDIR=\$${PREFIX}/lib/$(DEB_HOST_MULTIARCH)