File: rules

package info (click to toggle)
fclib 3.1.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 10,680 kB
  • sloc: ansic: 1,640; makefile: 71; sh: 36
file content (25 lines) | stat: -rwxr-xr-x 573 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
#!/usr/bin/make -f

export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow

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

LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)

%:
	dh $@

# Notes: remove rpath due to Debian policy
override_dh_auto_configure:
	dh_auto_configure -- \
	  -DCMAKE_SKIP_BUILD_RPATH=TRUE \
	  -DFORCE_SKIP_RPATH=1 \
	  -DCMAKE_SKIP_INSTALL_RPATH=TRUE \
	  -DCMAKE_SKIP_RPATH=TRUE \
	  -DFCLIB_WITH_MERIT_FUNCTIONS=ON \
	  -DFCLIB_HEADER_ONLY=OFF \
	  -DHARDCODE_NOT_HEADER_ONLY=ON \
	  -DINSTALL_CMAKE_DIR=$(LIBDIR)/cmake/FCLIB