File: rules

package info (click to toggle)
matanza 0.13%2Bds2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,576 kB
  • sloc: ansic: 13,824; sh: 330; makefile: 52; xml: 18
file content (24 lines) | stat: -rwxr-xr-x 626 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
#!/usr/bin/make -f

-include /usr/share/dpkg/buildtools.mk

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

CFLAGS += -Wall
export CC CFLAGS CPPFLAGS LDFLAGS

%:
	dh $@

# Note: this could be simplified even further using --with autotools_dev,
# but it would require another repacking to bring back config.{guess,sub} :)
#
override_dh_auto_configure:
	cp -f /usr/share/misc/config.sub .
	cp -f /usr/share/misc/config.guess .
	dh_auto_configure -- --bindir=/usr/games

override_dh_auto_build:
	dh_auto_build -- CFLAGS="$(CFLAGS)"