File: rules

package info (click to toggle)
asl 0.1.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 3,496 kB
  • sloc: cpp: 36,180; makefile: 27
file content (41 lines) | stat: -rwxr-xr-x 1,025 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_CXXFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture --query DEB_HOST_MULTIARCH)

BUILD_OPTIONS = \
	-DBUILD_SHARED_LIBS=ON \
	-DCMAKE_LIBRARY_ARCHITECTURE="$(DEB_HOST_MULTIARCH)" \
	-DWITH_EXAMPLES=OFF \
	-DWITH_MATIO=ON \
	-DWITH_TESTS=OFF

%:
	dh $@

override_dh_auto_configure-arch:
	dh_auto_configure -- $(BUILD_OPTIONS) -DWITH_API_DOC=OFF

override_dh_auto_configure-indep:
	dh_auto_configure -- $(BUILD_OPTIONS) -DWITH_API_DOC=ON

override_dh_auto_build-arch:
	dh_auto_build --arch
	pandoc doc/Man-Pages/asl-hardware.1.org -s -t man -o asl-hardware.1

override_dh_installdocs-indep:
	dh_installdocs --indep
	dh_doxygen --indep

override_dh_installchangelogs:
	dh_installchangelogs NEWS.org

override_dh_compress:
	dh_compress --exclude=examples