| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
#DH_VERBOSE = 1 |
| 5 |
|
| 6 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 7 |
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 8 |
export DEB_CXXFLAGS_MAINT_APPEND = -Wall -pedantic |
| 9 |
|
| 10 |
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture --query DEB_HOST_MULTIARCH) |
| 11 |
|
| 12 |
BUILD_OPTIONS = \ |
| 13 |
-DBUILD_SHARED_LIBS=ON \ |
| 14 |
-DCMAKE_LIBRARY_ARCHITECTURE="$(DEB_HOST_MULTIARCH)" \ |
| 15 |
-DWITH_EXAMPLES=OFF \ |
| 16 |
-DWITH_MATIO=ON \ |
| 17 |
-DWITH_TESTS=OFF |
| 18 |
|
| 19 |
%: |
| 20 |
dh $@ |
| 21 |
|
| 22 |
override_dh_auto_configure-arch: |
| 23 |
dh_auto_configure -- $(BUILD_OPTIONS) -DWITH_API_DOC=OFF |
| 24 |
|
| 25 |
override_dh_auto_configure-indep: |
| 26 |
dh_auto_configure -- $(BUILD_OPTIONS) -DWITH_API_DOC=ON |
| 27 |
|
| 28 |
override_dh_auto_build-arch: |
| 29 |
dh_auto_build --arch |
| 30 |
pandoc doc/Man-Pages/asl-hardware.1.org -s -t man -o asl-hardware.1 |
| 31 |
|
| 32 |
override_dh_installdocs-indep: |
| 33 |
dh_installdocs --indep |
| 34 |
dh_doxygen --indep |
| 35 |
|
| 36 |
override_dh_installchangelogs: |
| 37 |
dh_installchangelogs NEWS.org |
| 38 |
|
| 39 |
override_dh_compress: |
| 40 |
dh_compress --exclude=examples |