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

iec61850: add iec61850 node-types if libiec61850 library is available

This commit is contained in:
Steffen Vogel 2017-06-09 19:14:40 +02:00
parent cc8bbcf10b
commit e586e2d229

View file

@ -37,6 +37,7 @@ WITH_NANOMSG ?= 1
WITH_SHMEM ?= 1
WITH_STATS ?= 1
WITH_INFLUXDB ?= 1
WITH_IEC61850 ?= 1
# Enabled loopback node-type
ifeq ($(WITH_LOOPBACK),1)
@ -86,6 +87,14 @@ ifeq ($(WITH_TEST_RTT),1)
LIB_CFLAGS += -DWITH_TEST_RTT
endif
# Enable IEC61850 node-types when libiec61850 is available
ifdef WITH_IEC61850
ifneq ($(wildcard /usr/include/libiec61850/*),)
LIB_SRC += $(wildcard lib/nodes/iec61850_*.c)
LIB_LDLIBS += -liec61850
endif
endif
# Enable VILLASfpga support when libxil is available
ifeq ($(WITH_FPGA),1)
ifeq ($(shell $(PKGCONFIG) libxil; echo $$?),0)