File: rules

package info (click to toggle)
rocksdb 7.8.3-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 39,432 kB
  • sloc: cpp: 442,066; java: 37,795; ansic: 8,924; python: 7,949; perl: 5,822; sh: 4,988; makefile: 2,343; asm: 550; xml: 148
file content (54 lines) | stat: -rwxr-xr-x 1,241 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
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=ON \
		 -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