File: rules

package info (click to toggle)
orc 1:0.4.26-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,784 kB
  • ctags: 5,605
  • sloc: ansic: 77,058; sh: 4,233; xml: 4,080; makefile: 312
file content (24 lines) | stat: -rwxr-xr-x 760 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/autoreconf.mk

DEB_DH_AUTORECONF_ARGS += --as-needed

DEB_DH_STRIP_ARGS := --dbg-package=liborc-0.4-0-dbg
DEB_CONFIGURE_EXTRA_FLAGS := --enable-static --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
APIVER := 0.4
SHLIBVER := 1:0.4.25
liborc := $(shell sed -nr 's/^Package:[[:space:]]*(liborc-$(APIVER)-[0-9]+)[[:space:]]*$$/\1/p' debian/control)

DEB_DH_MAKESHLIBS_ARGS_$(liborc) = -V '$(liborc) (>= $(SHLIBVER))'

LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed
DEB_MAKE_CHECK_TARGET := check || true

makebuilddir::
	if test -r /proc/cpuinfo; then \
		cat /proc/cpuinfo; \
	fi