File: rules

package info (click to toggle)
mktorrent 1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 196 kB
  • sloc: ansic: 1,524; makefile: 14
file content (19 lines) | stat: -rwxr-xr-x 492 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

# https://wiki.debian.org/HardeningWalkthrough
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Build and installation options
export USE_PTHREADS = 1
export PREFIX = /usr
export USE_OPENSSL = 1
export USE_LARGE_FILES = 1
export USE_LONG_OPTIONS = 1

%:
	dh $@

override_dh_auto_build:
	# The Makefile supports CFLAGS, but not CPPFLAGS, let's append them.
	# https://wiki.debian.org/HardeningWalkthrough#Handwritten_Makefiles
	CFLAGS="$$CFLAGS $$CPPFLAGS" dh_auto_build