File: rules

package info (click to toggle)
libsoxr 0.1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 728 kB
  • sloc: ansic: 6,850; sh: 241; cpp: 40; makefile: 18
file content (27 lines) | stat: -rwxr-xr-x 617 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/architecture.mk

CONFIGURE_FLAGS = -DLIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
		  -DDOC_INSTALL_DIR=/usr/share/doc/libsoxr-dev

ifeq ($(DEB_HOST_ARCH_ENDIAN),big)
CONFIGURE_FLAGS += -DHAVE_WORDS_BIGENDIAN_EXITCODE=0
else
CONFIGURE_FLAGS += -DHAVE_WORDS_BIGENDIAN_EXITCODE=1
endif

ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
CONFIGURE_FLAGS += -DBUILD_TESTS=0 -DBUILD_EXAMPLES=1
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_FLAGS)

override_dh_compress:
	dh_compress -X.c -X.C