File: rules

package info (click to toggle)
bwctl 1.4.1~rc2-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,812 kB
  • sloc: ansic: 24,306; sh: 11,518; makefile: 197; perl: 151
file content (33 lines) | stat: -rwxr-xr-x 841 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
#!/usr/bin/make -f

#export DH_VERBOSE=1

# This has to be exported to make some magic below work.
export DH_OPTIONS

# hardening with dpkg-buildflags (requires debian/compat=9):
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Add --as-needed to drop a few unnecessary dependencies.
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

override_dh_auto_configure:
	dh_auto_configure -- \
		--with-thrulay=no \
		--enable-iperf \
		--enable-nuttcp

override_dh_auto_install:
	dh_auto_install
	install -p -m644 -D $(CURDIR)/conf/bwctld.conf   $(CURDIR)/debian/tmp/etc/bwctl/bwctld.conf
	install -p -m644 -D $(CURDIR)/conf/bwctld.limits $(CURDIR)/debian/tmp/etc/bwctl/bwctld.limits

override_dh_auto_clean:
	dh_auto_clean
	rm -f bwlib/stamp-h.in
	rm -f I2util/I2util/stamp-h.in
	rm -f config.log
	rm -f libtool

%:
	dh $@ --with autotools-dev