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:
$(MAKE) 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
|