File: rules

package info (click to toggle)
libusrsctp 0.9.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 6,604 kB
  • sloc: ansic: 82,365; sh: 176; makefile: 163; python: 48
file content (25 lines) | stat: -rwxr-xr-x 742 bytes parent folder | download
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# TODO: fix code instead!
export DEB_CFLAGS_MAINT_APPEND = -Wno-address-of-packed-member

# drop obsolete libtool linker files before debhelper notices and complains
execute_before_dh_install:
	find debian/tmp -name '*.la' -print -delete

# Let d-shlibs calculate development package dependencies
#  and handle shared library install
execute_after_dh_install:
	d-shlibmove --commit \
		--devunversioned \
		--exclude-la \
		--multiarch \
		--movedev "debian/tmp/usr/include/*" usr/include/ \
		--movedev "debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/*" \
			usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \
		debian/tmp/usr/lib/*/*.so

%:
	dh $@ --with pkgkde_symbolshelper