From aecb2b060f36a7bc758a2c7ce1c67e93a18cdb1e Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 4 Dec 2015 17:35:38 +0100 Subject: [PATCH] added compiler flags for libwebsockets --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 0144ce154..7ef771e2a 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,13 @@ ifeq ($(shell pkg-config libcurl jansson uuid; echo $$?),0) LIB_LDLIBS += $(shell pkg-config --libs libcurl jansson uuid) endif +# Enable WebSocket support +ifeq ($(shell pkg-config libwebsockets; echo $$?),0) + LIB_OBJS += websocket.o + LIB_CFLAGS += $(shell pkg-config --cflags libwebsockets) + LIB_LDLIBS += $(shell pkg-config --libs libwebsockets) +endif + # Enable OPAL-RT Asynchronous Process support (will result in 32bit binary!!!) ifneq (,$(wildcard $(OPALDIR)/include_target/AsyncApi.h)) LIB_OBJS += opal.o