File: rules

package info (click to toggle)
libzorpll 6.0.10.0-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,432 kB
  • ctags: 2,101
  • sloc: cpp: 15,560; ansic: 2,073; makefile: 113; sh: 76
file content (36 lines) | stat: -rwxr-xr-x 882 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
34
35
36
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DH_OPTIONS += -O-Bdebian/build-tree

CFLAGS		?= $(shell dpkg-buildflags --get CFLAGS)
LDFLAGS		?= $(shell dpkg-buildflags --get LDFLAGS)

ifneq (,$(filter debug,$(DEB_BUILD_OPTIONS)))
    EXTRA_CONFIGURE_OPTS += "--enable-debug --enable-trace"
endif

ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
    CFLAGS += -O0
else
    CFLAGS += -O2
endif

override_dh_auto_configure:
	dh_auto_configure -- \
		--prefix=/usr \
		--mandir=\$${prefix}/share/man \
		--infodir=\$${prefix}/share/info \
		--sysconfdir=/etc \
		--libexecdir=\$${libdir}/libzorpll \
		$(EXTRA_CONFIGURE_OPTS) \
		--localstatedir=/var \
		--disable-werror

# And for the rest, there is debhelper!
%:
	dh $@ --list-missing --automatic-dbgsym