mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
show error message in make if dependencies are missing
This commit is contained in:
parent
86aa689097
commit
04b999b2e9
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue