File: rules

package info (click to toggle)
libtomcrypt 1.17-9
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,728 kB
  • ctags: 2,733
  • sloc: ansic: 38,792; makefile: 326; sh: 88; perl: 48
file content (22 lines) | stat: -rwxr-xr-x 539 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
#!/usr/bin/make -f
# -*- makefile -*-

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)

override_dh_auto_test:
	# Tests don’t pass currently.

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

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

%:
	dh $@