File: rules

package info (click to toggle)
libpri 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 2,732 kB
  • sloc: ansic: 39,053; makefile: 159; sh: 66
file content (22 lines) | stat: -rwxr-xr-x 576 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

env_cmd = env DEB_BUILD_MAINT_OPTIONS=$(DEB_BUILD_MAINT_OPTIONS)

# := as there's no configure script in the middle right now and we want
#    to see explicit flags in the build log.
# env: export has no effect on $(shell)
CFLAGS  := $(shell $(env_cmd) dpkg-buildflags --get CFLAGS)
CFLAGS  += $(shell $(env_cmd) dpkg-buildflags --get CPPFLAGS)
LDFLAGS := $(shell $(env_cmd) dpkg-buildflags --get LDFLAGS)

export CFLAGS LDFLAGS

%:
	dh $@

get-orig-source:
	uscan --force-download

.PHONY: get-orig-source