From 04b999b2e97bd9833a0424d85bdf51f996915f77 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 23 Dec 2016 17:21:54 +0100 Subject: [PATCH] show error message in make if dependencies are missing --- lib/Makefile.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/Makefile.inc b/lib/Makefile.inc index 21b221772..03a8e32e1 100644 --- a/lib/Makefile.inc +++ b/lib/Makefile.inc @@ -23,6 +23,8 @@ ifeq ($(shell pkg-config libnl-route-3.0; echo $$?),0) LIB_SRCS += $(addprefix lib/kernel/, nl.c tc.c if.c) LIB_SRCS += $(addprefix lib/, msg.c) LIB_PKGS += libnl-route-3.0 +else + $(error Missing dependecy: libnl-3) endif endif @@ -33,6 +35,8 @@ ifeq ($(shell pkg-config libxil; echo $$?),0) LIB_SRCS += $(addprefix lib/kernel/, pci.c vfio.c) LIB_SRCS += $(wildcard lib/fpga/*.c) PKGS += libxil +else + $(error Missing dependecy: libxil) endif endif @@ -41,6 +45,8 @@ ifndef WITHOUT_NGSI ifeq ($(shell pkg-config libcurl jansson; echo $$?),0) LIB_SRCS += lib/nodes/ngsi.c LIB_PKGS += libcurl jansson +else + $(error Missing dependecies: libjansson) endif endif @@ -49,6 +55,8 @@ ifndef WITHOUT_WEBSOCKETS ifeq ($(shell pkg-config libwebsockets jansson; echo $$?),0) LIB_SRCS += lib/nodes/websocket.c LIB_PKGS += libwebsockets jansson +else + $(error Missing dependecies: libwebsockets or libjansson) endif endif @@ -65,6 +73,8 @@ ifneq (,$(wildcard thirdparty/opal/include/AsyncApi.h)) CFLAGS += -m32 LDFLAGS += -m32 BUILDDIR := $(BUILDDIR)32 +else + $(error Missing dependecy: libOpalUtils libOpalAsyncApiCore) endif endif