File: rules

package info (click to toggle)
libtomcrypt 1.18.2-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 9,536 kB
  • sloc: ansic: 62,544; python: 370; perl: 330; sh: 264; java: 177; makefile: 156
file content (29 lines) | stat: -rwxr-xr-x 786 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS := hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk

export CFLAGS += -DGMP_DESC -DLTM_DESC -DUSE_LTM

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
	NUMJOBS := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
else
	NUMJOBS := 1
endif

override_dh_auto_test:
	$(MAKE) coverage EXTRALIBS="-lgmp -ltommath"

override_dh_auto_build:
	$(MAKE) V=1 docs
	$(MAKE) -f makefile.shared EXTRALIBS="-lgmp -ltommath" -j$(NUMJOBS)

override_dh_auto_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp INSTALL_GROUP=root LIBPATH=/usr/lib/$(DEB_HOST_MULTIARCH) PREFIX=/usr install -f makefile.shared

%:
	dh $@