File: rules

package info (click to toggle)
msgpack-c 1.4.2-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,448 kB
  • ctags: 23,997
  • sloc: cpp: 74,169; ansic: 6,333; sh: 4,181; makefile: 619
file content (27 lines) | stat: -rwxr-xr-x 615 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,-pie
include /usr/share/dpkg/buildflags.mk

CXXFLAGS += -std=c++11
export CFLAGS CXXFLAGS LDFLAGS

%:
	dh $@ --with=autotools_dev --parallel --buildsystem=autoconf

override_dh_auto_build-indep:
	make -C src doxygen

override_dh_install-indep:
	dh_install -i
	dh_doxygen

override_dh_auto_test-indep:

override_dh_auto_test:
	mkdir -p build-gtest
	cd build-gtest && cmake -Wno-dev /usr/src/gtest && make
	dh_auto_test --parallel --buildsystem=autoconf -- LDFLAGS="$(LDFLAGS) -L$(CURDIR)/build-gtest"

override_dh_install:
	dh_install --list-missing