File: rules

package info (click to toggle)
libunwind 1.3.2-2
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 6,488 kB
  • sloc: ansic: 34,846; sh: 4,839; asm: 1,867; makefile: 979; cpp: 118
file content (48 lines) | stat: -rwxr-xr-x 1,480 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
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=-all,+format

ifneq (,$(filter $(DEB_HOST_ARCH), amd64 i386))
  CXX_EXCEPTIONS=--enable-cxx-exceptions
endif

%:
	dh $@

binary binary-arch: debian/libunwind-setjmp0.preinst debian/libunwind-setjmp0.postrm

override_dh_auto_build:
	chmod 755 src/ia64/mk_cursor_i
	dh_auto_build

debian/libunwind-setjmp0.%: debian/libunwind-setjmp0.%.in
	$(if $(DEB_HOST_MULTIARCH),:,$(error DEB_HOST_MULTIARCH is not defined))
	sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' $< > $@

override_dh_auto_configure:
	dh_auto_configure -- $(CXX_EXCEPTIONS) --includedir=\$${prefix}/include/$(DEB_HOST_MULTIARCH)

override_dh_install:
	dh_install
	for d in libunwind8 libunwind-dev ; do \
	  find "debian/$$d/usr/lib" -name "libunwind*-setjmp*" -delete ; \
	done
ifeq ($(filter pkg.libunwind.nolzma ,$(DEB_BUILD_PROFILES)),)
ifeq ($(DEB_HOST_ARCH), ia64)	
	mv debian/libunwind-dev/usr/lib/ia64-linux-gnu/libunwind.a debian/libunwind-dev/usr/lib/ia64-linux-gnu/libunwind-real.a
	echo "INPUT( libunwind-real.a liblzma.a )" > debian/libunwind-dev/usr/lib/ia64-linux-gnu/libunwind.a
endif
endif

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	-$(MAKE) check
endif # nocheck

override_dh_strip:
	dh_strip -plibunwind8 -plibunwind-setjmp0 --dbgsym-migration='libunwind8-dbg (<< 1.2.1-1~), libunwind-setjmp0-dbg (<< 1.2.1-1~)'