File: rules

package info (click to toggle)
libmpack 1.0.5-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 296 kB
  • sloc: ansic: 3,634; makefile: 147
file content (34 lines) | stat: -rwxr-xr-x 681 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie

include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/buildflags.mk

CFLAGS += $(CPPFLAGS)
export CFLAGS LDFLAGS

ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
	CONFIG = debug
else
	CONFIG = release
endif

BUILD_VERBOSITY = VERBOSE=1
ifneq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
	BUILD_VERBOSITY = VERBOSE=0
endif

ARGS = config=$(CONFIG) $(BUILD_VERBOSITY) PREFIX=/usr LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)

%:
	dh $@

override_dh_auto_build-arch:
	$(MAKE) $(ARGS)

override_dh_auto_install-arch:
	$(MAKE) $(ARGS) DESTDIR=$(CURDIR)/debian/tmp install

override_dh_auto_test:
	$(MAKE) $(ARGS) test