File: rules

package info (click to toggle)
gtkcookie 0.4-9
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 496 kB
  • sloc: ansic: 4,312; makefile: 102
file content (27 lines) | stat: -rwxr-xr-x 828 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
#! /usr/bin/make -f

#   Copyright 1994-98   joey@infodrom.north.de (Martin Schulze)
#		2001	Filip Van Raemdonck <mechanix@debian.org>
#             2010-18   Peter Pentchev <roam@ringlet.net>

# Aim for the top, adapt if anything should break on the buildds.
DEB_BUILD_MAINT_OPTIONS=	hardening=+all future=+lfs
export DEB_BUILD_MAINT_OPTIONS

DEB_CFLAGS_MAINT_APPEND=	-Wall -W -pipe -std=c99 -pedantic -Wbad-function-cast \
		-Wcast-align -Wchar-subscripts -Winline \
		-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
		-Wredundant-decls -Wshadow -Wwrite-strings
ifneq (,$(filter werror,$(DEB_BUILD_OPTIONS)))
	DEB_CFLAGS_MAINT_APPEND+=	-Werror
endif
export DEB_CFLAGS_MAINT_APPEND

DEB_LDFLAGS_MAINT_APPEND=	-Wl,--as-needed
export DEB_LDFLAGS_MAINT_APPEND

INSTPREFIX=debian/gtkcookie/usr
export INSTPREFIX

%:
	dh $@