File: rules

package info (click to toggle)
xmount 1.2.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 916 kB
  • sloc: ansic: 10,651; sh: 170; makefile: 8
file content (13 lines) | stat: -rwxr-xr-x 539 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CMAKE_C_FLAGS:=$(shell dpkg-buildflags --get CFLAGS) -g -fno-strict-aliasing -std=c99 -Wall $(CPPFLAGS)
CMAKE_LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_C_FLAGS="$(CMAKE_C_FLAGS)" -DCMAKE_BUILD_TYPE=Release -DCMAKE_SHARED_LINKER_FLAGS="$(CMAKE_LDFLAGS)" -DCMAKE_EXE_LINKER_FLAGS="$(CMAKE_LDFLAGS)" -DCMAKE_MODULE_LINKER_FLAGS="$(CMAKE_LDFLAGS)"