Update to packaging to reflect 64 bit support
[sdk] / debian / rules
1 #!/usr/bin/make -f
2
3 DEB_HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
4 DEB_HOST_MULTIARCH=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
5 export DEBIAN_PACKAGE=1
6 export DPKG_EXPORT_BUILDFLAGS=1
7 include /usr/share/dpkg/buildflags.mk
8
9 ifndef prefix
10 prefix=/usr
11 endif
12
13 ifdef DEB_HOST_MULTIARCH
14 export LIBDIR=$(prefix)/lib/$(DEB_HOST_MULTIARCH)
15 export CPPFLAGS
16 CPPFLAGS += -DDEB_HOST_MULTIARCH=\"$(LIBDIR)\"
17 else
18 export LIBDIR=$(prefix)/lib
19 endif
20
21 %:
22         dh $@
23
24 override_dh_strip: