#! /usr/bin/make -f

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

INSTPREFIX=debian/gtkcookie/usr

CFLAGS_WARN=	-Wall -W -pipe -ansi -pedantic -Wbad-function-cast \
		-Wcast-align -Wcast-qual -Wchar-subscripts -Winline \
		-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
		-Wredundant-decls -Wshadow -Wwrite-strings
ifneq (,$(filter werror,$(DEB_BUILD_OPTIONS)))
	CFLAGS_WARN+=	-Werror
endif
ifneq (,$(filter hardening,$(DEB_BUILD_OPTIONS)))
	DEB_BUILD_HARDENING=1
else
	DEB_BUILD_HARDENING=0
endif

export INSTPREFIX CFLAGS_WARN DEB_BUILD_HARDENING

%:
	dh $@
