File: rules

package info (click to toggle)
hyperrogue 10.4j-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 53,536 kB
  • sloc: cpp: 88,934; ansic: 17,467; makefile: 25
file content (22 lines) | stat: -rwxr-xr-x 496 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
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

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

# Use less optimization on architectures that FTBFS otherwise
ifneq (,$(findstring $(DEB_HOST_ARCH),arm64))
export DEB_CXXFLAGS_MAINT_APPEND=-O0
endif

# See also bug report #839602
ifneq (,$(findstring $(DEB_HOST_ARCH),hppa))
export DEB_CXXFLAGS_MAINT_APPEND=-mlong-calls
endif


%:
	dh $@ --no-parallel

override_dh_auto_build:
	$(RM) src/glew.c
	dh_auto_build -Dsrc