File: rules

package info (click to toggle)
libdebug 0.5.3-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 272 kB
  • sloc: ansic: 1,194; makefile: 128
file content (37 lines) | stat: -rwxr-xr-x 992 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
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/make -f

# Aim for the top, adapt if anything should break on the buildds.
DEB_BUILD_MAINT_OPTIONS=	hardening=+all future=+lfs

DEB_CPPFLAGS_MAINT_APPEND=	-D_DEFAULT_SOURCE

DEB_CFLAGS_MAINT_APPEND=	-pipe -Wall -W -Wbad-function-cast \
		-Wcast-align -Wcast-qual -Wchar-subscripts -Winline \
		-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
		-Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings
ifneq (,$(filter werror,$(DEB_BUILD_OPTIONS)))
DEB_CFLAGS_MAINT_APPEND+=	-Werror
endif

DPKG_EXPORT_BUILDFLAGS=		1

include /usr/share/dpkg/default.mk

_STRIP=		no
export _STRIP

override_dh_auto_install:
	dh_auto_install -- DESTDIR=$(CURDIR)/debian/tmp prefix=/usr \
		libdir=/usr/lib/$(DEB_HOST_MULTIARCH) install

override_dh_installchangelogs:
	dh_installchangelogs -X Changes
	set -e; for p in $$(dh_listpackages); do \
		install -m 644 -- Changes "$(CURDIR)/debian/$$p/usr/share/doc/$$p/NEWS"; \
	done

override_dh_makeshlibs:
	dh_makeshlibs -- -c4

%:
	dh $@