File: rules

package info (click to toggle)
fastd 18-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,816 kB
  • ctags: 5,120
  • sloc: asm: 15,114; ansic: 9,478; sh: 614; yacc: 558; makefile: 168; python: 33; perl: 11
file content (36 lines) | stat: -rwxr-xr-x 778 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE=1

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@ 

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_BUILD_TYPE=RELWITHDEBINFO \
		-DENABLE_OPENSSL=ON \
		-DENABLE_SYSTEMD=ON \
		-DENABLE_LIBSODIUM=ON \
		-DENABLE_LTO=ON \
		-DCMAKE_AR=/usr/bin/gcc-ar \
		-DCMAKE_NM=/usr/bin/gcc-nm \
		-DCMAKE_RANLIB=/usr/bin/gcc-ranlib

override_dh_install:
	dh_install
	install -dm755 $(CURDIR)/debian/fastd/etc/fastd
	install -m644 doc/examples/fastd@.service $(CURDIR)/debian/fastd/lib/systemd/system/fastd@.service

override_dh_installinit:
	dh_installinit --no-start -- defaults 16 80

override_dh_clean:
	dh_clean
	rm -rf obj*

override_dh_strip:
	dh_strip --dbgsym-migration=fastd-dbg