#!/usr/bin/make -f

PACKAGE = cfourcc

include debian/debian-vars.mk

include /usr/share/dpkg/buildflags.mk
CFLAGS	+= -Wall -pedantic -std=c99
LDFLAGS += -Wl,--as-needed
export CFLAGS LDFLAGS

man:
	# target: man -- Convert *.pod to manual page
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman

override_dh_auto_build:
	$(MAKE) CFLAGS="$(CFLAGS)"

override_dh_auto_install: man
	# Upstream Makefile is no good. Use debian/install

%:
	dh $@

.PHONY: man

# End of file
