[go: up one dir, main page]

File: rules

package info (click to toggle)
alex4 1.1-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,976 kB
  • sloc: ansic: 6,312; makefile: 42
file content (33 lines) | stat: -rwxr-xr-x 814 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
#!/usr/bin/make -f

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

CFLAGS:=	$(shell dpkg-buildflags --get CFLAGS)
CPPFLAGS:=	$(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS:=	$(shell dpkg-buildflags --get LDFLAGS)

CFLAGS+=	-Wall -W -Wbad-function-cast \
		-Wcast-align -Wcast-qual -Wchar-subscripts -Winline \
		-Wnested-externs -Wpointer-arith \
		-Wredundant-decls -Wwrite-strings
ifneq (,$(filter werror,$(DEB_BUILD_OPTIONS)))
	CFLAGS+=	-Werror
endif

include /usr/share/hardening-includes/hardening.make
ifeq (,$(filter nohardening,$(DEB_BUILD_OPTIONS)))
CFLAGS+=	$(HARDENING_CFLAGS)
LDFLAGS+=	$(HARDENING_LDFLAGS)
endif

export CPPFLAGS CFLAGS LDFLAGS

override_dh_auto_build:
	dh_auto_build -D src -- DATADIR=/usr/share/games/alex4

override_dh_auto_clean:
	dh_auto_clean -D src

%:
	dh $@