File: rules

package info (click to toggle)
tcplay 1.1-6
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 27,440 kB
  • sloc: ansic: 4,088; ruby: 514; makefile: 24; sh: 16
file content (33 lines) | stat: -rwxr-xr-x 858 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
#! /usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

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

CFLAGS		?= $(shell dpkg-buildflags --get CFLAGS)
CPPFLAGS	?= $(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS		?= $(shell dpkg-buildflags --get LDFLAGS)
CFLAGS		+= $(HARDENING_CFLAGS)
CFLAGS		+= $(CPPFLAGS)
CPPFLAGS	+= $(HARDENING_CFLAGS)
LDFLAGS		+= $(HARDENING_LDFLAGS)

DESTDIR = $(CURDIR)/debian/tmp/

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
	DEBUG = DEBUG=yes
endif

override_dh_auto_build:
	dh_auto_build -- SYSTEM=linux PBKDF_BACKEND=gcrypt $(DEBUG)

# test needs the library, which can't be built ATM
override_dh_auto_test:

%:
	dh $@

.PHONY: override_dh_auto_build override_dh_auto_test