File: rules

package info (click to toggle)
libevdevplus 0.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 112 kB
  • sloc: cpp: 420; makefile: 14
file content (23 lines) | stat: -rwxr-xr-x 465 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
#!/usr/bin/make -f
# -*- makefile -*-

PACKAGE=$(shell dh_listpackages)
TMP=$(CURDIR)/debian/$(PACKAGE)

# Hardening
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

CONFIGURE_FLAGS += -DCMAKE_POSITION_INDEPENDENT_CODE=ON

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- ${CONFIGURE_FLAGS}

override_dh_auto_install:
	dh_auto_install
	rm $(TMP)/usr/lib/*/*.so
	rm $(TMP)/usr/lib/*/*.so*