File: rules

package info (click to toggle)
ode 2%3A0.14-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 11,588 kB
  • ctags: 16,003
  • sloc: cpp: 122,662; ansic: 14,257; cs: 1,879; makefile: 786; python: 618; sh: 165
file content (36 lines) | stat: -rwxr-xr-x 923 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
#!/usr/bin/make -f

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)

# enabling single precision only for armel, mips and mipsel
ifeq ($(DEB_HOST_ARCH),armel)
	CONFIG_OPTS = --enable-single-precision
else ifeq ($(DEB_HOST_ARCH),mips)
	CONFIG_OPTS = --enable-single-precision
else ifeq ($(DEB_HOST_ARCH),mipsel)
	CONFIG_OPTS = --enable-single-precision
else
	CONFIG_OPTS = --enable-double-precision
endif

CONFIG_OPTS += 	--mandir=/usr/share/man \
                --with-libccd=system \
                --enable-libccd \
                --enable-shared \
                --enable-static

%:
	dh $@ --parallel --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIG_OPTS)

override_dh_auto_build:
	dh_auto_build
	docbook-to-man debian/ode-config.man.sgml > debian/ode-config.1