File: rules

package info (click to toggle)
argon2 0~20190702%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,036 kB
  • sloc: ansic: 3,368; makefile: 197; sh: 83; python: 17
file content (32 lines) | stat: -rwxr-xr-x 817 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
30
31
32
#!/usr/bin/make -f
# -*- makefile -*-

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/default.mk

# Upstream does not honor CPPFLAGS, hence we add it to CFLAGS here.
export CFLAGS+=$(CPPFLAGS)
# Optimized source code is only available for the x86_64 architecture.
export OPTTARGET=$(if $(findstring $(DEB_HOST_GNU_CPU),x86_64),x86-64,none)
export PKG=libargon2
export SONAME=$(PKG).so.$(SOVER)
export SOPKG=$(PKG)-$(SOVER)
export SOVER=1
export DEBPREFIX=0~
export DEBSUFFIX=+dfsg
export ARGON2_VERSION=$(subst $(DEBSUFFIX),,$(subst $(DEBPREFIX),,$(DEB_VERSION_UPSTREAM)))

%:
	dh $@

override_dh_auto_test:
	-$(MAKE) -j1 test

override_dh_auto_install:

override_dh_makeshlibs:
	dh_makeshlibs -V --add-udeb="libargon2-1-udeb"