File: rules

package info (click to toggle)
faketime 0.9.10%2B2024-06-05%2Bgba9ed5b2-0.6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,816 kB
  • sloc: ansic: 5,291; sh: 613; makefile: 178; pascal: 21
file content (33 lines) | stat: -rwxr-xr-x 908 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

DEB_CFLAGS_MAINT_APPEND=-DMULTI_ARCH

# why -DFORCE_PTHREAD_NONVER: see README and
# timetest.c and https://github.com/wolfcw/libfaketime/issues/278
# (FORCE_MONOTONIC_FIX should now be autodetected)
ifneq (,$(filter $(DEB_HOST_ARCH),ppc64el riscv64 x32 loong64))
DEB_CFLAGS_MAINT_APPEND += -DFORCE_PTHREAD_NONVER
endif

DEB_CFLAGS_MAINT_APPEND += -DFAKE_RANDOM -DFAKE_PID

export DEB_CFLAGS_MAINT_APPEND

export DEB_BUILD_MAINT_OPTIONS = hardening=+all abi=-time64

# make sure dh_makeshlibs does not modify post{inst,rm} scripts:
# (avoids lintian's postinst-has-useless-call-to-ldconfig)
override_dh_makeshlibs:
	dh_makeshlibs --noscripts

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test
	$(MAKE) -C test randomtest test_library_constructors test_variable_data
endif

%:
	PREFIX=/usr dh $@