File: rules

package info (click to toggle)
libbpf 0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,316 kB
  • sloc: ansic: 143,124; sh: 1,130; makefile: 141
file content (25 lines) | stat: -rwxr-xr-x 635 bytes parent folder | download | duplicates (5)
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND  = -Werror=implicit-function-declaration
include /usr/share/dpkg/pkg-info.mk
include /usr/share/dpkg/architecture.mk

ifeq (,$(findstring terse,$(DEB_BUILD_OPTIONS)))
        VERBOSE=1
endif

%:
	dh $@ --sourcedirectory=src

override_dh_gencontrol:
	dh_gencontrol -- -v1:$(DEB_VERSION)

override_dh_makeshlibs:
	dh_makeshlibs -- -v1:$(DEB_VERSION)

override_dh_auto_build:
	dh_auto_build -- LIBSUBDIR=lib/$(DEB_HOST_MULTIARCH) V=$(VERBOSE)

override_dh_auto_install:
	dh_auto_install -- LIBSUBDIR=lib/$(DEB_HOST_MULTIARCH) V=$(VERBOSE)