File: rules

package info (click to toggle)
libpam-encfs 0.1.4.4-15
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 180 kB
  • sloc: ansic: 1,009; makefile: 55; sh: 40
file content (24 lines) | stat: -rwxr-xr-x 632 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
20
21
22
23
24
#!/usr/bin/make -f
# -*- makefile -*-

# Upstream CFLAGS line. Kept here just for info. "-fPIC -c" are required.
UPSTREAM_CFLAGS = -fPIC -O2 -c -g -Wall -Wformat-security -fno-strict-aliasing

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

CFLAGS  += $(UPSTREAM_CFLAGS)
LDFLAGS += --shared

%:
	dh $@

override_dh_auto_build:
	cp -i debian/Upstream.Changelog changelog
	cp -i debian/encfs.pam-config debian/encfs
	dh_auto_build -- 'LD=$$(CC)' CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"

override_dh_auto_clean:
	rm -f changelog debian/encfs
	dh_auto_clean