File: rules

package info (click to toggle)
plink 1.07+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 3,036 kB
  • sloc: cpp: 69,728; makefile: 123; sh: 12
file content (31 lines) | stat: -rwxr-xr-x 780 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
26
27
28
29
30
31
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

CXXFLAGS := -Wall $(shell dpkg-buildflags --get CXXFLAGS 2>/dev/null | sed -e 's/-O2//g')
CXXFLAGS += -DWITH_R_PLUGINS

# Activate hardening
CXXFLAGS += $(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get LDFLAGS)

# This would be added by Upstream makefile, but we override CXXFLAGS…
CXXFLAGS += -DUNIX -O3

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	rm -f plink

override_dh_auto_build:
	dh_auto_build -- CXXFLAGS='$(CXXFLAGS)' FORCE_DYNAMIC=1

override_dh_installexamples:
	dh_installexamples
	chmod 644 debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/examples/*

override_dh_installchangelogs:
	dh_installchangelogs debian/upstream.changelog