File: rules

package info (click to toggle)
libzorpll 7.0.4.0-2
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 1,424 kB
  • sloc: cpp: 16,387; ansic: 2,122; makefile: 148; sh: 71
file content (35 lines) | stat: -rwxr-xr-x 839 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# 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