diff options
author | Timotej S <6674623+underhood@users.noreply.github.com> | 2022-10-17 17:12:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 17:12:56 +0200 |
commit | 2de4e77cc9388fcbbe6e0bda40edefb655d86e96 (patch) | |
tree | 6212a9541a25c8095857e0cbfffed77f3a081cae /Makefile.am | |
parent | bfd9b3445019c238bcd6edcd6c99d299376f4670 (diff) |
Inject costallocz to mqtt_websockets library and its children (#13813)
* use mallocz, freez & family also from within the mqtt libs
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 44 |
1 files changed, 28 insertions, 16 deletions
diff --git a/Makefile.am b/Makefile.am index d05dff5424..0d8b310bfd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -678,26 +678,12 @@ ACLK_FILES = \ aclk/aclk_rx_msgs.h \ aclk/https_client.c \ aclk/https_client.h \ - mqtt_websockets/src/mqtt_wss_client.c \ - mqtt_websockets/src/include/mqtt_wss_client.h \ - mqtt_websockets/src/mqtt_wss_log.c \ - mqtt_websockets/src/include/mqtt_wss_log.h \ - mqtt_websockets/src/ws_client.c \ - mqtt_websockets/src/include/ws_client.h \ - mqtt_websockets/src/mqtt_ng.c \ - mqtt_websockets/src/include/mqtt_ng.h \ - mqtt_websockets/src/common_public.c \ - mqtt_websockets/src/include/common_public.h \ - mqtt_websockets/src/include/common_internal.h \ - mqtt_websockets/c-rbuf/src/ringbuffer.c \ - mqtt_websockets/c-rbuf/include/ringbuffer.h \ - mqtt_websockets/c-rbuf/src/ringbuffer_internal.h \ - mqtt_websockets/MQTT-C/src/mqtt.c \ - mqtt_websockets/MQTT-C/include/mqtt.h \ aclk/aclk_alarm_api.c \ aclk/aclk_alarm_api.h \ aclk/aclk_contexts_api.c \ aclk/aclk_contexts_api.h \ + aclk/helpers/mqtt_wss_pal.h \ + aclk/helpers/ringbuffer_pal.h \ aclk/schema-wrappers/connection.cc \ aclk/schema-wrappers/connection.h \ aclk/schema-wrappers/node_connection.cc \ @@ -723,6 +709,28 @@ ACLK_FILES = \ aclk/schema-wrappers/context.h \ $(NULL) +noinst_LIBRARIES += libmqttwebsockets.a + +libmqttwebsockets_a_SOURCES = \ + mqtt_websockets/src/mqtt_wss_client.c \ + mqtt_websockets/src/include/mqtt_wss_client.h \ + mqtt_websockets/src/mqtt_wss_log.c \ + mqtt_websockets/src/include/mqtt_wss_log.h \ + mqtt_websockets/src/ws_client.c \ + mqtt_websockets/src/include/ws_client.h \ + mqtt_websockets/src/mqtt_ng.c \ + mqtt_websockets/src/include/mqtt_ng.h \ + mqtt_websockets/src/common_public.c \ + mqtt_websockets/src/include/common_public.h \ + mqtt_websockets/src/include/common_internal.h \ + mqtt_websockets/c-rbuf/src/ringbuffer.c \ + mqtt_websockets/c-rbuf/include/ringbuffer.h \ + mqtt_websockets/c-rbuf/src/ringbuffer_internal.h \ + mqtt_websockets/MQTT-C/src/mqtt.c \ + mqtt_websockets/MQTT-C/include/mqtt.h + +libmqttwebsockets_a_CFLAGS = $(CFLAGS) -DMQTT_WSS_CUSTOM_ALLOC -DRBUF_CUSTOM_MALLOC -I$(srcdir)/aclk/helpers + mqtt_websockets/src/mqtt_wss_client.$(OBJEXT) : CFLAGS += -Wno-unused-result ACLK_PROTO_DEFINITIONS = \ @@ -959,6 +967,10 @@ NETDATA_COMMON_LIBS = \ $(OPTIONAL_DL_LIBS) \ $(NULL) +if ENABLE_ACLK + NETDATA_COMMON_LIBS += libmqttwebsockets.a +endif + if LINK_STATIC_JSONC NETDATA_COMMON_LIBS += $(abs_top_srcdir)/externaldeps/jsonc/libjson-c.a endif |