File: rules

package info (click to toggle)
yabause 0.9.15-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,816 kB
  • sloc: ansic: 168,333; cpp: 9,273; asm: 5,790; java: 1,566; objc: 1,093; pascal: 609; xml: 161; makefile: 15
file content (25 lines) | stat: -rwxr-xr-x 756 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
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# CMake doesn't use CPPFLAGS, pass them to CFLAGS/CXXFLAGS to enable the
# missing (hardening) flags.
export DEB_CFLAGS_MAINT_APPEND   = $(shell dpkg-buildflags --get CPPFLAGS)
export DEB_CXXFLAGS_MAINT_APPEND = $(shell dpkg-buildflags --get CPPFLAGS)

export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs

export QT_SELECT=qt5

%:
	dh $@

ifeq ($(DEB_BUILD_ARCH), riscv64)
override_dh_auto_configure:
	dh_auto_configure -- -DYAB_PORTS=qt -DYAB_MULTIBUILD=1 -DYAB_OPTIMIZATION="" -DSH2_DYNAREC=OFF -DCMAKE_C_COMPILER=clang
override_dh_dwz:
else
override_dh_auto_configure:
	dh_auto_configure -- -DYAB_PORTS=qt -DYAB_MULTIBUILD=1 -DYAB_OPTIMIZATION="" -DSH2_DYNAREC=OFF
endif