Browse Source

Added ENABLE_WEBSOCKET to Makefile

Paul-Louis Ageneau 5 years ago
parent
commit
4df1f50c1f
1 changed files with 8 additions and 0 deletions
  1. 8 0
      Makefile

+ 8 - 0
Makefile

@@ -38,6 +38,14 @@ else
         LIBS+=glib-2.0 gobject-2.0 nice
         LIBS+=glib-2.0 gobject-2.0 nice
 endif
 endif
 
 
+ENABLE_WEBSOCKET ?= 0
+ifneq ($(ENABLE_WEBSOCKET), 0)
+        CPPFLAGS+=-DENABLE_WEBSOCKET=1
+else
+        CPPFLAGS+=-DENABLE_WEBSOCKET=0
+endif
+
+
 INCLUDES+=$(shell pkg-config --cflags $(LIBS))
 INCLUDES+=$(shell pkg-config --cflags $(LIBS))
 LDLIBS+=$(LOCALLIBS) $(shell pkg-config --libs $(LIBS))
 LDLIBS+=$(LOCALLIBS) $(shell pkg-config --libs $(LIBS))