File: rules

package info (click to toggle)
usbguard 0.6.2%2Bds1-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,844 kB
  • ctags: 1,640
  • sloc: cpp: 12,003; makefile: 540; sh: 234; xml: 54
file content (31 lines) | stat: -rwxr-xr-x 771 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export QT_SELECT = qt5

# Qt insists on using -fPIC
export DEB_CXXFLAGS_MAINT_APPEND = -fPIC

CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) -Wl,-rpath=/usr/lib/$(DEB_HOST_MULTIARCH)/usbguard

%:
	dh ${@} --parallel --with=autoreconf,systemd

override_dh_auto_configure:
	dh_auto_configure -- \
	  --disable-static \
	  --without-bundled-catch \
	  --without-bundled-pegtl \
	  --enable-systemd \
	  --sysconfdir=/etc \
	  --with-gui-qt=qt5

override_dh_install:
	dh_install --list-missing

override_dh_makeshlibs:
	dh_makeshlibs -n