File: rules

package info (click to toggle)
proxychains 3.1-7
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,668 kB
  • ctags: 254
  • sloc: sh: 10,464; ansic: 1,012; makefile: 35
file content (18 lines) | stat: -rwxr-xr-x 706 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
	dh $@ --with autoreconf

override_dh_auto_configure-arch:
	./configure \
			--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \
			--libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
			--mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
			--sysconfdir=/etc

override_dh_auto_build-arch:
	CFLAGS="$(CFLAGS) $(shell getconf LFS_CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" $(MAKE) PREFIX=/usr