From 086e5b2a401f8f9c19154800d2dbc7d9937642cb Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 17 Nov 2017 18:11:22 +0100 Subject: [PATCH] amqp: added new node-type to Makefile --- lib/nodes/Makefile.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/nodes/Makefile.inc b/lib/nodes/Makefile.inc index 782a636af..7aaa0f628 100644 --- a/lib/nodes/Makefile.inc +++ b/lib/nodes/Makefile.inc @@ -37,6 +37,7 @@ WITH_NANOMSG ?= 1 WITH_SHMEM ?= 1 WITH_STATS ?= 1 WITH_INFLUXDB ?= 1 +WITH_AMQP ?= 1 # Enabled loopback node-type ifeq ($(WITH_LOOPBACK),1) @@ -165,3 +166,12 @@ ifeq ($(shell $(PKGCONFIG) libwebsockets jansson; echo $$?),0) LIB_CFLAGS += -DWITH_WEBSOCKET endif endif + +# Enable AMQP support +ifeq ($(WITH_AMQP),1) +ifeq ($(shell $(PKGCONFIG) librabbitmq; echo $$?),0) + LIB_SRCS += lib/nodes/amqp.c + LIB_PKGS += librabbitmq + LIB_CFLAGS += -DWITH_AMQP +endif +endif