| #!/usr/bin/make -f |
| # -*- makefile -*- |
| |
| # Uncomment this to turn on verbose mode. |
| # export DH_VERBOSE=1 |
| |
| LIBION_DESTDIR := $(CURDIR)/debian/tmp/libion-android |
| |
| ifeq ($(DEB_TARGET_ARCH),arm64) |
| CROSS_COMPILE=aarch64-linux-gnu- |
| else ifeq ($(DEB_TARGET_ARCH),armhf) |
| CROSS_COMPILE=arm-linux-gnueabihf- |
| endif |
| |
| CC=$(CROSS_COMPILE)gcc |
| |
| %: |
| dh $@ |
| |
| override_dh_auto_build: |
| +make -C libion CC=$(CC) |
| |
| override_dh_auto_install: |
| +make -C libion install \ |
| SRCDIR=$(CURDIR) \ |
| DESTDIR=$(LIBION_DESTDIR) \ |
| INCDIR=/usr/include \ |
| LIBDIR=/usr/lib |