#!/usr/bin/make -f

DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)

#FLAGS  = -O3 -ffast-math -fPIC -DPIC -fvisibility=hidden -fdata-sections -ffunction-sections -DNDEBUG
#ifeq ($(DEB_HOST_ARCH),armhf)
#FLAGS += -march=armv7ve -mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4
#else ifeq ($(DEB_HOST_ARCH),arm64)
#FLAGS += -march=armv8-a -mcpu=cortex-a53
#else
#FLAGS += -mtune=generic -msse -msse2 -mfpmath=sse
#endif

#export CFLAGS=$(FLAGS)
#export CXXFLAGS=$(FLAGS) -fvisibility-inlines-hidden -std=c++11
#export CPPFLAGS=
#export LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--no-undefined -Wl,--gc-sections -Wl,--strip-all
#export PATH:=/opt/kxstudio/bin:$(PATH)
#export PKG_CONFIG_PATH=/opt/kxstudio/lib/pkgconfig

export QT_SELECT=qt5

override_dh_auto_clean:
	dh_auto_clean
	$(MAKE) distclean || true

%:
	dh $@ --Sqmake
