| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# __FILE__ used in logging macros, so -fdebug-prefix-map is not enough, |
| 4 |
# to make the build reproducible we need -ffile-prefix-map |
| 5 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=+fixfilepath |
| 6 |
|
| 7 |
# Required to build with OpenSSL 3.0, can be dropped once upstream fixes it |
| 8 |
export DEB_CFLAGS_MAINT_APPEND=-Wno-error=deprecated-declarations -Wno-error=incompatible-pointer-types |
| 9 |
|
| 10 |
# CMake is used to build the vendored uamqp library, which ignores CPPFLAGS |
| 11 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 12 |
include /usr/share/dpkg/buildflags.mk |
| 13 |
CFLAGS+=$(CPPFLAGS) |
| 14 |
CXXFLAGS+=$(CPPFLAGS) |
| 15 |
# For the CMake build |
| 16 |
ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS))) |
| 17 |
export VERBOSE=1 |
| 18 |
endif |
| 19 |
|
| 20 |
%: |
| 21 |
dh $@ --buildsystem=pybuild |