| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
# export DH_VERBOSE=1 |
| 5 |
|
| 6 |
# see FEATURE AREAS in dpkg-buildflags(1) |
| 7 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 8 |
|
| 9 |
# see ENVIRONMENT in dpkg-buildflags(1) |
| 10 |
# package maintainers to append CFLAGS |
| 11 |
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 12 |
# package maintainers to append LDFLAGS |
| 13 |
export DEB_LDFLAGS_MAINT_APPEND = |
| 14 |
|
| 15 |
include /usr/share/dpkg/architecture.mk |
| 16 |
|
| 17 |
ifeq ($(DEB_HOST_ARCH_CPU),arm) |
| 18 |
|
| 19 |
ifeq ($(DEB_HOST_ARCH),armel) |
| 20 |
EXTRA_CONFIG_FLAGS = --enable-arm4-asm |
| 21 |
EXTRA_CONFIG_FLAGS += --enable-fixed-point |
| 22 |
endif |
| 23 |
|
| 24 |
endif |
| 25 |
|
| 26 |
ifneq (,$(filter $(DEB_HOST_ARCH), mipsel mips)) |
| 27 |
# Only use fixed point for mipsel, mips, and armel (see above) |
| 28 |
# Otherwise, use floating point for armhf, amd64, i386, and all others |
| 29 |
EXTRA_CONFIG_FLAGS = --enable-fixed-point |
| 30 |
endif |
| 31 |
|
| 32 |
%: |
| 33 |
dh $@ |
| 34 |
|
| 35 |
override_dh_auto_configure: |
| 36 |
dh_auto_configure -- \ |
| 37 |
$(EXTRA_CONFIG_FLAGS) \ |
| 38 |
--enable-binaries \ |
| 39 |
$(NULL) |
| 40 |
|
| 41 |
override_dh_strip: |
| 42 |
dh_strip --dbgsym-migration='libspeex-dbg (<< 1.2~rc1.2-2~)' |