File: rules

package info (click to toggle)
libgzstream 1.5%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 168 kB
  • sloc: cpp: 253; makefile: 146
file content (33 lines) | stat: -rwxr-xr-x 878 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

# DH_VERBOSE := 1

# export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# -->	g++    -o test_gzip test_gzip.o -fPIE -pie -Wl,-z,relro -Wl,-z,now -L. -lgzstream -lz
#	/usr/bin/ld: test_gzip.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC

TMPLIBS=debian/tmplibs

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@ --no-parallel

override_dh_clean:
	dh_clean
	rm -rf $(TMPLIBS)

override_dh_install:
	mkdir -p $(TMPLIBS)
	mv libgzstream.a   $(TMPLIBS)
	mv libgzstream.so* $(TMPLIBS)
	d-shlibmove --commit \
		    --multiarch \
		    --devunversioned \
		    --exclude-la \
		    --movedev *.h usr/include \
		    debian/tmplibs/*.so

get-orig-source:
	wget -O ../gzstream.tgz http://www.cs.unc.edu/Research/compgeom/gzstream/gzstream.tgz
	mk-origtargz --repack --compress xz gzstream.tgz