Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # © 2003-2016, Ron Lee
3 # © 2022, IOhannes m zmölnig
4
5 #export DH_VERBOSE=1
6 export DH_OPTIONS
7
8 ## use hardening some flags
9 DPKG_EXPORT_BUILDFLAGS = 1
10 DEB_BUILD_MAINT_OPTIONS=hardening=+all
11 export DEB_BUILD_MAINT_OPTIONS
12
13 include /usr/share/dpkg/buildflags.mk
14 include /usr/share/dpkg/pkg-info.mk
15
16 #ifneq (,$(filter-out alpha hppa arm, $(DEB_HOST_ARCH)))
17 # HARD_CFLAGS += -fstack-protector --param ssp-buffer-size=4
18 #endif
19 #ifneq (,$(filter-out ia64 hppa avr32, $(DEB_HOST_ARCH)))
20 # HARD_LDFLAGS += -Wl,-z,relro
21 #endif
22
23 ## Keep dpkg-buildpackage the hell out of messing with our compile flags,
24 ## we should trust upstream to know better than it what to use here.
25 ## We explicitly re-add -g and -O2 here, since by explicitly overriding
26 ## these variables, we otherwise disable autoconf adding them by default.
27 #CPPFLAGS = $(HARD_CPPFLAGS)
28 #CFLAGS = $(HARD_CFLAGS) -g -O2
29 #CXXFLAGS = $(HARD_CFLAGS) -g -O2
30 #LDFLAGS = $(HARD_LDFLAGS)
31
32
33 #ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
34 # CFLAGS = -g -O0
35 #endif
36
37
38 EXTRA_CONFIG_FLAGS =
39 ifneq (,$(filter arm armel mips mipsel, $(DEB_HOST_ARCH)))
40 EXTRA_CONFIG_FLAGS += --enable-fixed-point
41 endif
42
43
44 %:
45 dh $@
46
47
48 override_dh_auto_configure:
49 dh_auto_configure -- \
50 $(EXTRA_CONFIG_FLAGS)
51
52 override_dh_installdocs:
53 dh_installdocs -A \
54 AUTHORS README.md
55
56 override_dh_strip:
57 dh_strip --dbgsym-migration="libopusfile-dbg (<< 0.12-1~)"
58
59 DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
60 debian/.*
61 # licensecheck v1
62 .PHONY: licensecheck
63 licensecheck:
64 LANG=C.UTF-8 licensecheck \
65 -i "^($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" \
66 --check '.*' --recursive --deb-machine --lines 0 * \
67 > debian/copyright_newhints
68 cmp debian/copyright_hints debian/copyright_newhints \
69 && rm debian/copyright_newhints