Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # -D_FORTIFY_SOURCE=3 is used by the upstream build system,
4 # do not conflict it with -D_FORTIFY_SOURCE=2:
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-fortify
6
7 # Ensure that we link against all needed libraries (cf. Policy 10.2)
8 export DEB_LDFLAGS_MAINT_APPEND=-Wl,-z,defs
9
10 %:
11 dh $@
12
13 override_dh_auto_configure:
14 dh_auto_configure -- \
15 --docdir=/usr/share/doc/libknet1 \
16 `dh_listpackages | grep -q '^libknet-doc$$' || printf %s --disable-man` \
17 --disable-static
18
19 override_dh_installdocs:
20 dh_installdocs -A COPYRIGHT README
21
22 override_dh_makeshlibs:
23 dh_makeshlibs --exclude=/kronosnet/ # ignore the modules