File: rules

package info (click to toggle)
bali-phy 3.6.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,268 kB
  • sloc: cpp: 87,069; xml: 12,230; perl: 3,843; haskell: 3,406; python: 2,407; yacc: 1,055; lex: 530; sh: 314; makefile: 22
file content (24 lines) | stat: -rwxr-xr-x 693 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
#!/usr/bin/make -f

# Turn on hardening options for compilation.
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Add an -O3 at the end to override the O2 we can't get rid of.
export DEB_CFLAGS_MAINT_APPEND = -O3
export DEB_CXXFLAGS_MAINT_APPEND = -O3

BUILDARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)

# Compilation with debugging can use > 4G RAM, so disable it on most architectures.
ifneq ($(BUILDARCH),amd64)
DEB_CFLAGS_MAINT_APPEND += -g0
DEB_CXXFLAGS_MAINT_APPEND += -g0
endif

# Use debhelper.
%:
	dh $@ --buildsystem=meson

# Tell meson not to install the extra tools
override_dh_auto_configure:
	dh_auto_configure -- -Dextra-tools=false --buildtype=release -Db_ndebug=true