From 8faff0fd1e559ce067bfc4e95df81d943310f8aa Mon Sep 17 00:00:00 2001 From: Johns Date: Mon, 11 Feb 2013 14:41:19 +0100 Subject: [PATCH] Try to detect wrong Makefile use. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 57c82b3..93a1aba 100644 --- a/Makefile +++ b/Makefile @@ -83,6 +83,13 @@ TMPDIR ?= /tmp export CFLAGS = $(call PKGCFG,cflags) export CXXFLAGS = $(call PKGCFG,cxxflags) +ifeq ($(CFLAGS),) +$(error CFLAGS not set) +endif +ifeq ($(CXXFLAGS),) +$(error CXXFLAGS not set) +endif + ### The version number of VDR's plugin API: APIVERSION = $(call PKGCFG,apiversion)