File: rules

package info (click to toggle)
libdv 1.0.0-11
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,876 kB
  • ctags: 2,286
  • sloc: ansic: 14,669; sh: 8,725; asm: 7,250; makefile: 131
file content (21 lines) | stat: -rwxr-xr-x 437 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export PVER=$(shell dpkg-parsechangelog --show-field version | cut -d"-" -f1)

%:
	dh $@ --parallel --with autoreconf

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
endif

override_dh_auto_configure:
	dh_auto_configure -- LDFLAGS="$(LDFLAGS) -Wl,--as-needed"\
		--disable-static \
		--enable-sdl

override_dh_makeshlibs:
	dh_makeshlibs -- -v$(PVER)