1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fixed WebSocket support in Makefile

This commit is contained in:
Steffen Vogel 2016-07-18 15:01:14 +02:00
parent 5d725957b8
commit 83231872cf

View file

@ -17,7 +17,6 @@ LIB_SRCS = $(wildcard lib/hooks/*.c) \
PREFIX ?= /usr/local
# Default debug level
DEBUG ?= 1
V ?= 2
GIT_REV = $(shell git rev-parse --short HEAD)
@ -65,7 +64,7 @@ ifeq ($(shell pkg-config libpci; echo $$?),0)
LIB_SRCS += $(addprefix lib/kernel/, pci.c vfio.c)
LIB_SRCS += $(wildcard lib/fpga/*.c)
LDLIBS += -lxil
LDFLAGS += -Lthirdparty/xilinx -Wl,-rpath-link,'$$ORIGIN/thirdparty/xilinx'
LDFLAGS += -Lthirdparty/xilinx -Wl,-rpath,'$$ORIGIN/thirdparty/xilinx'
CFLAGS += -Ithirdparty/xilinx/include
PKGS += libpci
TARGETS += fpga
@ -73,13 +72,13 @@ endif
# Enable NGSI support
ifeq ($(shell pkg-config libcurl jansson uuid; echo $$?),0)
LIB_OBJS += ngsi.o
LIB_SRCS += lib/nodes/ngsi.c
PKGS += libcurl jansson uuid
endif
# Enable WebSocket support
ifeq ($(shell pkg-config libwebsockets jansson; echo $$?),0)
LIB_OBJS += websocket.o
LIB_SRCS += lib/nodes/websocket.c
PKGS += libwebsockets jansson
endif
@ -153,7 +152,7 @@ install: $(TARGETS) $(LIBS)
install -m 0755 pipe -T $(PREFIX)/bin/villas-pipe
install -m 0755 test -T $(PREFIX)/bin/villas-test
install -m 0755 -d $(PREFIX)/include/villas/
install -m 0644 include/*.h $(PREFIX)/include/villas/
install -m 0644 include/villas/*.h $(PREFIX)/include/villas/
install -m 0755 tools/villas.sh $(PREFIX)/bin/villas
ldconfig