File: rules

package info (click to toggle)
ndpi 4.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 164,552 kB
  • sloc: ansic: 58,816; cpp: 14,558; python: 2,079; makefile: 683; sh: 287; objc: 70; ruby: 28; exp: 4
file content (30 lines) | stat: -rwxr-xr-x 836 bytes parent folder | download | duplicates (2)
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

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

# Avoid calculatin differences in timing that make the build
# fail on i386 (see https://bugs.debian.org/981771)
ifneq (,$(filter $(DEB_HOST_ARCH), i386))
    export DEB_CFLAGS_MAINT_APPEND += -ffloat-store
endif

# Used by debian/libndpi-wireshark.{install,links}. Evaluated when referenced.
WIRESHARK_PLUGINDIR = $(shell pkg-config --variable=plugindir wireshark)
export WIRESHARK_PLUGINDIR

%:
	dh $@

override_dh_auto_configure:
	NO_CONFIGURE=1 ./autogen.sh
	dh_auto_configure -- --prefix=/usr

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	cd tests && LD_LIBRARY_PATH=$(CURDIR)/src/lib ./do.sh
endif

.PHONY: override_dh_auto_configure