File: rules

package info (click to toggle)
hatari 2.2.0%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 11,932 kB
  • sloc: ansic: 160,820; python: 5,589; objc: 1,913; asm: 1,523; sh: 1,348; makefile: 99; xml: 32
file content (43 lines) | stat: -rwxr-xr-x 1,095 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/make -f

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

LDFLAGS += -Wl,--as-needed
CFLAGS += $(CPPFLAGS)
CXXFLAGS += $(CPPFLAGS)

%:
	dh $@ --buildsystem=cmake --builddirectory=build --with=python3

override_dh_auto_configure:
	 dh_auto_configure -O--buildsystem=cmake \
	   -O--builddirectory=build \
	   -- \
	   -DCMAKE_COLOR_MAKEFILE:BOOL=0 \
	   -DCMAKE_C_FLAGS:STRING="$(CFLAGS)" \
	   -DCMAKE_CXX_FLAGS:STRING="$(CXXFLAGS)" \
	   -DCMAKE_LINK_FLAGS:STRING="$(LDFLAGS)"

override_dh_auto_build:
	dh_auto_build -O--buildsystem=cmake -O--builddirectory=build

override_dh_install:
	dh_install --sourcedir=build

	# Remove bundled EmuTOS image
	#-rm debian/hatari/usr/share/hatari/tos.img

	# Install binfmt support for atari binaries
	install -m644 -D debian/binfmt debian/hatari/usr/share/binfmts/hatari

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3

override_dh_auto_test:
	true

override_dh_auto_clean:
	dh_auto_clean -O--buildsystem=cmake -O--builddir=build
	find . -name *.pyc -exec rm -f {} \;