File: rules

package info (click to toggle)
libtins 4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 2,848 kB
  • sloc: cpp: 33,557; ansic: 587; makefile: 16
file content (21 lines) | stat: -rwxr-xr-x 493 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
#!/usr/bin/make -f
export DH_VERBOSE = 1
export V=1  # verbose mode for make
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed,--no-undefined,--no-add-needed
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic

%:
	dh $@

override_dh_auto_build:
	mkdir -p build
	cd build && cmake ../ -DLIBTINS_ENABLE_CXX11=1
	cd build && make

override_dh_installchangelogs:
	dh_installchangelogs CHANGES.md

override_dh_auto_clean:
	rm build -rf
	dh_auto_clean