Try to detect wrong Makefile use.

This commit is contained in:
Johns 2013-02-11 14:41:19 +01:00
parent d31ff55b12
commit 8faff0fd1e
1 changed files with 7 additions and 0 deletions

View File

@ -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)