#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --enable-static

override_dh_strip:
	dh_strip --dbgsym-migration='libcangjie2-dbg (<< 1.3-3~)'

override_dh_missing:
	# remove .la files
	rm -rf debian/*/usr/lib/*/*.la
	dh_missing --fail-missing
