File: rules

package info (click to toggle)
dropbear 2025.89-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,580 kB
  • sloc: ansic: 108,210; sh: 4,765; perl: 774; python: 763; makefile: 715; java: 177
file content (35 lines) | stat: -rwxr-xr-x 807 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
33
34
35
#!/usr/bin/make -f

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

# export DH_OPTIONS
include /usr/share/dpkg/architecture.mk

CONFFLAGS =
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
  CC = $(DEB_HOST_GNU_TYPE)-gcc
else
  CC = gcc
endif

ifneq (,$(filter diet, $(DEB_BUILD_OPTIONS)))
  CONFFLAGS =--disable-zlib
  CC =diet -v -Os gcc -nostdinc
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --disable-bundled-libtom --disable-lastlog \
	  CC='$(CC)' CFLAGS='$(CFLAGS)' $(CONFFLAGS)

execute_before_dh_auto_build:
	install -m0644 -vt $(CURDIR) -- $(CURDIR)/debian/localoptions.h

override_dh_auto_test:
	# we skip the upstream test suite as some tests require readwrite
	# access to ~/.ssh