File: rules

package info (click to toggle)
ntl 10.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 7,460 kB
  • sloc: cpp: 84,947; sh: 10,577; ansic: 2,462; makefile: 804
file content (40 lines) | stat: -rwxr-xr-x 899 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
#!/usr/bin/make -f

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

CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)

CXXFLAGS += -Wall

%:
	dh $@

override_dh_auto_configure:
	cd src && ./configure \
		SHARED=on NATIVE=off \
		CPPFLAGS='$(CPPFLAGS)' CXXFLAGS='$(CXXFLAGS)' LDFLAGS='$(LDFLAGS)' \
		DEF_PREFIX='/usr' \
		NTL_GMP_LIP=on SHARED=on \
		NTL_GF2X_LIB=on \
		TUNE=generic

override_dh_auto_build:
	dh_auto_build -D src

override_dh_auto_install:
	dh_auto_install -D src

override_dh_auto_clean:
	dh_auto_clean -D src
	rm -f src/makefile include/NTL/config.h

override_dh_install:
	dh_install
	mkdir -p debian/libntl-dev/usr/share/doc/libntl-dev/
	mv debian/tmp/usr/share/doc/NTL debian/libntl-dev/usr/share/doc/libntl-dev/

override_dh_compress:
	dh_compress -X/NTL/