File: rules

package info (click to toggle)
paho.mqtt.c 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,988 kB
  • sloc: ansic: 38,946; python: 3,104; makefile: 283; xml: 278; sh: 76
file content (21 lines) | stat: -rwxr-xr-x 618 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
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@  --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure -- -DPAHO_WITH_SSL=TRUE -DPAHO_ENABLE_TESTING=FALSE \
	-DPAHO_BUILD_STATIC=TRUE -DPAHO_BUILD_SAMPLES=TRUE

override_dh_auto_install:
	dh_auto_install
	# Remove suffix from static libraries
	for file in debian/tmp/usr/lib/*/libpaho-mqtt*.a; do \
		mv -n -v "$${file}" "$${file%%-static.a}.a"; \
	done