File: rules

package info (click to toggle)
libretro-desmume 0.9.11%2Bgit20160819%2Bdfsg1-1
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 7,392 kB
  • ctags: 23,680
  • sloc: cpp: 81,508; ansic: 41,021; makefile: 182; python: 177; asm: 70; sh: 1
file content (22 lines) | stat: -rwxr-xr-x 461 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

# Fix hardening-no-bindnow
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

export DEB_CXXFLAGS_MAINT_STRIP=-O2
export DEB_CFLAGS_MAINT_STRIP=-O2

ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)

ifeq ($(ARCH),armhf)
	PLATFORM=platform="armv hardfloat"
endif

%:
	dh $@ --sourcedirectory=desmume/

override_dh_auto_build:
	dh_auto_build -- -f Makefile.libretro $(PLATFORM)

override_dh_auto_clean:
	dh_auto_clean -- -f Makefile.libretro