Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 ifeq (,$(filter terse,${DEB_BUILD_OPTIONS}))
4 export DH_VERBOSE=1
5 export V=1
6 export VERBOSE=1
7 endif
8
9 LC_ALL:=C.UTF-8
10 export LC_ALL
11
12 shellescape='$(subst ','\'',$(1))'
13 shellexport=$(1)=$(call shellescape,${$(1)})
14
15 include /usr/share/dpkg/buildtools.mk
16
17 OUR_CPPFLAGS:=
18 OUR_CFLAGS:=
19 OUR_LDFLAGS:=
20
21 ifneq (,$(filter debug,${DEB_BUILD_OPTIONS}))
22 OUR_CFLAGS+= -Og -g3
23 endif
24
25 OUR_CPPFLAGS+= -DPAX_SAFE_PATH=\"/usr/bin\"
26 OUR_CFLAGS+= -Wall -Wextra -Wformat -fno-strict-aliasing
27
28 dpkgbuildflagsmkescape=$(subst \,\\\,$(1))
29 export DEB_BUILD_MAINT_OPTIONS:=hardening=+all optimize=-lto
30 export DEB_CPPFLAGS_MAINT_APPEND:=$(call dpkgbuildflagsmkescape,${OUR_CPPFLAGS})
31 export DEB_CFLAGS_MAINT_APPEND:=$(call dpkgbuildflagsmkescape,${OUR_CFLAGS})
32 export DEB_LDFLAGS_MAINT_APPEND:=$(call dpkgbuildflagsmkescape,${OUR_LDFLAGS})
33 include /usr/share/dpkg/buildflags.mk
34
35 %:
36 dh $@ --buildsystem=none
37
38 execute_before_dh_auto_clean:
39 rm -rf builddir
40
41 override_dh_auto_build:
42 rm -rf builddir
43 mkdir builddir
44 (cd builddir; env \
45 $(foreach i,CC CPPFLAGS CFLAGS LDFLAGS,$(call shellexport,$i)) \
46 sh ../Build.sh -r -tpax; \
47 echo $$? >Build.rv \
48 ) 2>&1 | sed \
49 -e 's!conftest.c:\([0-9]*\(:[0-9]*\)*\): error:!cE(\1) -!g' \
50 -e 's!conftest.c:\([0-9]*\(:[0-9]*\)*\): warning:!cW(\1) -!g' \
51 -e 's!conftest.c:\([0-9]*\(:[0-9]*\)*\): note:!cN(\1) -!g'
52 test x"$$(cat builddir/Build.rv 2>&1)" = x"0"
53
54 execute_before_dh_installdeb:
55 if command -v dh_movetousr >/dev/null 2>&1; then dh_movetousr; fi