File: rules

package info (click to toggle)
rocksdb 9.10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 46,088 kB
  • sloc: cpp: 500,771; java: 42,992; ansic: 9,789; python: 8,373; perl: 5,822; sh: 4,921; makefile: 2,386; asm: 550; xml: 342
file content (54 lines) | stat: -rwxr-xr-x 1,240 bytes parent folder | download | duplicates (3)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/make -f
# -*- makefile -*-

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

include /usr/share/dpkg/architecture.mk

ifneq ($(filter $(DEB_HOST_ARCH),armel mips mipsel riscv64),)
	export PLATFORM_LDFLAGS=-latomic
endif

ifeq ($(DEB_HOST_ARCH),armel)
	export DEB_CFLAGS_MAINT_APPEND= -mfloat-abi=softfp
	export DEB_CXXFLAGS_MAINT_APPEND= -mfloat-abi=softfp
endif

ifeq ($(DEB_HOST_ARCH),mipsel)
	export DEB_LDFLAGS_MAINT_APPEND= -latomic
endif

# make build verbose
export AM_DEFAULT_VERBOSITY=1

override_dh_auto_configure:
	dh_auto_configure -O--buildsystem=cmake \
		 -- \
		 -DWITH_BZ2=ON \
		 -DWITH_LZ4=ON \
		 -DWITH_ZLIB=ON \
		 -DWITH_ZSTD=ON \
		 -DWITH_SNAPPY=ON \
		 -DROCKSDB_BUILD_SHARED=ON \
		 -DWITH_BENCHMARK_TOOLS=ON \
		 -DWITH_CORE_TOOLS=ON \
		 -DWITH_TOOLS=ON \
		 -DWITH_TESTS=ON \
		 -DPORTABLE=1 \
		 -DFAIL_ON_WARNINGS=OFF

override_dh_auto_test:
	echo Test is no-op as running for hours on a normal PC

override_dh_auto_install:
	dh_auto_install -O--buildsystem=cmake --destdir=$(CURDIR)/debian/tmp/

override_dh_missing:
	dh_missing --list-missing

%:
	dh $@ --buildsystem=cmake

.PHONY: override_dh_auto_configure override_dh_auto_test \
	override_dh_auto_install override_dh_missing