File: rules

package info (click to toggle)
sidplayfp 0.3.1-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,168 kB
  • sloc: sh: 13,651; cpp: 4,335; makefile: 88
file content (25 lines) | stat: -rwxr-xr-x 630 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
#! /usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

ifneq (,$(filter debug,$(DEB_BUILD_OPTIONS)))
        EXTRA_CONFIGURE_OPTS += --enable-debug
endif

#export DH_OPTIONS += --dbg-package=sidplayfp-dbg

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
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)
CPPFLAGS	+= $(HARDENING_CPPFLAGS)
LDFLAGS		+= $(HARDENING_LDFLAGS)

%:
	dh $@