File: rules

package info (click to toggle)
unace 1.2b-19
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 416 kB
  • sloc: ansic: 1,762; sh: 113; makefile: 44
file content (30 lines) | stat: -rwxr-xr-x 707 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
25
26
27
28
29
30
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all future=+lfs
export DEB_CPPFLAGS_MAINT_APPEND = -DUNIX -DCASEINSENSE
export DEB_CFLAGS_MAINT_APPEND = -Wall

include /usr/share/dpkg/default.mk

ifeq ($(DEB_HOST_ARCH_ENDIAN),little)
DEB_CPPFLAGS_MAINT_APPEND += -DLO_HI_BYTE_ORDER
else ifeq ($(DEB_HOST_ARCH_ENDIAN),big)
DEB_CPPFLAGS_MAINT_APPEND += -DHI_LO_BYTE_ORDER
else
$(error "unknown endian")
endif

%:
	dh $@ --buildsystem=makefile

override_dh_auto_clean:
	dh_auto_clean -- -f unix/makefile

override_dh_auto_build:
	dh_auto_build -- -f unix/makefile

override_dh_installchangelogs:
	dh_installchangelogs changes.log