File: rules

package info (click to toggle)
xmountains 2.15-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,420 kB
  • sloc: ansic: 2,490; makefile: 16
file content (24 lines) | stat: -rwxr-xr-x 473 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH)

ifeq ($(filter $(ARCH),amd64 i386),$(ARCH))
  CFLAGS += -fcf-protection
endif

%:
	dh $@

override_dh_auto_configure:
	xmkmf -a

override_dh_auto_build:
	$(MAKE) CDEBUGFLAGS="$(CFLAGS)" LDOPTIONS="$(LDFLAGS)"

override_dh_install:
	dh_install
	rm -rf $(CURDIR)/debian/xmountains/usr/bin