#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export DEB_CFLAGS_MAINT_APPEND = -DSYSTEM_DIR=\"/usr/lib/$(DEB_HOST_MULTIARCH)/odbc\"

# Temporary workaround, see:
# - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097202
# - https://github.com/openlink/iODBC/issues/113
# - https://github.com/openlink/iODBC/issues/118
export DEB_CFLAGS_MAINT_APPEND += -std=gnu17

%:
	dh $@ --parallel --with autoreconf,pkgkde_symbolshelper

override_dh_autoreconf:
	dh_autoreconf --as-needed

override_dh_auto_configure:
	dh_auto_configure -- --includedir='$${prefix}/include/iodbc' --disable-gui
