#!/usr/bin/make -f

include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/gnome.mk
include /usr/share/gnome-pkg-tools/1/rules/clean-la.mk

LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed

DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
DEB_HOST_ARCH  ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)

CFLAGS += -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,s)

ifeq (i386,$(DEB_BUILD_ARCH))
CFLAGS  += -march=i386 -mtune=pentiumpro -mmmx
endif

ifeq (i486,$(DEB_BUILD_ARCH))
CFLAGS  += -march=i386 -mtune=pentiumpro -mmmx
endif

ifeq (amd64,$(DEB_BUILD_ARCH))
CFLAGS  += -msse
endif

DEB_DH_MAKESHLIBS_ARGS_libnotify1 := -V "libnotify1 (>= 0.5.0), libnotify1-gtk2.10"

